This feature is not part of the REST API. Do not treat it as such!
Please note: This version of the feature is for sites running versions of CoCart Core starting at v5. If you use this feature already it will break unless you follow the changes below, so check you are using the correct version before continuing with the documentation.
Query properties
| Query | Type | Description |
|---|---|---|
cocart-load-cart | string | Set the cart key of the cart you wish to load. mandatory |
c_hash | string | The cart hash which represents the last data change of the cart. mandatory |
If a customer is already logged in via the web version of your store then WooCommerce will merge any items in the cart together with the items the guest customer has in cart.If the same item already exists in cart, the quantity of that item will increase if stock is available.
FAQ
How does a registered customer load their cart without authenticating?
How does a registered customer load their cart without authenticating?
To help customers skip the process of having to login again, we use the same two queries to validate with. For a registered user it allows the WordPress site setup to think they had gone through the login process and loads their shopping cart.The cart key will be the user ID of the current user and the cart hash which represents the last data change of that cart.
FYI: If a different customer is already logged in on the same device/browser by chance, they will be logged out first to prevent the cart session losing track.
Can I change where to redirect customers should the cart fail to load?
Can I change where to redirect customers should the cart fail to load?
I want to change the query name
I want to change the query name
I want this feature disabled. Do not need it.
I want this feature disabled. Do not need it.
If you do not need or want to use WooCommerce native checkout then disable using this filter.