News:

Looking for documentation? Take a look on our wiki

Main Menu

Double price ( VAT INCL.) not to be shown in the home page

Started by obdspecialist, March 31, 2014, 17:30:38 PM

Previous topic - Next topic

obdspecialist

Hi to all

need to have a script to modify my CSS of 2.0.2 Virtuemart to show ONLY VAT EXCLUDED in the Home page

and only when I get inside a single product it will show double price ( VAT inc. & VAT excl. )

In the picture is shown the current situation ( double price )

Thanks for all the reply

Albert



[attachment cleanup by admin]

jenkinhill

That looks like the category view so edit the default category view template so that the only price you display is the price without tax

eg only   echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);

Use the edited file as a template override.
Note that VM2.0.2 is over 2 years old and known to have critical security issues.  http://forum.virtuemart.net/index.php?topic=118683.0

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

obdspecialist

Hi

many thanks to your answer

we do like this :


  • We create a new category with EXCL. VAT and associated to the home page
  • We maintan the doble price only in the details of the products

In this way the script you suggest works !  ;)

www.zkdental.it

Do you know a FREE MOBILE TEMPLATE for our WM version ( updated now 2.0.26D ) ?

Many Thanks

Alberto