|
Disabling the increase quantity and decrease quantity buttons?
There are two different ways to disable the quantity buttons. You can:- use the Allow Full Quantity Modification From The 'View Cart' feature. Look for this feature on the "Advanced Settings" page of the "Cart Settings" section of the cart.
- disable them individually by product. This must be done in the "Add Cart" code.
To disable quantity buttons in the "Add Cart" code, you must select 'Do not allow quantity modification' in the "Exempt" field when you are creating the buttons.
Please note: This means the quantity will not be able to be changed in any way.
If you are creating new product buttons, this selection can simply be made. But if you are changing a product that already exists you will need to change the HTML.
Here is an example of the HTML with what needs to be added in red:
<form method="post" action="https://860218.2uaerguo.asia/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>Quantity: <input type="text" name="VARQuantity" value="1" size="4" />
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <input type="hidden" name="VAR000" value="|" />
        <input type="hidden" name="AddItem"
          value="USERNAME|Description VAR000 5|VARQuantity|
            Part Number||prompt|Weight|Quantity|||||" />
        <input type="submit" value="Add To Cart" />
      </td>
    </tr>
</table>
</form>
|
|