Oksydan / falcon

Prestashop starter theme that provides great development experience.
GNU General Public License v3.0
242 stars 60 forks source link

🐛 [BUG] - Adding discount code fails in checkout step #411

Open Shoprunners opened 1 month ago

Shoprunners commented 1 month ago

Description

When you have personalized / no code voucher codes which appear beneath the cart summary, you can click on them and they will be added to the cart and the summary reloads. Works great. If you want to do the same in the last step "do you have a voucher code". and klick on the code, it will be pasted in the input field and in the background, also added to your cart calculations. But the page / area is not refreshed. Reloading whole page, shows the code / discount.

Why?

The theme uses a minimized header in this step and no is_shopping_cart module is loaded. This module is responsible for reloading the cart. Workaround is, to use the normal header during checkout process and adapt the tpl file. Don't have a better solution for now.

Node.js version

1410

php version

v8.1

OS and it's version

Linux

Browsers

Chrome

Required module/theme

3

Reproduction steps

1. Create a voucher  without code -> visible in the cart and addable via click
2. Add the voucher in "Show cart" step. should work
3. Remove it again
4. Go to next step and do the same. -> not working as expected. A explicit click on "add voucher to cart" will give you the message, "already in cart".

Logs

No response

Oksydan commented 1 month ago

Hi @Shoprunners,

is_shoppingcart module isn't responsible for reloading the cart at all. I wasn't able to reproduce this issue on develop branch. Please let me know the exact version of the Falcon theme you are using.