News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

vm 3.0.4 how can i hide price Without Tax only in category

Started by garces0209, February 15, 2015, 22:45:23 PM

Previous topic - Next topic

garces0209

hello
how can i hide price Without Tax only in category??
in VM 3.0.4

i don`t use custom template.

jenkinhill

Do something like this:

Edit components/com_virtuemart/sublayouts/prices.php to remove the price without tax display code eg change
('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
to
('priceWithoutTax');
And save the edited file at (eg) catprice.php

Then edit components/com_virtuemart/sublayouts/products.php to change the sublayout call from
shopFunctionsF::renderVmSubLayout('prices',array('product'=> 
to
shopFunctionsF::renderVmSubLayout('catprices',array('product'=>

Then use both files as sublayout template overrides.
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