Categories: Developer (1) · Getting Started (1) · Questions (15) · Requesting support from us (9) · Snippets (9) · WP-CLI (1)

What to do if I cant use Cookies?

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.

View article

Set-Cookie-headers

The cookie for CoCart and therefore the cart key is supplied through response headers, so called Set-Cookie-headers.

View article

How can I view debug logs recorded ?

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…

View article

As administrator can I create and update a customers cart?

Unfortunately, no. This is because when you authenticate as the admin, you are logged in not the customer.

View article

Where can I find an item key?

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.

View article

Why am I not seeing the CoCart-API-Cart-Key header returning?

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.

View article