Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.
/ co-cart Public archive
forked from co-cart/co-cart

🛒 A RESTful API for WooCommerce that focuses on the front-end of the store with an integration to build your headless store with ease.

License

Notifications You must be signed in to change notification settings

speechanddebate/co-cart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoCart Lite

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

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.

Also included is the ability to access products, product categories, product tags, product attributes and even reviews without the need to authenticate.

  • Return all published products.
  • Return an individual product by product ID / SKU ID.
  • Return an individual variable product and all it’s variations in one request.
  • Return all product categories.
  • Return all product tags.
  • Return all product attributes.
  • Return a product attribute terms.
  • Return all product reviews.
  • Return an individual product review.
  • Create a product review.

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.
  • Does not cache so responses are fast.
  • 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 - CORS simply filters the session cookie to allow CoCart to work across multiple domains. - FREE
  • CoCart - Cart Enhanced enhances the data returned for the cart and the items added to it. - FREE
  • Advanced Custom Fields extends the products API by returning all your advanced custom fields for products.
  • Yoast SEO extends the products API by returning Yoast SEO data for products, product categories and product tags.
  • 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.

Here are a few other resources you find helpful.

  • CoCart Beta Tester allows you to test with bleeding edge versions of CoCart from the GitHub repo.
  • CoCart VSCode extension for Visual Studio Code adds snippets and autocompletion of functions, classes and hooks.
  • CoCart - Carts in Session allows you to view all the carts in session via the WordPress admin.
  • 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.
  • Node.js Library provides a JavaScript wrapper supporting CommonJS (CJS) and ECMAScript Modules (ESM).

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].

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

About

🛒 A RESTful API for WooCommerce that focuses on the front-end of the store with an integration to build your headless store with ease.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.3%
  • CSS 2.2%
  • JavaScript 1.9%
  • SCSS 1.6%