News:

Support the VirtueMart project and become a member

Main Menu

add standard price

Started by axone, August 30, 2015, 20:16:30 PM

Previous topic - Next topic

axone

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.

jenkinhill

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

GJC Web Design

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
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

axone

sorry I use Joomla 3.4.3 and Virtuemart 3.0.9

axone

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.

GJC Web Design

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

axone

It works, you are my hero ! ;-) thanks for your help !