GMVitus Posted July 18, 2018 Share Posted July 18, 2018 Hi, I try to keep prestashop up to date as much as I can. But one of the previous updates seems to have a nasty side effect. When applying a discount voucher to a shopping cart, the displayed total doesn't include the discount. Have a look: https://i.imgur.com/0O5gEdp.jpg (for some reason the image doesn't get embedded...) The cart-summary-totals.tpl of my theme looks like this: {block name='cart_summary_totals'} <div class="cart-summary-totals"> <span class="label"><strong>{$cart.totals.total.label} {$cart.labels.tax_short}</strong></span> <span class="value"><strong>{$cart.totals.total.value}</strong></span> </div> {/block} {block name='cart_summary_tax'} <div class="cart-summary-line"> <span class="label sub"><small>{$cart.subtotals.tax.label}</small></span> <span class="value sub"><small>{$cart.subtotals.tax.value}</small></span> </div> {/block} <div class="divider-10"></div> I'm running 1.7.4.0 with a customized theme. Any idea what this might be and how to resolve it? Thanks! Link to comment Share on other sites More sharing options...
GMVitus Posted July 18, 2018 Author Share Posted July 18, 2018 I just remembered one more thing: When the shop redirects you to the PayPal website, paypal displays the correct price, including the discount. Link to comment Share on other sites More sharing options...
GMVitus Posted July 19, 2018 Author Share Posted July 19, 2018 ...maybe also worth mentioning is that the amount of the discount is not displlayed as a negative number. i.e. it's "5 EUR" instead of "-5 EUR". Link to comment Share on other sites More sharing options...
GMVitus Posted July 23, 2018 Author Share Posted July 23, 2018 Good morning, Anyone got an idea where to look for the problem? Btw. this seems to affect the payment procedure as well. I get "Payment errors" when checking out through paypal, which I guess makes sense since the (correct) amount calculated by Paypal is not equal to the (incorrect) prestashop amount. Link to comment Share on other sites More sharing options...
GMVitus Posted July 30, 2018 Author Share Posted July 30, 2018 Good morning! Sooooo... this problem still persists and I really need a solution for this. Someone? Link to comment Share on other sites More sharing options...
GMVitus Posted August 17, 2018 Author Share Posted August 17, 2018 It's been a month, no answer yet but the problem still persists. Any clues where to start looking? Link to comment Share on other sites More sharing options...
sadlyblue Posted September 4, 2018 Share Posted September 4, 2018 I have checked in our theme, and in the default theme, and can't replicate the issue. Tried with a cart rule to apply with and without a code. Also, to apply to all products and only selected products (not sure how you created your cart rule). All combinations worked. Have you tried replicating in a fresh install with the default theme? Link to comment Share on other sites More sharing options...
GMVitus Posted September 4, 2018 Author Share Posted September 4, 2018 Hi, I am a step further and found the culprit. The problem only comes up when using Virtual Products, Standard products or Combinations are unaffected. Upon this discovery I created a ticket on Github and it is since in process: https://github.com/PrestaShop/PrestaShop/issues/10264 It would be good to have a quick fix for this until Prestashop fixes this bug though... Link to comment Share on other sites More sharing options...
JohnDom Posted October 3, 2018 Share Posted October 3, 2018 I just realised I have this same issue with my shop. I was doing some testing and realised that the discount does not get applied to the total price in the cart and checkout process. I confirm it is an issue related to virtual products only as with standard products works just fine. I was running Prestashop 1.7.4.2 when I discovered it, reverting to 1.7.4.0 did not solve the issue. Link to comment Share on other sites More sharing options...
Henrik Pantle Posted December 9, 2018 Share Posted December 9, 2018 (edited) SAME ISSUE H E L P ! ! ! it's the "virtual product" thing. Edited December 9, 2018 by Henrik Pantle (see edit history) Link to comment Share on other sites More sharing options...
Henrik Pantle Posted December 9, 2018 Share Posted December 9, 2018 (edited) is NOT solved in 1.7.4.4 😞 REALLY SAD. but here is a solution, which I could apply. Two lines changing in Cart.php - see: Solution from Xaconi @ https://github.com/PrestaShop/PrestaShop/issues/10264 Edited December 10, 2018 by Henrik Pantle solution found at github (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now