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

Hide shipping address form from the Editor when "Force shipping to the customer billing address" is enabled. #7394

Closed
tarunvijwani opened this issue Oct 13, 2022 · 0 comments · Fixed by #7800
Assignees
Labels
block: checkout Issues related to the checkout block. type: bug The issue/PR concerns a confirmed bug.

Comments

@tarunvijwani
Copy link

tarunvijwani commented Oct 13, 2022

Describe the bug

In PRs #7268 and #7393, we hide the shipping address form from the front end for the Checkout block when Force shipping to the customer billing address is enabled. We need to hide the shipping address inner block in the Checkout block Editor as well. We also need to change the label of the billing address inner block from Billing Address to Billing and Shipping Address and it should mention: Enter the billing and shipping address that matches your payment method. in the default block description.

We need to find settings tied to the shipping address inner block and surface them in the billing address inner block.

More details: p1665655511491119/1665654716.887749-slack-C8X6Q7XQU

To reproduce

  1. Go to wp-admin/admin.php?page=wc-settings&tab=shipping&section=options page.
  2. Enable the Force shipping to the customer billing address option and save the changes.
  3. Go to Checkout block Editor, and notice both billing and shipping inner blocks are visible

Expected behavior

Only billing inner block should be visible.

@tarunvijwani tarunvijwani added the type: bug The issue/PR concerns a confirmed bug. label Oct 13, 2022
@tarunvijwani tarunvijwani added block: checkout Issues related to the checkout block. priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. and removed priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. labels Oct 28, 2022
@tarunvijwani tarunvijwani self-assigned this Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: checkout Issues related to the checkout block. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
1 participant