icemanluca Posted April 24, 2014 Share Posted April 24, 2014 Hi, i have trouble with the prices discount percentage in the cart. When percentage discount is setted to (for example) 45%, in the item page i can see the start price, the percentage and the discounted price in the right way, but when i check the cart berfore continuing the checkout, the START PRICE and the DISCOUNTED PRICE are right, but the DISCOUNT PERCENTAGE is totally wrong. Obviously checking the same product. The first image is the discount on the product page, the second one, on the cart page (same item). 1 Link to comment Share on other sites More sharing options...
icemanluca Posted April 24, 2014 Author Share Posted April 24, 2014 I forgot to say that i'm using the last version of ps, the 1.6.0.6 1 Link to comment Share on other sites More sharing options...
TTNZ Posted May 19, 2014 Share Posted May 19, 2014 I have the same problem. 20% discount works out to 25% discount Link to comment Share on other sites More sharing options...
bobbo77 Posted May 19, 2014 Share Posted May 19, 2014 same problem Link to comment Share on other sites More sharing options...
bobbo77 Posted May 21, 2014 Share Posted May 21, 2014 Someone found a solution to this problem? thanks Link to comment Share on other sites More sharing options...
tbfNation Posted May 27, 2014 Share Posted May 27, 2014 Maybe your shop show "prices tax excluded"? (if prices are tax included, discount is OK ) If you are a "prices tax excluded" merchant, please, check these files out: 1.- <your_theme>/shopping-cart-product-line.tpl Circa line 49, you will find {assign var='priceReductonPercent' value=(($product.price_without_specific_price - $product.price_wt)/$product.price_without_specific_price) * 100 * -1} Change with: {assign var='priceReductonPercent' value=(($product.price_without_specific_price - $product.price)/$product.price_without_specific_price) * 100 * -1} 2.- <your_theme>/js/cart-summary.js Circa line 751, you will find priceReductionPercent = ps_round((ps_round(product_list.price_without_quantity_discount) - ps_round(product_list.price_wt))/ps_round(product_list.price_without_quantity_discount) * -100); Change with: priceReductionPercent = ps_round((ps_round(product_list.price_without_quantity_discount) - ps_round(product_list.price))/ps_round(product_list.price_without_quantity_discount) * -100); I think this hack solves both tax included and tax excluded scenarios, but not 100% sure. Happy PrestaShopping 2 all 1 Link to comment Share on other sites More sharing options...
Leap-IT Posted June 4, 2014 Share Posted June 4, 2014 Getting back to this , i have tried it and almost satisfied. my problem is I have 2 different percentages for the same product depending on how i use my browser. Explain: product price 0.70€ / pieces. at 300 the price goes 25%) if i change the quantity manually using keypad or using the plus minus signs i get - 24.69% if i refresh the page i get -24% i have also noticed that if i force the price instead of using a percentage then using plus minus or manual entry wont show the percentage either untill i refresh thanks. Link to comment Share on other sites More sharing options...
jewelcam Posted June 4, 2014 Share Posted June 4, 2014 Bump same problem as first post. i have set to 10% and in cart shows 4%, but the discount amount is correct. is there a fix for this? my test site is lumbeejewelry.com/p16 Link to comment Share on other sites More sharing options...
jewelcam Posted June 5, 2014 Share Posted June 5, 2014 any body else have this problem? Link to comment Share on other sites More sharing options...
aage Posted June 14, 2014 Share Posted June 14, 2014 ...same here; 20% discount shows correct pricing but (%-sign / red square) shows 0% Link to comment Share on other sites More sharing options...
masquelier.camille Posted June 30, 2014 Share Posted June 30, 2014 (edited) Hi, i've the same problem 20% on product page became 4% on cart page. Is there a relation bewteween the code "priceReductonPercent" in our version ?? Reduction without "i" ? Edited June 30, 2014 by masquelier.camille (see edit history) Link to comment Share on other sites More sharing options...
masquelier.camille Posted July 1, 2014 Share Posted July 1, 2014 hi, until prestashop do not give up a patch , one solution for this issue is to do not display this % in the cart in global.css line 7031 : replace "inline-block" by "none" #cart_summary tbody td.cart_unit .price span.price-percent-reduction { margin: 5px auto; display: none; /* display: inline-block;*/ } To have only the final price you could also do it for "old-price" and insert display none like this line 7035 : #cart_summary tbody td.cart_unit .price span.old-price { display: none; text-decoration: line-through; } 1 Link to comment Share on other sites More sharing options...
jewelcam Posted July 1, 2014 Share Posted July 1, 2014 I updated to latest version and problem appears to be gone. Link to comment Share on other sites More sharing options...
Y Talansky Posted July 23, 2014 Share Posted July 23, 2014 I did the fix from #6 but after clicking on plus to increase qty it would show 5.14% instead of 5% so I rewrote line 751 like this seems to work (I think I got rid of rounding (ps_round) ) priceReductionPercent = (product_list[i].price_without_quantity_discount - product_list[i].price)/product_list[i].price_without_quantity_discount * -100); Link to comment Share on other sites More sharing options...
phpdeveloper Posted September 23, 2014 Share Posted September 23, 2014 Percentage is not working in Back end. If i set amount, it is calculating as it is., but if i set as percentage, the final value shows 00. Please help me to solve this. I am using prestashop 1.6.0.5 Link to comment Share on other sites More sharing options...
MrWoolf Posted September 27, 2014 Share Posted September 27, 2014 (edited) Hi I have a problem with the price as a percentage. take a look here to see prices all right discount here very long how to fix it?? I am using prestashop 1.6.0.5 Edited September 27, 2014 by MrWoolf (see edit history) Link to comment Share on other sites More sharing options...
PrestaSOO Posted September 30, 2014 Share Posted September 30, 2014 (edited) Maybe you want to try SOO Prestashop Discount module to manage, create your customized discounts : SOO Prestashop Discount It will fix your all problems. Edited May 28, 2015 by DeJour (see edit history) Link to comment Share on other sites More sharing options...
hbohem Posted September 30, 2014 Share Posted September 30, 2014 Hi, I need to generate an estimated quantity discount, for example if I buy 3 products about 25% is applied to any product use would be helpful prestashop 1.6 1 Link to comment Share on other sites More sharing options...
PrestaSOO Posted October 1, 2014 Share Posted October 1, 2014 (edited) Hi, I need to generate an estimated quantity discount, for example if I buy 3 products about 25% is applied to any product use would be helpful prestashop 1.6 You can not setup your discount as your required ( if I buy 3 products about 25% is applied to any product ) by using standard Prestashop feature. Here what SOO Prestashop Discount can do : FILTERED either in the attribution criteria or in the commutation: by category, by suppliers, by manufacturers, by products with discounts, by products with quantity price rules… SETUP ORDER AMOUNT thresholds with or without taxes, all discount percentages and all currency discounts. CUSTOMIZE YOUR PROMOTION RULES in so many different ways, easy to get lost in the different amazing capabilities of the SOO Prestashop Discount module but once integrated in your backend. Edited May 28, 2015 by DeJour (see edit history) Link to comment Share on other sites More sharing options...
huerto69 Posted November 20, 2014 Share Posted November 20, 2014 (edited) Hi, I have a similar issue. I need to refresh the browser in order to see the correct percentage (5%) instead of 15%... Edited November 20, 2014 by huerto69 (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts