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

[WC Admin] Don't hide Enable the shipping calculator on the cart page settings when the Cart block is used #11415

Closed
ralucaStan opened this issue Oct 23, 2023 · 1 comment · Fixed by #11421
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue/PR concerns a confirmed bug.

Comments

@ralucaStan
Copy link
Contributor

ralucaStan commented Oct 23, 2023

Describe the bug

In #11184 we removed the shipping calculator settings from the Block Settings bar to enable merchants to set up the shipping calculator in the WC Admin only.

Currently, the option Enable the shipping calculator on the cart page is shown only when merchants don't use the cart block. This means that there is no way to control the appearance of the inner calculator block when merchants use the Cart block.

To reproduce

Steps to reproduce the behavior:

  1. Use cart and checkout blocks
  2. Go to your shop on this page /wp-admin/admin.php?page=wc-settings&tab=shipping&section=options
  3. Notice that Enable the shipping calculator on the cart page is missing
  4. go to the cart page and transform the block to the classic cart
  5. Notice that Enable the shipping calculator on the cart page is present

Expected behavior

Always show the Enable the shipping calculator on the cart page option, no matter of what is used for the cart page.

Screenshots

If applicable, add screenshots to help explain your problem.
Screenshot 2023-10-23 at 19 21 42

@ralucaStan ralucaStan added type: bug The issue/PR concerns a confirmed bug. priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. labels Oct 23, 2023
@ralucaStan
Copy link
Contributor Author

ralucaStan commented Oct 23, 2023

Hiding the option was introduced in #8679

Note: the Hide shipping costs until an address is entered is visible even if the Checkout Block is present on the Checkout page. The PR above was hiding this setting, but the change was reverted in the meantime, possibly via #8141

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
1 participant