Jump to content

Total doesn't consider voucher


GMVitus

Recommended Posts

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

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

  • 3 weeks later...
  • 3 weeks later...

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

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

  • 4 weeks later...

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

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...