Mix and Match Products supports CoCart since
Add item to cart
Add a container with the customers selected items and quantity.cURL
Documentation is still being updated. Some content maybe unfinished.
Allows customers to create their own product bundles.
curl -X POST https://your-store.com/wp-json/cocart/v2/cart/add-item \
-H "Content-Type: application/json" \
-d '{
"id": "1102",
"quantity": "2",
"item_data": {
"mnm_config": [
{
"product_id": 987,
"quantity": 1
},
{
"product_id": 1001,
"quantity": 2
},
{
"product_id": 1003,
"quantity": 3
}
]
}
}'
Was this page helpful?