Skip to main content
Welcome to the CoCart tutorials section! These hands-on guides will help you implement common use cases and integrate CoCart with your applications.

Getting Started

If you’re new to CoCart, we recommend starting with these foundational tutorials:

Getting Started with Postman

Learn how to test and explore the CoCart API using Postman

JWT Token Checkup

Verify and troubleshoot your JWT authentication tokens

Common Use Cases

These tutorials cover common scenarios you’ll encounter when building headless WooCommerce applications:

Convert Cart to Order

Learn how to convert a cart session into an order using the WooCommerce REST API

Authentication Injection

Implement custom authentication methods in your application

Extending CoCart

Learn how to extend and customize CoCart to meet your specific needs:

Creating Cart Callbacks

Add custom callbacks to respond to cart events

Framework Integrations

Step-by-step guides for integrating CoCart with popular JavaScript frameworks:
Build fast, content-focused ecommerce sites with Astro and CoCart.
Create server-rendered React applications with Next.js and CoCart.
Build native mobile apps with React Native and CoCart.

Tips and Tricks

Quick solutions for common tasks:

What You’ll Need

Before starting these tutorials, make sure you have:
  • A WordPress site with WooCommerce installed
  • CoCart plugin installed and activated
  • Basic understanding of REST APIs
  • Familiarity with your chosen programming language

Getting Help

If you run into issues while following these tutorials:

Contributing

Have a tutorial idea or found an issue? We welcome contributions! Check out our Contributing to Documentation guide to learn how you can help improve our documentation.