VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Easterkram on January 02, 2016, 19:49:50 PM

Title: Show products under sub category
Post by: Easterkram on January 02, 2016, 19:49:50 PM
Joomla version 3.4.6
I have a shop page here showing categories
http://www.incahoot.info/index.php/online-shop
Click on a category to here
http://www.incahoot.info/index.php/online-shop/meats
Click on a sub category to here
http://www.incahoot.info/index.php/online-shop/meats/beef
Click to view products in sub category here
http://www.incahoot.info/index.php/online-shop/meats/beef/mince-beef
And whatever settings I try I cant get the products to show, any help and advice please, I've looked everywhere for an answer with no luck
Title: Re: Show products under sub category
Post by: GJC Web Design on January 02, 2016, 20:17:14 PM
1st switch off the SEF urls so u can see what is going on..

Title: Re: Show products under sub category
Post by: Easterkram on January 02, 2016, 23:16:54 PM
Quote from: GJC Web Design on January 02, 2016, 20:17:14 PM
1st switch off the SEF urls so u can see what is going on..
Hi thanks for your reply, I haven't got SEF urls enabled, what should I be looking for?

Sent from my GT-I9505 using Tapatalk

Title: Re: Show products under sub category
Post by: Easterkram on January 02, 2016, 23:31:07 PM
I was wrong, they were turned on in joomla, just tend them off, what should I be looking for, ANY advice is appreciated, i'm stuck!

Sent from my GT-I9505 using Tapatalk

Title: Re: Show products under sub category
Post by: GJC Web Design on January 03, 2016, 00:53:13 AM
well ... the mince is this cat->  http://www.incahoot.info/index.php?option=com_virtuemart&virtuemart_category_id=33

but your menu for beef - mince-beef is

http://www.incahoot.info/index.php?option=com_virtuemart&view=category&virtuemart_category_id=32&Itemid=1167
Title: Re: Show products under sub category
Post by: Easterkram on January 03, 2016, 02:42:50 AM
Again...thanks for your feedback

Yes to mince beef you go to the first categories page
is http://www.incahoot.info/index.php?option=com_virtuemart&view=virtuemart&productsublayout=0&showproducts=1&showcategory=1&Itemid=1167

Then you follow the link to Meats
http://www.incahoot.info/index.php?option=com_virtuemart&view=category&virtuemart_category_id=16&Itemid=1167
Which takes you to the Beef category

Clicking on the beef category you see the mince beef category
http://www.incahoot.info/index.php?option=com_virtuemart&view=category&virtuemart_category_id=32&Itemid=1167

Then clicking on that absolutely nothing shows, but there are two products set up under that caategory

Extra Lean Mince Beef
http://www.incahoot.info/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1218&virtuemart_category_id=32&Itemid=1205
And Tender Mice BBeef
http://www.incahoot.info/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1211&virtuemart_category_id=33&Itemid=1167

But I cant get them to show up under the categories, does the information in the URL's give you any clues why not that you could help me with?

Title: Re: Show products under sub category
Post by: GJC Web Design on January 03, 2016, 13:27:17 PM
if i go

http://www.incahoot.info/index.php?option=com_virtuemart&virtuemart_category_id=33

the two products are there

if -> http://www.incahoot.info/index.php?option=com_virtuemart&view=category&virtuemart_category_id=33&Itemid=1167

nothing .. so it is your menu setup? 

The selector "Show products" yes/no is inherited (wrongly I feel) to any sub cats under it .. so I assume on Beef you have 'no' set?

If this is necessary then try making hidden menus to the mince with the show prod set to yes
Title: Re: Show products under sub category
Post by: Easterkram on January 03, 2016, 14:21:02 PM
Hi thanks again for your advice

Can you tell me where it is I have Beef set to 'no' ? Do you mean somewhere in the Product or Category Settings in Virtuemart, once I know where you mean I can then change it and see if that sorts it

I also did not know I had any hidden menus, where would they be? and where would I set show product to "yes"?

Thanks again
Title: Re: Show products under sub category
Post by: GJC Web Design on January 03, 2016, 23:22:07 PM
no -- in your VM category menu you made for Beef

the idea for a hidden menu (used often and usefully in Joomla) is to try and solve the inherited param if that is the case
Title: Re: Show products under sub category
Post by: Easterkram on January 05, 2016, 01:18:33 AM
Hi got it sorted, thanks, you we right, changing the beef menu did it

Sent from my GT-I9505 using Tapatalk