News:

Support the VirtueMart project and become a member

Main Menu

Hide browse-view if empy

Started by manolodantonio, October 06, 2016, 13:26:07 PM

Previous topic - Next topic

manolodantonio

Hi!  :D

i just migrated from J!2.5 to J!3.6.2/VM3.0.18 and almost everything is working fine (yay!)
I have little experience with VM, and i could use some tips

i got this behaviour of VM categories view:


This is a page that shows subcategories. As you can see div.browse-view is below the subcategories list (div.category-view), but it's empty cause this category has no products. Is there a way to hide it only when empty?
Or, even better: in this case (no products, only subcats) is there a way to switch the display order of div.browse-view with div.category-view, so that div.browse-view act as a title for this page?

Thanks

GJC Web Design

it will depend on your template

most templates will have something like only show if products

e.g.

if (!empty($this->products) && $this->showproducts) {

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

manolodantonio

Ahh i was hoping to find some hidden configuration i had missed. Anyway, i will give it a try.
Thanks!