craftcms / craftcms/docs

[Content]: Added the ability to clear the cart addresses

Open
#502 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
42
Forks
160
Avg merge
3h 9m
Merged PRs (30d)
4

Description

Product

Commerce

Description

Added the following params to the update cart action for the next release of Craft Commerce:

https://craftcms.com/docs/commerce/4.x/dev/controller-actions.html#supported-params-3

clearAddresses - Clears the billing and shipping addresses off the cart.
clearBillingAddresses - Clears only the billing address off the cart.
clearShippingAddresses - Clears only the shipping address off the cart.

Possibly a paragraph explaining the above should be added to https://craftcms.com/docs/commerce/4.x/addresses.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked Craft Commerce supported-params documentation and the 4.x addresses page. Add a concise explanation of clearAddresses, clearBillingAddresses, and clearShippingAddresses to the addresses documentation, then verify the page renders correctly and clearly describes each option.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.