Prestashop: Cart rule with free shipping AND % or amount reduction not applied in FO

Created on 23 Apr 2019  路  11Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
For my case, when I add a new promo code on cart rule (individual or to everyone), in Front-Office adding a correct promo code not working.
Detected by the E2E automation tests.

To Reproduce
Steps to reproduce the behavior:

  1. Add a new promo code
  2. Don鈥檛 forget to activate free shipping (toggle button) before saving it
  3. Go to Front-Office and add the promo code
  4. Nothing happen, if you reload the page you have an error page (500)

Screenshots
Please refer to the video attached https://drive.google.com/file/d/16dyBqxzC5SDAwNAVa6DAKyK0svf6Rt7j/view

Additionnal information
PrestaShop version: 1.7.6.x
PHP version: 7

1.7.6.x Bug Cart rules Critical FO Fixed Regression

Most helpful comment

it was. I can reproduce now

All 11 comments

Hi @mbadrani,

I have the same issue with PS1.7.6.x
After clicking "Add button" => I reload the page => an exception displayed
image
Thanks!

Nice catch !

@matks & @khouloudbelguith I have another bug when I try to access to "orders/shopping carts" in the backoffice, it seems to be related bug wdyt?
image

both are calling CartRuleCalculator.php

@mbadrani, I think they are related.
In my case all the shop FO is blocked with this exception, I don't have access to FO any more.
image

Thanks!

so If FO is not accessible anymore it's critical

@mbadrani please give more details:
With a fresh-installed shop, when I add a cart rule I can go through the checkout steps without interruption.
which sort of cart rule did you use ? Is it on a fresh install (which parameters) or after some changes (carrier, products...) ?
Your description is far too vague to reproduce easily.

Don鈥檛 forget to activate free shipping
I think it was the missing part, please share these details next time ^^

it was. I can reproduce now

Furthermore, the problem is if you create a cart rule with free shipping AND a promo in % or amount.
A cart rule with only free shipping is working correctly

Was this page helpful?
0 / 5 - 0 ratings

Related issues

photinia73 picture photinia73  路  90Comments

MockoB picture MockoB  路  50Comments

gorkij77 picture gorkij77  路  58Comments

bm-services picture bm-services  路  91Comments

krasnycz picture krasnycz  路  52Comments