• Resolved bhumi912

    (@bhumi912)


    I want to remove only one quantity.
    if In cart same items have 5 quantity but I want to remove only one quantity so how can use api?

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

    (@sebd86)

    Hey @bhumi912

    If you want to update an item’s quantity you will need the item key of that item. Then just make a request like so to change it.

    curl -X POST https://example.com/wp-json/cocart/v2/cart/item/<item_key> \
      -H "Content-Type: application/json" \
      -d '{
        "quantity": 4
      }'
    Thread Starter bhumi912

    (@bhumi912)

    Its work fine
    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove cart issue’ is closed to new replies.