BigCommerce Developers — Matthew Medlyn (Customer) asked a question.
Hi there, I'm adding a custom item to a customers cart using the rest management API
Items | BigCommerce Dev Center
This all works, I redirect the user to the cart (if the user had no cart at the time), and can see the custom item in the cart.
However, the custom item has a quantity selector next to it in the cart. With normal BC products, you can set a maximum order quantity, however how do I set this for custom items? The customer should only be allowed to order 1 of each custom item.
Any help would be greatly appreciated!
While I'm here, is it possible to specify an image for a custom item? I can see there was a feature request 5(!) years ago How do I upload an image when adding a custom item to a cart through the cart API?