co-cart/co-cart

CoCart is a REST API for WooCommerce. It focuses on the front-end of the store to manage the shopping cart allowing developers to build a headless store.

v3.0.5 2021-05-28 19:16 UTC

README

CoCart is a RESTful API made for WooCommerce.

It focuses on the front-end of the store helping you to manage shopping carts and allows developers to build a headless store in any framework of their choosing.

No local storing required. A powerful RESTful API that offers an integration to build your headless store with ease.

WordPress Versions WooCommerce Versions PHP Versions Latest Stable Version Quality Score on Master branch

The API  |  CoCart Pro  |  Add-ons  |  Download  |  Developers  |  Testimonials  |  Credits  |  License


CoCart

Looking for documentation?

Head over here: https://docs.cocart.xyz

The API

CoCart Lite provides the basic API needs to get you started.

  • Get store information.
  • Add simple, variable and grouped products to the cart.
  • Get customers cart.
  • Get customers cart contents.
  • Update items in the cart.
  • Remove items from the cart.
  • Restore items to the cart.
  • Re-calculate the totals.
  • Retrieve the cart totals.
  • Retrieve the number of items in cart or items removed from it.
  • Empty the cart.
  • Login the customer/user.
  • Logout the customer/user.

As an added bonus for administrators or shop managers, CoCart Lite also provides the capabilities to:

  • Get Carts in Session.
  • Get details of a cart in session.
  • View items added in a cart in session.
  • Delete a Cart in Session.

Features

CoCart also provides built in features to:

  • Load a cart in session via the web.
  • Supports guest customers.
  • Supports basic authentication including the use of email as username.
  • Supports authentication via WooCommerce's method.
  • Supports multi-sites.
  • Works across multiple domains, CORS ready (so you can have multiple frontends connected to one backend).
  • Allows you to filter CoCart to be white-labelled.

CoCart Pro

CoCart Lite is just the tip of the iceberg. CoCart Pro completes it with the following features:

  • Plugin Updates for 1 year.
  • Priority Support for CoCart Pro users via Slack.
  • Add and Remove Coupons to/from Cart
  • Retrieve Applied Coupons
  • Retrieve Coupon Discount Total
  • Retrieve Cart Total Weight
  • Retrieve Cross Sells
  • Retrieve and Set Payment Method
  • Retrieve and Set Shipping Methods
  • Retrieve and Set Fees
  • Calculate Shipping Fees
  • Calculate Totals and Fees

Features that will be available in the future:

  • Coming Soon Remove All Coupons from Cart
  • Coming Soon Register Customers
  • Coming Soon Retrieve Checkout Fields
  • Coming Soon Set Cart Customer (In Development)
  • Coming Soon Create Order (In Development)

For logged in customers:

  • Coming Soon Return Customers Orders
  • Coming Soon Return Customers Subscriptions
  • Coming Soon Return Customers Downloads (Auditing)
  • Coming Soon Return Customers Payment Methods (Auditing)
  • Coming Soon Get and Update Customers Profile (In Development)

Buy CoCart Pro

Add-ons

We also have add-ons that extend CoCart to enhance your development and your customers shopping experience.

  • CoCart - Carts in Session allows you to view all the carts in session via the WordPress admin. - FREE
  • CoCart - CORS simply filters the session cookie to allow CoCart to work across multiple domains. - FREE
  • CoCart - Get Cart Enhanced enhances the cart response returned with the cart totals, coupons applied, additional product details and more. - FREE
  • CoCart Products provides access to non-sensitive product information, categories, tags, attributes and even reviews from your store without the need to authenticate.
  • Advanced Custom Fields extends CoCart Products add-on by returning all your advanced custom fields for products. - REQUIRES COCART PRODUCTS
  • Yoast SEO extends CoCart Products add-on by returning Yoast SEO data for products, product categories and product tags. - REQUIRES COCART PRODUCTS
  • and more add-ons in development.

They work with the FREE version of CoCart already, and these add-ons of course come with support too.

Download

WordPress Plugin Downloads

Click here to download the latest release package of CoCart.

Developers

CoCart is full of filters and action hooks for developers to use as they please. It's your store so tinker how you please.

  • CoCart Product Support Boilerplate provides a basic boilerplate for supporting a different product type to add to the cart with validation including adding your own parameters.
  • CoCart Tweaks provides a starting point for developers to tweak CoCart to their needs.
  • CoCart Beta Tester allows you to test with bleeding edge versions of CoCart from the GitHub repo.

Need Support?

CoCart is released freely and openly. Feedback or ideas and approaches to solving limitations in CoCart is greatly appreciated.

CoCart is not supported via the WooCommerce Helpdesk. As the plugin is not sold via WooCommerce.com, the support team at WooCommerce.com is not familiar with it and may not be able to assist.

If you are in need of support, please purchase CoCart Pro.

Bug Reporting

If you think you have found a bug in the plugin, please open a new issue and I will do my best to help you out.

Support CoCart

If you or your company use CoCart or appreciate the work I’m doing in open source, please consider donating via one of the links available on right hand side under "Sponsor this project" or purchasing CoCart Pro where you not just get the full cart experience but also support me directly so I can continue maintaining CoCart and keep evolving the project.

Please also consider starring ✨ and sharing 👍 the project repo! This helps the project getting known and grow with the community. 🙏

Thank you for your support! 🙌

Testimonials

What can I say this thing has it all. It is the “Missing WooCommerce REST API plugin” without it I was managing users cart myself in weird and wonderful but hacky ways. NOT GOOD and so vulnerable. Then I stumbled upon CoCart and with the help of Seb I got it working how I needed it and he has been supporting me with even the smallest of queries. Really appreciate your work and continued support Seb.

Joel Pierre – JPPdesigns Web design & Development ⭐️⭐️⭐️⭐️⭐️

This plugin was critical to achieve my project of building a headless / decoupled WooCommerce store. I wanted to provide my clients with a CMS to manage their store, but wanted to build the front-end in React. I was able to fetch content over the WooCommerce REST API, but otherwise would not have been able to fetch the cart, and add & remove items if not for this plugin.

Thank you very much Sébastien for sharing this extension, you’ve saved me a lot of time.

Allan Pooley – Little and Big ⭐️⭐️⭐️⭐️⭐️

Thanks for doing such a great work with this! Works exactly as expected and CoCart seems to have a nice community around it. The founder seems really devoted and that’s one of the key things for a plugin like this to live on and get the right updates in the future. We just got ourselves the lifetime subscription.

MightyGroup – Rikard Kling ⭐️⭐️⭐️⭐️⭐️

See our wall of love for more testimonials.

CoCart Channels

We have different channels at your disposal where you can find information about the CoCart project, discuss it and get involved:

Twitter: cart_co CoCart Github Stars

  • 📖 Docs: this is the place to learn how to build amazing sites with CoCart. Get started!
  • 👪 Community: use our Slack chat room to share any doubts, feedback and meet great people. This is your place too to share how are you planning to use CoCart!
  • 🐞 GitHub: we use GitHub for bugs and pull requests, doubts are solved with the community.
  • 🐦 Social media: a more informal place to interact with CoCart users, reach out to us on Twitter.
  • 💌 Newsletter: do you want to receive the latest plugin updates and news? Subscribe here.

Get involved

Do you like the idea of creating a headless ecommerce with WooCommerce? Got questions or feedback? We'd love to hear from you. Come join our community! ❤️

CoCart also welcomes contributions. There are many ways to support the project (and get free swag)! If you don't know where to start, this guide might help >> How to contribute?.

Contributors

This project exists thanks to all the people who contribute. [Contribute]. 68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f636f636172742f636f6e7472696275746f72732e7376673f77696474683d38393026627574746f6e3d66616c7365

License

License

CoCart is released under GNU General Public License v3.0.

Credits

CoCart is developed and maintained by Sébastien Dumont.

sebastiendumont.com  ·  GitHub @seb86  ·  Twitter @sebd86

a-sebastien-dumont-production.png