Scippy's advice is spot-on. The hidden field value is probably going to be the better solution. You'll also need to update the cart view since it also exposes the quantity field along with an update action.
If this is a mission-critical site, I'd also suggest creating an action delegate to ensure that the quantity is always one upon adding the product to the cart and going to the checkout from the cart. This will prevent any tampering.
https://hotcakescommerce....-Integration-Project
Will Strohl, Upendo Ventures
Hotcakes Cloud |
Get Support |
Code Support Official Cloud & Support provider for Hotcakes