News:

Looking for documentation? Take a look on our wiki

Main Menu

Only Parent Should Show on Product Category Page

Started by jenborn, September 10, 2014, 17:29:49 PM

Previous topic - Next topic

jenborn

My client is running Joomla 2.5.24 and VirtueMart 2.6.6.  I am fairly new to all of this (Joomla and VirtueMart).  I moved him to a new host and updated Joomla and VirtueMart.  Now on one of his Product Category pages both the parent and child product are showing when JUST the parent products should be showing. http://rthum.com/store/workshop-cds.  On the Product Detail page of the parent products, everything is fine.  I'm not sure what I need to change in the configuration or if this is even possible in the updated versions.  The rest of the products appear to be working correctly within his inventory, it's just these parent/child relationships that I need to fix.

So on the above Product Category link, this product should be showing:
Blackberry Blossoms Workshop
http://rthum.com/store/workshop-cds/view/productdetails/virtuemart_product_id/7/virtuemart_category_id/2

But these should NOT because they're children (it's also messing with the pagination):
Blackberry Blossoms Workshop
http://rthum.com/store/workshop-cds/view/productdetails/virtuemart_product_id/83/virtuemart_category_id/2
Blackberry Blossoms Workshop
http://rthum.com/store/workshop-cds/view/productdetails/virtuemart_product_id/84/virtuemart_category_id/2

And when you go to the Product Detail page for the parent (7):
http://rthum.com/store/workshop-cds/view/productdetails/virtuemart_product_id/7/virtuemart_category_id/2
Everything is fine.  But if you click on the children from the Product Category page, it's all messed up, because you shouldn't be able to get to those anyway.



[attachment cleanup by admin]

jenkinhill

What are you using for SEF?  Try with SEF off, flushe caches & have a look.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jenborn

Quote from: jenkinhill on September 10, 2014, 18:10:49 PM
What are you using for SEF?  Try with SEF off, flushe caches & have a look.

What is SEF?

GJC Web Design

Search Engine Friendly urls 
the std Joomla and VM urls look like /index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=23&virtuemart_category_id=7

they can be rewritten to look like /myproduct4.html etc either by the native SEF (set in Joomla admin) or there are 3rd party components (that IMHO are worse than the disease)
In debugging it always pays to start with knowns - so try what happens with all sef off first..
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation