PHP Classes

How to Implement a WooCart Cart API with WordPress plugin ade-woocart: Manipulate a WooCommerce cart using WordPress API

Recommend this page to a friend!

  Author Author  
Picture of Adeleye Ayodeji
Name: Adeleye Ayodeji is available for providing paid consulting. Contact Adeleye Ayodeji .
Classes: 9 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 377430 in Nigeria Nigeria
Week rank: 578 Up9 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 5x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package can manipulate a WooCommerce cart using WordPress API.

It provides a plugin for WordPress that can enable its API to perform operations on shopping carts managed by WooCommerce.

Currently, it can:

- Add a product to a shopping cart

- Get the products in a shopping cart

- Delete a shopping cart

Details

ade-woocart

Description

This plugin helps you to create a cart for your WooCommerce store through API.

Installation

  1. Upload the plugin files to the `/wp-content/plugins/ade-woocart` directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings->Ade Woocart screen to configure the plugin

Frequently Asked Questions

How to use this plugin?

  1. Add a cart
    - Endpoint: `http://yourdomain.com/wp-json/ade-woocart/v1/cart`
    - Method: `POST`
    - Body:
    {
      "product_id": 248,
      "quantity": 3
    }
    
    - Response:
    
    [ { "key": "b53b3a3d6ab90ce0268229151c9bde11", "product_id": 55, "product_name": "test", "product_price": "500", "product_image": "http://localhost:8888/wordpress2/wp-content/uploads/2022/09/dartcourse-150x150.png", "quantity": 3 }, { "key": "3cec07e9ba5f5bb252d13f5f431e4bbb", "product_id": 247, "product_name": "Product 2", "product_price": "4000", "product_image": "http://localhost:8888/wordpress2/wp-content/uploads/2022/10/306309967_205687448454197_8999579521544198312_n-150x150.jpg", "quantity": 1 }, { "key": "621bf66ddb7c962aa0d22ac97d69b793", "product_id": 248, "product_name": "Product 3", "product_price": "3000", "product_image": "http://localhost:8888/wordpress2/wp-content/uploads/2022/11/20221015_075005-150x150.jpg", "quantity": 3 } ]
  2. Get cart

    - Endpoint: `http://yourdomain.com/wp-json/ade-woocart/v1/cart` - Method: `GET` - Response:

    [
      {
        "key": "b53b3a3d6ab90ce0268229151c9bde11",
        "product_id": 55,
        "product_name": "test",
        "product_price": "500",
        "product_image": "http://localhost:8888/wordpress2/wp-content/uploads/2022/09/dartcourse-150x150.png",
        "quantity": 3
      },
      {
        "key": "3cec07e9ba5f5bb252d13f5f431e4bbb",
        "product_id": 247,
        "product_name": "Product 2",
        "product_price": "4000",
        "product_image": "http://localhost:8888/wordpress2/wp-content/uploads/2022/10/306309967_205687448454197_8999579521544198312_n-150x150.jpg",
        "quantity": 1
      }
    ]
    
  3. Delete a cart
    - Endpoint: `http://yourdomain.com/wp-json/ade-woocart/v1/cart/{cart_key}`
    - Method: `DELETE`
    - Response:
    {
      "message": "Item removed from cart",
      "cart": [
        {
          "key": "621bf66ddb7c962aa0d22ac97d69b793",
          "product_id": 248,
          "product_name": "Product 3",
          "product_price": "3000",
          "product_image": "http://localhost:8888/wordpress2/wp-content/uploads/2022/11/20221015_075005-150x150.jpg",
          "quantity": 3
        }
      ]
    }
    

  Classes of Adeleye Ayodeji  >  How to Implement a WooCart Cart API with WordPress plugin ade-woocart  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog (1)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: How to Implement a WooCart Cart API with WordPress plugin ade-woocart
Base name: ade-woocart
Description: Manipulate a WooCommerce cart using WordPress API
Version: 1.0.1
PHP version: 5
License: The PHP License
All time users: 39 users
All time rank: 10664
Week users: 0 users
Week rank: 129 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image E-Commerce Online stores, shopping baskets and payment methods View top rated classes
Group folder image Content management Components and tools to manage content View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
December 2022
Number 8
WordPress is a very popular content management system written in PHP.

Its popularity is due to how it allows other developers to extend WordPress using plugins that any other developer can write.

Woocomerce can extend WordPress capabilities by turning a WordPress Web site into an e-commerce site.

This package provides a WordPress plugin that allows developers to control shopping carts managed by Woocommerce via the WordPress API.


Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageincludes (1 file)
Accessible without login Plain text file ade-woocart.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  includes  
File Role Description
  Plain text file class-ade-woocart.php Class Class source

Install with Composer Install with Composer - Download Download all files: ade-woocart.tar.gz ade-woocart.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imageincludes (1 file)
Accessible without login Plain text file ade-woocart.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  includes  
File Role Description
  Plain text file class-ade-woocart.php Class Class source

Install with Composer Install with Composer - Download Download all files: ade-woocart.tar.gz ade-woocart.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.