Well the good thing is that with CoCart you don’t have to if you are building with a JS framework or app for iOS or Android. The use of the CoCart cookie is general used for the WordPress site managing your WooCommerce store.
Categories: Developer (1) · Getting Started (1) · Questions (14) · Requesting support from us (9) · Snippets (7) · WP-CLI (1)
The cookie for CoCart and therefore the cart key is supplied through response headers, so called Set-Cookie-headers.
If you have WP_DEBUG defined as true in your wp-config.php file then you should be able to view all the logs recorded by CoCart under…
Unfortunately, no. This is because when you authenticate as the admin, you are logged in not the customer.
Each item added to the cart has it’s on item key and when you get the cart response, you will need to look under the object called items.
If CoCart-API-Cart-Key header is not returning then you need to enable CORS so that the header is exposed. Either enable CORS support via a filter shown below or simply install CoCart CORS plugin for quicker activation. That’s it.