Items don't show as expected with Order Button settings (v. 2.84 - 2.9)

In the 2.84 and 2.9 beta versions, there is a bug in the option display. If a product has no "Regular Price" entered, but does have option prices, those option prices are not getting recognized when changing the "Order Button" field to "Only items w/prices".

This will be corrected in the final 2.9 release. To patch previous 2.84 and 2.9 releases:

  1. Open the products_single.php file in the /enc/ folder.

  2. Change the line:

    $Show_Ord_Button = var_showorder($unitprice, $chkoptsnum, $Set_Ord_Button, $show_prices);

    to:

    $Show_Ord_Button = var_showorder($unitprice, $display_chkopts['num'], $Set_Ord_Button, $show_prices);
  3. Move the line:

    $display_chkopts = var_chkopts($searchrow[ID]);

    up a few lines, above the line you just changed:

    $Show_Ord_Button = var_showorder($unitprice, $display_chkopts['num'], $Set_Ord_Button, $show_prices);
  4. Repeat step #3 in the products_detail.php file in the /enc/ folder.