Linux 软件免费装
Banner图

Headless WooCommerce Made Easy with CoCart

开发者 sebd86
cocartforwc
ajayghaghretiya
skunkbad
sefid-par
mattdabell
joshuaiz
dmchale
JPPdesigns
inspiredagency
darkchris
mohib007
rozaliastoilova
ashtarcommunications
albertoabruzzo
jnz31
douglasjohnson
antondrob2
szepeviktor
更新时间 2025年6月27日 02:22
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv3
版权网址: 版权信息

标签

woocommerce cart rest-api headless decoupled

下载

4.0.1 4.3.20 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 3.5.0 2.8.0 3.11.2 3.1.0 3.0.17 3.0.16 4.3.8 4.3.9 4.3.2 3.7.1 3.10.7 3.10.8 3.7.10 3.7.6 3.0.3 2.9.0 2.9.2 3.1.2 3.0.5 3.0.6 3.0.2 3.0.7 3.0.8 2.9.3 3.0.12 3.0.13 3.0.14 3.0.9 3.4.1 2.8.2 3.0.15 3.0.4 4.3.3 4.3.5 3.8.1 2.8.1 2.8.3 2.9.1 3.2.0 3.4.0 3.0.1 3.0.11 3.1.1 3.3.0 3.6.0 3.6.2 3.0.10 3.6.1 3.6.3 4.0.0 4.3.11 4.3.12 2.8.4 3.7.7 3.7.0 3.12.0 4.0.2 4.2.1 4.3.14 4.3.4 4.3.6 4.3.7 3.7.4 3.8.0 4.3.10 4.3.13 3.10.4 3.10.6 3.7.2 3.10.2 3.10.0 3.9.0 3.10.1 3.0.0 3.10.3 3.7.8 3.8.2 3.10.5 3.7.11 3.7.3 3.10.9 3.11.0 3.11.1 3.7.5 3.7.9 4.1.1 4.2.0 4.2.2 4.3.0 4.3.1 4.3.16 4.3.21 4.3.17 4.3.15 4.3.18 4.3.22 4.3.23 4.1.0 4.3.24 4.3.25 4.3.27 4.3.28 4.3.29 4.3.30 4.4.0 4.3.19 4.3.26 4.5.0 4.6.0

详情介绍:

CoCart: Headless API for developers With CoCart, you get the best REST-API to decouple your WooCommerce store. Fast, secure, customizable, easy. A flexible REST API purpose-built for developers, designed to save hours of development so you can spend time building modern, cutting-edge and scalable stores away from WordPress. Want to try it out? Why our API makes sense CoCart chose to support WooCommerce because it provides a more efficient way to decouple WooCommerce via the REST API. Our intuitive API handles management, calculations, and processing, delivering optimal performance across any configuration. 🔧 Built to Solve Real Headless Challenges If your finding it hard to decouple WooCommerce from WordPress due to hitting roadblocks. CoCart core can help by providing all the essential features you need to start building a headless eCommerce experience. Here's why: ★★★★★
An excellent plugin, which makes building a headless WooCommerce experience a breeze. Easy to use, nearly zero setup time. - Harald Schneider
💼 Upgrade to CoCart Plus For more performance, and enterprise-level control — upgrade to CoCart Plus. Unlock features like: 🔓 Ready to Go Fully Headless? Join thousands of developers and agencies building with CoCart — the REST API that takes WooCommerce further. 👉 Upgrade to CoCart Plus and build the future of commerce today. ★★★★★
This plugin saved me tons of work and it is working amazingly! The plugin author provides fast and high-quality support. Well done! @codenroll
💜 Need Support? We aim to provide regular support for the CoCart plugin via our Discord community server. Please understand that we do prioritize support for our paying customers. 🧰 Developer Tools 📢 Testimonials - Developers just love it ★★★★★
Thanks for doing such 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. - Mighty Group Agency ★★★★★ This plugin works great out of the box for adding products to the cart via API. The code is solid and functionality is as expected, thanks Sebastien! - Scott Bolinger, Creator of Holler Box See the wall of love for more testimonials.
👍 Add-ons to further enhance CoCart We also have add-ons that extend CoCart to enhance your development and your customers shopping experience. These add-ons work with the core of CoCart already, and these add-ons of course come with support too. ⌨️ Join our growing community On Discord, we have a community of developers, WordPress agencies, and shop owners building the fastest and best headless WooCommerce stores with CoCart. Come and join our community Built with developers in mind If you’re interested to jump in the project, there are opportunities for developers at all levels to get involved. Contribute to CoCart on the GitHub repository and join the party. 🎉 🐞 Bug reports Bug reports for CoCart are welcomed in the CoCart repository on GitHub. Please note that GitHub is not a support forum, and that issues that aren’t properly qualified as bugs will be closed. More information 💯 Credits This plugin is developed and maintained by Sébastien Dumont. Founder of CoCart Headless, LLC.

安装:

Minimum Requirements Recommended Requirements Automatic installation Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of CoCart, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New. In the search field type "CoCart" and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating, and description. Most importantly of course, you can install it by simply clicking "Install Now". Manual installation The manual installation method involves downloading the plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains instructions on how to do this here. Upgrading It is recommended that anytime you want to update CoCart that you get familiar with what's changed in the release. CoCart publishes release notes via the changelog. CoCart uses Semver practices. The summary of Semver versioning is as follows: You can read more about the details of Semver at semver.org

升级注意事项:

4.6.0 This release is a compatibility release for the next WooCommerce release.

常见问题:

What does CoCart do?

CoCart provides a REST API that is ready to decouple WooCommerce away from WordPress.

Who should use CoCart?

Pretty much everyone who wants a faster eCommerce store to improve their business. WooCommerce runs multiple requests for multiple steps. We avoid the hassle of needing multiple requests for these steps and process them all together. CoCart is perfect for eCommerce owners and developers who want to create an eCommerce app for mobile or a custom frontend shopping experience completely using the REST API.

Are there any limitations?

CoCart is designed with developers in mind allowing for complete control to customize or add support for a plugin to work with CoCart. CoCart does its best to work out of the box but if there is a compatibility issue with a plugin that you would like to work with CoCart. We would be happy to hear about it.

What is the source of truth?

CoCart sources the WooCommerce’s Data Stores API and repeats most WooCommerce hooks to provide a wider array of support for most WooCommerce extensions out of the box.

Does CoCart work for multi-site network?

Yes. Just install CoCart and activate it on the sites you want to use CoCart.

Can I have WordPress running on one domain and my headless eCommerce on another domain?

Absolutely. That is what CoCart is mainly developed for. You just need to enable CORS. You can do that easily with the CORS add-on or you can manually enable it via the filters available in the documentation.

Will CoCart interfere with other plugins?

The majority of plugins are not REST API specific so it shouldn't. However, while we allow the source of truth for compatibility, there may be a WooCommerce extension that returns data via an action hook that the REST API cannot understand during a specific action and may fail the response. If that does happen, simply report the situation with as much detail as possible on our GitHub repository and we will try our best to find a solution.

How do I set up CoCart?

You will first need WooCommerce installed and set up to your configurations. Then install CoCart, activate and you're ready to start using the REST API following the API Reference provided.

Please check the requirements listed in the installation section.

Why use CoCart and not WooCommerce’s Store API?

WooCommerce’s Store API is designed for the Gutenberg blocks which only requires a fixed format and is used on native storefronts. A lot of valuable information and abilities that developers require to help them are also unavailable. CoCart's API is designed for decoupling away from WordPress with ease while the Store API is not. CoCart is a plug-and-play solution that just works out of the box. Also, improvements are always made to CoCart to ensure you get the best decoupled experience.

Do I need to have coding skills to use CoCart?

As this plugin provides a REST API built for developers, you will need to have some coding knowledge to use it.

Where can I find documentation for CoCart?

You can find the documentation here.

Can I change the formatting of values, add and change details to the responses?

You certainly can. There are over 200+ filters available to customize to your needs.

Why does CoCart use a custom session handler and table in the database?

If you're familiar with WooCommerce, you may be wondering why using a custom session handler at all instead of the WooCommerce default session handler? A number of reasons but the ones that really matter are.

  • The default session handler only supports cookies.
  • The default session handler only saves changes at the end of the request in the shutdown hook.
  • The default session handler has no support for concurrent requests.
  • The default session handler does not support guest customers.
  • The default session handler does not store additional data that may be required to help you.
  • The default session handler does not allow support for POS capability.
  • More consistent with modern web.

Is "WooCommerce Shipping and Tax" plugin supported?

No. "WooCommerce Shipping and Tax" ignores any custom REST APIs from allowing the ability to calculate the taxes from TaxJar except for WooCommerce Blocks and JetPack. We don't recommend it. However, TaxJar for WooCommerce plugin is supported.

Is "TaxJar for WooCommerce" plugin supported?

If you have "TaxJar for WooCommerce" v3.2.5 or above and CoCart v3.0 or above installed... then yes, it is supported.

Can I use any modern stack?

Yes, you can use your preferred tools and favorite modern technologies like Astro, NextJS, React, Vue, Ember and more giving you endless flexibility and customization.

Where can I report bugs?

Report bugs on the CoCart GitHub repository. You can also notify us via the Discord community server in the #bug-report channel – be sure to search the forum to confirm that the error has not already been reported.

CoCart is awesome! Can I contribute?

Yes, you can! Join in on our GitHub repository and follow the development blog to stay up-to-date with everything happening in the project.

Is CoCart translatable?

Yes! CoCart is deployed with full translation and localization support via the ‘cart-rest-api-for-woocommerce’ text-domain.

Where can I get help or talk other users about CoCart core?

If you get stuck, you can ask for help in the CoCart support forum or join the CoCart Community on Discord where you will find like minded developers who help each other out. If you are in need of priority support, it will be provided by purchasing CoCart Plus or a higher tier.

Where can I find out more about the additional features?

Find out all relevant features and pricing information over on the official site.

My question is not listed here. Where can I find more answers?

Check out Frequently Asked Questions for more.

更新日志:

📢 Only bug and security updates will be provided here on WordPress dot ORG. Any new major updates starting with v5.0 will be provided directly from us. v4.6.0 - 26th June, 2025 This release is a compatibility release for the next WooCommerce release. What's new? Changes Improvements Compatibility v4.5.0 - 31st May, 2025 This release will most likely be the last update released on the WordPress plugin directory with anything NEW added. What's New? Bug Fix Plugin Details Compatibility v4.4.0 - 16th May, 2025 This release focuses on supporting such tools like ManageWP, MainWP, Blogvault etc. Changes
Note: The session expiration's can still be filtered back to the previous values but that would mean it would match the expiration for logged in users.
Third Party Support Developers Internal Deprecations v4.3.30 - 27th April, 2025 Bug Fix Improvement Compatibility v4.3.29 - 10th April, 2025 Bug Fix Improvements
Dev note: Meaning if you have requested that the customer provides the shipping address first before shipping is calculated, then no shipping methods will return until it's provided.
Compatibility v4.3.28 - 6th April, 2025 Bug Fix v4.3.27 - 3rd April, 2025 Bug Fix v4.3.26 - 1st April, 2025 Bug Fix Improvements Requirement change v4.3.25 - 17th March, 2025 Bug Fixes v4.3.24 - 10th March, 2025 Bug Fix Improvements v4.3.23 - 3rd March, 2025 Bug Fixes Improvements
Dev note: This affects only new guest sessions.
Compatibility v4.3.22 - 26th February, 2025 Corrections For Developers
Developer note: This allows you to then alter values such as the billing country. See example.
` add_filter( 'cocart_get_customer_billing_country', function( $value ) { if ( WC()->countries->country_exists( $value ) ) { return WC()->countries->get_countries()[ $value ]; } return $value; }, 10, 1); * Introduced new filtercocart_get_after_customer_{field-type}_fieldsthat allows you to change the customer fields after they returned. Replace{field-type}with eitherbillingorshipping` for the fields to alter. v4.3.21 - 20th February, 2025 Improvement v4.3.20 - 8th February, 2025 Bug Fix v4.3.19 - 6th February, 2025 Bug Fix v4.3.18 - 22nd January, 2025 General Compatibility v4.3.17 - 14th January, 2025 Bug Fix Improvements Compatibility View the full changelog here.