• Resolved ketantecocraft

    (@ketantecocraft)


    Hello,

    Inside Add Item into Cart API (/wp-json/cocart/v1/add-item?product_id=1885) how to pass quantity Attribute properties.

    I have tried to add like this -> /wp-json/cocart/v1/add-item?product_id=188&quantity=3but that only add 1 Quantity. So please help me here.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    What you are doing should work. You may have the product set to only allow one quantity to be added to the cart per customer.

    Thread Starter ketantecocraft

    (@ketantecocraft)

    Question is if the customer wants to add more then one product into the cart then how we need to do pass that quantity property inside the following API:

    /wp-json/cocart/v1/add-item?product_id=188

    Thank you

    Plugin Author Sébastien Dumont

    (@sebd86)

    As i said in my last response. Your using the API correctly but you have the product set to only allow one item.

    Check your product data settings in your admin dashboard.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add quantity inside Add Item to Cart API’ is closed to new replies.