Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

How to display discount on frontpage products?
(1 viewing) (1) Guest
Report bugs, Guide, New Idea...
  • Page:
  • 1

TOPIC: How to display discount on frontpage products?

How to display discount on frontpage products? 11 years, 7 months ago #9304

Hi Guys!


How can i display the discounted products price on frontpage???

Your VM modules not display, there is no option to set to show discounted price.

Can you please find a solution to this problem. (any heck for your modules)

King regards

Re: How to display discount on frontpage products? 11 years, 7 months ago #9313

  • SA Thuy
Dear Krisztina Kovacs,

Please open file vmextraslider.php(templates/sj_bakery/html/mod_sj_vm_extraslider_res/ vmextraslider.php) and find:

<div class="PricesalesPrice">
<?php	$currency = &CurrencyDisplay::getInstance();
if ( !empty($item->prices['salesPrice']) ){
echo 'Price: '.$currency->createPriceDiv('salesPrice', '', $item->prices);
}
if ( !empty($item->prices['salesPriceWithDiscount']) ){
echo $currency->createPriceDiv('salesPriceWithDiscount', '', $item->prices, true);
}
?>
</div>


change to:

<div class="PricesalesPrice">
<?php	$currency = &CurrencyDisplay::getInstance();
if ( !empty($item->prices['salesPrice']) ){
echo 'Price: '.$currency->createPriceDiv('salesPrice', '', $item->prices);
}
if ( !empty($item->prices['discountedPriceWithoutTax'])){
echo '<br /><span class="PricebasePriceWithTax" style="text-decoration: line-through;">'.$currency->createPriceDiv('costPrice', '', $item->prices).'</span> ';
}
?>
</div>


With other module, you edit same to that.

Thanks
Last Edit: 11 years, 7 months ago by .

Re: How to display discount on frontpage products? 11 years, 7 months ago #9317

Dear SA Thuy!

Thank you for your help ...works:)

Can you help me a bit more ...i need the correction in the virtuemart basic view......there is no any style......you can check if you choose a product form frontpage and add tocart and thancontinue shoping you get a non designed page ... i want to show the main categories but the style is missing


Thank you for your help

Re: How to display discount on frontpage products? 11 years, 7 months ago #9331

  • SA Thuy
Dear Krisztina Kovacs,

Our template was styled on categories, not on the default view of virtuemart component . You can customize the page yourself or submit the ticket.

Thanks
  • Page:
  • 1
Time to create page: 0.21 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes