Display cart quantity as check box

If your client is not using inventory control, you can set the 'Inv Check' value in the 'Catalog Setup' to 'No'. That will display the cart quantity as a check box.

It will, however, also allow someone to order more than you have in stock. (e.g. If an item has 2 in stock, I could put 3 in the cart.)

If you want to use the inventory control piece andalso change the check box to a regular text box, you will need to modify code:

  1. Open the order.php file in the /go/ folder.

  2. Add two forward slashes to the front of the lines:

    if ($inventorycheck != "No") 
    $gotolink .= "&noqty=3";

    so you will have:

    // if ($inventorycheck != "No") 
    // $gotolink .= "&noqty=3";
  3. Save and reload the file.

At this point, all quantities will use the text box, whether 'Inv Check' is 'Yes' or 'No'.

It's important to note that, if you do make the above changes, it's a lot easier for someone to order more than you have stock quantities available, because they can change the text field directly through Mals. You'll probably want to communicate that with your client.