6. In include/product_modify.php, add: if ($section == 'options') @include $xcart_dir."/include/global_product_options.php"; #BCSE Added
After: if ( file_exists($xcart_dir.'/modules/Product_Options/product_options.php') && is_readable($xcart_dir.'/modules/Product_Options/product_options.php') ) { include $xcart_dir.'/modules/Product_Options/product_options.php'; }
did not find:
Code:
if ( file_exists($xcart_dir.'/modules/Product_Options/product_options.php') && is_readable($xcart_dir.'/modules/Product_Options/product_options.php') ) { include $xcart_dir.'/modules/Product_Options/product_options.php'; }
x-cart v4.6.5 gold
8. In include/func/func.product.php, in func_delete_product(), add: #BCSE Begin if(!empty($classes)){ $global_classids = func_query_column("SELECT classid FROM $sql_tbl[classes] WHERE classid IN ('".implode("','", $classes)."') and global = 'Y'"); if(!empty($global_classids)) foreach($global_classids as $cid){ $class_name = func_query_first_cell("select class from $sql_tbl[classes] where classid = '$cid'"); db_query("update $sql_tbl[classes] set global = 'Y' where class = '".addslashes($class_name)."' and global = 'C' limit 1"); } } #BCSE End
Before: db_query("DELETE FROM $sql_tbl[classes] where productid='$productid'");
did not find:
Code:
func_delete_product()
Do this step only if the line <li>Custom Modules doesn't exist
2a. In skin/common_files/single/menu_box.tpl and skin/common_files/admin/menu_box.tpl, add: <li>Custom Modules <div> </div> </li>
After: {include file="admin/help.tpl"}
did not find:
Code:
{include file="admin/help.tpl"}
2b. In skin/common_files/single/menu_box.tpl and skin/common_files/admin/menu_box.tpl, add: <a href="{$catalogs.admin}/add_global_options.php">{$lng.lbl_global_product_o ptions}</a>{*BCSE Added*}
After: <li>Custom Modules <div>
did not find:
Code:
<li>Custom Modules <div>