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

Article Category

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

Article Category

Where can I find the cart key?

The cart key (if not manually set), can be found via a few methods…

View article

Article Category

Load Cart from Session

This feature is designed to transfer the cart over to the native version of your store. It allows the customer to continue shopping or checkout what they already have in the cart added via your decoupled store.

View article

Article Category

wp-config.php

For more handling over CoCart for your store or a clients store, you will find that using the wp-config.php file is the best place to setup certain conditions.

View article

Article Category

WP-CLI Core Commands

CoCart CLI offers the ability to manage CoCart via the command-line, using WP CLI. The documentation here covers the version of WC CLI that started shipping in CoCart v3.0.0 and later.

View article

Article Category

Removing the Cart Item Key – API v1

What you see when you return the cart contents is how WooCommerce formats the data. However, via the REST API this particular key is not a requirement.

View article