Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[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.

Assessment

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

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.

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

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

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.

More from craftcms/docs

All issues in craftcms/docs

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.