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

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

Article Category

Disable Load Cart from Session

As the only feature in CoCart that does not use the REST API, some developers requested that they have the option to disable it.

View article

Article Category

How to set up CoCart – I dismissed the setup wizard, and I’m lost.

First thing. Don’t worry. CoCart works out of the box. The setup wizard is designed to help tweak CoCart and WooCommerce according to your site setup.

If you dismissed the setup wizard you can still access it.

View article

Article Category

Return totals in cart response formatted

With API v2 of CoCart, the totals are not formatted automatically as per users feedback but for some, they wanted to keep it the same as before.

View article

Article Category

Returns cart contents without cart item key as parent array

Code snippet is included.

View article