Inactive items are still being ordered

Mals allows items to stay in the cart for an hour. If a store owner deactivates an item and a customer still has that item in his or her Mals cart, it may still be ordered. This is not something we can change, so we recommend letting your clients know that an inactive item may still stay in the cart for an hour after it is deactivated.

As of version 2.72, an item can still be ordered if the order page is cached or a browser window left open. This has been changed in version 2.8. If you do not wish to upgrade, you can force the system to stop orders for inactive items:

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

  2. Add the following code:

    // STOP INACTIVE ITEMS
    $chkitmquery = "SELECT COUNT(ID) FROM " .SB_DB_PREFIX ."_items WHERE ID='" .(int)$productid ."' AND Active='No'";
    $chkitmresult = mysql_query($chkitmquery, $dblink) or die($chkitmquery ."-" .mysql_error());
    $chkitem = mysql_fetch_row($chkitmresult);
    if ($chkitem[0]==1)
    {
    @header("location: $Catalog_Page");
    @header("Connection: close");
    die("Product Not FoundBack to Catalog");
    }

    Just above the line:

    // BYPASS COOKIE TAX
  3. Save and reload the file.