// to add a products column look for: // added for QUICKUPDATES_NEW_COLUMN_1 // and use it as an example to add your own // added for QUICKUPDATES_NEW_COLUMN_1 // note: these 3 settings have been moved to config file (extra_configures/quick_updates.php) //define('QUICKUPDATES_MODIFY_NEW_COLUMN_1', 'true'); //define('QUICKUPDATES_NEW_COLUMN_1', 'products_artlid'); //define('TABLE_HEADING_NEW_COLUMN_1', 'artlid'); // check configuration keys if (QUICKUPDATES_DISPLAY_ID == 'QUICKUPDATES_DISPLAY_ID' && $_GET['qu_installer'] != 'install') { // admin area config not installed $messageStack->add(sprintf('快速更新模块还未安装。请点这里 %sInstall%s', '<a href="' . zen_href_link(FILENAME_QUICK_UPDATES, 'qu_installer=install') . '">', '</a>'), 'warning'); } // installation start if ($_GET['qu_installer'] == 'install') { install_quick_updates(); // install new configuration keys zen_redirect(zen_href_link(FILENAME_QUICK_UPDATES)); } if ($_GET['qu_installer'] == 'remove') { remove_quick_updates(); // remove configuration variables zen_redirect(zen_href_link(FILENAME_QUICK_UPDATES)); } // end installation/removal $export_products = array(); // ? without this line the taxprice will be rounded to 0 decimals $currencies->currencies[DEFAULT_CURRENCY]['decimal_places'] = 4; define('QUICKUPDATES_DISPLAY_TVA_PRICES', QUICKUPDATES_DISPLAY_TVA_OVER); // bof functions function zen_quickupdates_table_head($sort_field, $head_text, $cols = 1)
// and use it as an example to add your own // added for QUICKUPDATES_NEW_COLUMN_1 // note: these 3 settings have been moved to config file (extra_configures/quick_updates.php) //define('QUICKUPDATES_MODIFY_NEW_COLUMN_1', 'true'); //define('QUICKUPDATES_NEW_COLUMN_1', 'products_artlid'); //define('TABLE_HEADING_NEW_COLUMN_1', 'artlid'); // check configuration keys if (QUICKUPDATES_DISPLAY_ID == 'QUICKUPDATES_DISPLAY_ID' && ($_GET['qu_installer'] != 'install')) { // admin area config not installed $messageStack->add(sprintf('Quick Updates Configuration Keys Not installed. Please install your configuration by clicking %sInstall%s', '<a href="' . zen_href_link(FILENAME_QUICK_UPDATES, 'qu_installer=install') . '">', '</a>'), 'warning'); } // installation start if ($_GET['qu_installer'] == 'install' ) { install_quick_updates(); // install new configuration keys zen_redirect(zen_href_link(FILENAME_QUICK_UPDATES)); } if ($_GET['qu_installer'] == 'remove') { remove_quick_updates(); // remove configuration variables zen_redirect(zen_href_link(FILENAME_QUICK_UPDATES)); } // end installation/removal $export_products = array(); // ? without this line the taxprice will be rounded to 0 decimals $currencies->currencies[DEFAULT_CURRENCY]['decimal_places'] = 4; define('QUICKUPDATES_DISPLAY_TVA_PRICES', QUICKUPDATES_DISPLAY_TVA_OVER);