Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Disabling Coupons Doesn’t hide the Coupon Code Option in the Checkout Block #4201

Closed
igotdes opened this issue May 13, 2021 · 1 comment · Fixed by #4202
Closed

Disabling Coupons Doesn’t hide the Coupon Code Option in the Checkout Block #4201

igotdes opened this issue May 13, 2021 · 1 comment · Fixed by #4202
Assignees
Labels
type: bug The issue/PR concerns a confirmed bug.

Comments

@igotdes
Copy link

igotdes commented May 13, 2021

Describe the bug

Even when coupons are disabled under WooCommerce > Settings > General, there is still an option to add a coupon in the Checkout block.

To reproduce

Steps to reproduce the behavior:

  1. Under WooCommerce > Settings > General, make sure that "Enable coupons" is unchecked
  2. Create a page, add a Checkout block to it, and save it
  3. View the page from the front end

Expected behavior

The option to add a coupon should be hidden.

Screenshots

Coupons Are Disabled In General Settings
Coupon Setting

Coupons Are Still an Option in the Checkout Block
Page with Checkout Block

Environment

WordPress:

  • Core version: 5.7.1
  • WooCommerce version: 5.2.2
  • WooCommerce Blocks version: 5.1.0
  • Site language: en_US
  • Any other plugins installed:
    • Companion Plugin: by Osk – 1.18

Desktop:

  • OS: macOS 11.3.1 (20E241)
  • Browser: Chrome 90.0.4430.93 (Official Build) (x86_64)

Additional context

@igotdes igotdes added the type: bug The issue/PR concerns a confirmed bug. label May 13, 2021
@Aljullu Aljullu self-assigned this May 13, 2021
@Aljullu
Copy link
Contributor

Aljullu commented May 13, 2021

Confirming the issue, thanks for opening it @igotdes!

It seems to be a regression introduced in 5.0 (particularly, in this PR: #4059).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants