VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: axone on August 30, 2015, 20:16:30 PM

Title: add standard price
Post by: axone on August 30, 2015, 20:16:30 PM
Hello,

Currently on my site are displayed prices "after reduction" in display by category and in products details :

/index.php/en/products/category
/index.php/en/products/category/myproduct

I would add close to that price, the "standard price", not reduced.

Do you know which files are to change and how?

Thanks for your help.
Title: Re: add standard price
Post by: jenkinhill on August 30, 2015, 23:47:21 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: add standard price
Post by: GJC Web Design on August 31, 2015, 10:01:15 AM
plus it is just the price display settings in VM admin

although many commercial templates don't use them/ignore them so compare to the std. template
components\com_virtuemart\sublayouts\prices.php
Title: Re: add standard price
Post by: axone on August 31, 2015, 19:29:16 PM
sorry I use Joomla 3.4.3 and Virtuemart 3.0.9
Title: Re: add standard price
Post by: axone on August 31, 2015, 20:39:14 PM
Thanks for your answer and for the idea.

I modified the category page successfully with this line :

echo <span class="line-through">'.$this->currency->createPriceDiv ('basePriceVariant', '', $product->prices).'</span>';

But for "productdetails" page it doesn't work.

I found the place to make the change (in the file : template/html/com_virtuemart/productdetails/default.php) but the line that I use in category page doesn't work. An idea of ​​what I should write ?

Thnaks for your help.
Title: Re: add standard price
Post by: GJC Web Design on August 31, 2015, 20:58:12 PM
echo <span class="line-through">'.$this->currency->createPriceDiv ('basePriceVariant', '', $this->product->prices).'</span>';  ??
Title: Re: add standard price
Post by: axone on September 01, 2015, 06:53:39 AM
It works, you are my hero ! ;-) thanks for your help !