Prestashop: Place order button always disabled IF 100% discount coupon AND setting Terms of service is no

Created on 2 Dec 2020  路  5Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

If "Terms of service" is checked to be "no" and order contains 100% discount (making it a free order) it is not possible to complete the order. Going through the order process is not possible as "Place order" button stays disabled and there is no way of enabling the button. My guess is that there is no js check for this situation and nothing triggers the checks as there is no payment option selection nor checking of the terms of service checkbox.

Expected behavior

The "Place order button" should be enabled when the Payment step is opened if there is nothing to select or terms of service to check.

Steps to Reproduce

Steps to reproduce the behavior:

  1. BO: Change shop setting "Terms of service" to no (Shop parameters -> order settings)
  2. BO: Add a discount coupon rule with 100% and free shipping actions (Catalog -> discounts)
  3. Go to shop storefront
  4. Add product to basket
  5. Go trough the order process to Payment step (check that shipping is also 0 priced and order total is 0)
  6. Try to click on "Place order"
    => button is disabled and clicking does nothing

While taking screenshots also noticed that clicking on the "No payment needed for this order" triggers js warning:

jQuery('#') is not a valid selector    core.js:92 

(Actually that seems to happen in quite a lot of places on that page, at least total line on the right side and all the subtotals above it etc.)

Screenshots

Settings

Discount:
image
Terms of service:
image

Place order disabled

image

Additional information

  • PrestaShop version: 1.7.7.0 (also seen on 1.7.6.7)
  • PHP version: 7.3.17
1.7.7.0 Bug Checkout Duplicate FO Order settings

All 5 comments

Hello @tswfi

I managed to reproduce the issue with PS1.7.6.9 and PS1.7.7.0, see the attached screen record below:

https://drive.google.com/file/d/1nDKzxkB5ZSgmmbe1Jck2erlXH2AC-XDE/view

AFAIK, I think the status of the button required one of these two conditions to be true (payment or terms of service).
Ping @PrestaShop/product-team wdyt? is it a bug or is that the normal behavior?

Thanks!

@hibatallahAouadni It seems to be a duplicate of #9927
Could you please verify ?

Thanks @marionf indeed it's a duplicate :+1:

Hello @tswfi

We are aware of this issue, it is already in our debug backlog. This issue is a duplicate of #9927.
To be informed when it's fixed, please subscribe to the issue mentioned above.

Thanks!

Duplicate of #9927

Was this page helpful?
0 / 5 - 0 ratings