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

Moduel showing discount but the product has no discount
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Moduel showing discount but the product has no discount

Moduel showing discount but the product has no discount 5 years, 11 months ago #36636

The module shows "--16%" discount circled but the product has no discount. I've checked the tax and discount configuration and it is all ok, I have no discounts configured, only 16%VAT tax.
the price shown is correct, but there should be no discount in circle.
What could be the problem?

Re: Moduel showing discount but the product has no discount 5 years, 11 months ago #36639

Dear alexsapa

Please send us the admin and ftp account to check directly

thanks

Re: Moduel showing discount but the product has no discount 5 years, 11 months ago #36642

i've sent the info., thanks

Re: Moduel showing discount but the product has no discount 5 years, 11 months ago #36645

Dear alexsapa

Please check admin and ftp account again i can't access it prntscr.com/jgdznl
my ip: 118.71.224.135

thanks

Re: Moduel showing discount but the product has no discount 5 years, 11 months ago #36680

Sorry, the folder was wrong. Now it is ok. please log in
Last Edit: 5 years, 11 months ago by alexsapa.

Re: Moduel showing discount but the product has no discount 5 years, 11 months ago #36681

Dear alexsapa

I can't view your site.
and can't access with your account prntscr.com/jif1l0
please go to prntscr.com/jif2if and find

<?php
echo '<div class="sj_percentage_discount_display sj_absolute">';
$percent = (int)(((((int)$item->prices['product_price'] - (int)$item->prices['salesPrice']))/$item->prices['product_price'])*100);
echo ('-'.$percent .'%');
echo '</div>';
?>

=> change to:

<?php

$percent = (int)(100-(($item->prices['salesPrice']*100/$item->prices['basePriceWithTax'])));
if($percent>0){
echo '<div class="sj_percentage_discount_display sj_absolute">';
echo ('-'.$percent .'%');
echo '</div>';
}
?>

thanks
  • Page:
  • 1
  • 2
Time to create page: 0.26 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