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

Update notice for default cart and checkout #11777

@nielslange

Description

@nielslange

Is your feature request related to a problem? Please describe.

When a merchant adds the Cart or Checkout block to a page, but does not define the corresponding pages as the cart or checkout page via /wp-admin/admin.php?page=wc-settings&tab=advanced, the following notices are visible in the sidebar:

Current notice for Cart block:

Screenshot 2023-11-15 at 10 42 25
Current notice for Checkout block:

Screenshot 2023-11-15 at 10 41 46

Describe the solution you'd like

In p1699988291133359/1699592175.220079-slack-C02UBB1EPEF, @elizaan36 asked to replace the button in the <DefaultNotice> component with an inline link and to display an info notice instead of a warning notice.

Expected notice for Cart block:

Screenshot 2023-11-15 at 10 54 06
Expected notice for Checkout block:

Screenshot 2023-11-15 at 10 55 22

Describe alternatives you've considered

n/a

Additional context

n/a

Metadata

Metadata

Assignees

Labels

block: cartIssues related to the cart block.block: checkoutIssues related to the checkout block.type: cooldownThings that are queued for a cooldown period (assists with planning).type: enhancementThe issue is a request for an enhancement.type: good first issueThe issue is a good candidate for the first community contribution/for a newcomer to the team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions