Discount from the price
Rate this topic:
- GK User
- Thu Jul 13, 2017 5:16 pm
- Reply with quote
- Report this post
Hello,
I would like to ask you how to do the discount from the price.
I need to score out sales price and to write new discounted price.
For example
sales price is 50 €
discount is 20 €
new price is 30 €
I need to see by my product following prices:
50 € 30 € (BUT 50 € must be score out.)
Thank you for your help
Monika
I would like to ask you how to do the discount from the price.
I need to score out sales price and to write new discounted price.
For example
sales price is 50 €
discount is 20 €
new price is 30 €
I need to see by my product following prices:
50 € 30 € (BUT 50 € must be score out.)
Thank you for your help
Monika
-
- Fresh Boarder
- teitbite
- Mon Jul 17, 2017 10:09 am
- Reply with quote
- Report this post
Hi
I've helped with something similar couple of times. Try edit file /html/com_virtuemart/productdetails/default.php and put this under the price:
I've helped with something similar couple of times. Try edit file /html/com_virtuemart/productdetails/default.php and put this under the price:
- Code: Select all
<?php
if ($this->show_prices == '1') {
if ($product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and !$product->images[0]->file_is_downloadable) {
echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE');
}
echo $this->currency->createPriceDiv ('salesPrice', '', $product->prices);
} ?>
-
- Moderator
2 posts
• Page 1 of 1