Prestashop: BO - Order page - Try to remve a Voucher (gift) => an error is displayed

Created on 9 Nov 2020  路  4Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

An error is displayed when removing a voucher (gift) with no code

Expected behavior

The Voucher line should be removed

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to BO > Catalog > Discounts page
  2. Create a cart rule:
    2.1 Informations: No code
    2.2 Conditions: No conditions
    2.3 Actions: send a gift
    image
  3. Go to BO > Order page > Add a new order for "John Doe"
  4. Add a product to the cart (the cart rule well applied)
  5. Try to remove the cart rule
  6. see the error
    image

Same issue with 1770rc1build3

1770rc1build2 => ok

Additional information

  • PrestaShop version: 1.7.7.0rc1build4
  • PHP version: 7.2
1.7.7.0 BO Bug Cart rules Discounts Fixed Minor Nice to have Order Regression migration

Most helpful comment

All 4 comments

This error should be fixed is ps_checkout module

Information :

It comes from modules/ps_checkout/ps_checkout.php in the method hookActionCartUpdateQuantityBefore where the variable $this->context->cart->id is not checked.

@khouloudbelguith Can you tell me what is the version of ps_checkout in your shop ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rGaillard picture rGaillard  路  3Comments

vincent-dp picture vincent-dp  路  3Comments

zuk3975 picture zuk3975  路  3Comments

khouloudbelguith picture khouloudbelguith  路  3Comments

Van-peterson picture Van-peterson  路  3Comments