Posted 23 November 2006 - 05:06 PM
#2
i had the same problem, tech support emailed me with this fix.
Please modify the "fn_catalog.php" file located in the "core/" directory of your CS-Cart location and replace there the following part of code:
$link_opts = db_get_hash_array("SELECT a.product_id, a.option_id, a.option_type, a.position, a.inventory, b.option_name, b.option_text FROM $db_tables[product_options] as a LEFT JOIN $db_tables[product_options_descriptions] as b ON a.option_id=b.option_id AND b.lang_code='$lang_code' LEFT JOIN $db_tables[product_global_option_links] as c ON c.option_id=a.option_id WHERE c.product_id='$product_id' $avail $os_cond ORDER BY a.position", 'option_id');
with this one:
$link_opts = db_get_hash_array("SELECT a.product_id, a.option_id, a.option_type, a.position, a.inventory, a.avail, b.option_name, b.option_text FROM $db_tables[product_options] as a LEFT JOIN $db_tables[product_options_descriptions] as b ON a.option_id=b.option_id AND b.lang_code='$lang_code' LEFT JOIN $db_tables[product_global_option_links] as c ON c.option_id=a.option_id WHERE c.product_id='$product_id' $avail $os_cond ORDER BY a.position", 'option_id');
Save the file.
After the changes, it will be possible to make your global options available or not available by checking corresponding checkboxes.