VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: garces0209 on February 15, 2015, 22:45:23 PM

Title: vm 3.0.4 how can i hide price Without Tax only in category
Post by: garces0209 on February 15, 2015, 22:45:23 PM
hello
how can i hide price Without Tax only in category??
in VM 3.0.4

i don`t use custom template.
Title: Re: vm 3.0.4 how can i hide price Without Tax only in category
Post by: jenkinhill on February 16, 2015, 00:21:20 AM
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.
Title: Re: vm 3.0.4 how can i hide price Without Tax only in category
Post by: garces0209 on February 16, 2015, 01:31:37 AM
Thanks for your help!!!