WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-add-to-cart

WooCommerce - Add to Cart Multiple Products with Metadata

A WooCommerce plugin that handles adding multiple products to a cart using the add to cart url.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/prolific-digital/woocommerce-add-to-cart/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Description

This WooCommerce plugin allows you to add multiple products to the cart with metadata from a single URL using the "add-to-cart" parameter. It enhances the shopping experience by enabling customers to quickly add multiple products to their cart with custom metadata.

Installation

  1. Download the plugin zip file.
  2. Log in to your WordPress admin panel.
  3. Navigate to Plugins » Add New » Upload Plugin.
  4. Click the Choose File button and select the plugin zip file.
  5. Click Install Now and then Activate the plugin.

Usage

Adding Multiple Products with Metadata

To add multiple products to the cart with metadata, you can construct a URL with the "add-to-cart" parameter. The format should be add-to-cart=product_id:quantity&metadata_key1=value1,value2&metadata_key2=value3.

For example:

  • https://yourwebsite.com/?add-to-cart=1:2,2:3&metadata_color=red,green&metadata_size=large,medium

This URL will add two products with ID 1 and 2, each with a specified quantity and custom metadata.

Customizing Cart Display

The plugin provides customization options for displaying custom item data in the cart. You can modify the display format according to your needs.

Adding Metadata to Order

Custom metadata associated with products will be added to the order for reference. This information can be useful for order processing and fulfillment.

Author

Support and Contribution

If you have any questions, issues, or suggestions, please feel free to create an issue on the GitHub repository.

We welcome contributions to improve and enhance this plugin. If you'd like to contribute, please fork the repository and submit a pull request.

Happy shopping with WooCommerce!