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.
by Prolific Digital · github.com/prolific-digital/woocommerce-add-to-cart
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/prolific-digital/woocommerce-add-to-cart/archive/refs/heads/main.zipReadme
WooCommerce - Add to Cart Multiple Products with Metadata
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
- Download the plugin zip file.
- Log in to your WordPress admin panel.
- Navigate to Plugins » Add New » Upload Plugin.
- Click the Choose File button and select the plugin zip file.
- 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
- Prolific Digital
- Website: https://prolificdigital.com/
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!