Entpacken und in folgendes Verzeichnis spielen:
includes/extra_configures
includes/extra_configures
$prodId = ereg_replace('[^0-9a-f:]', '', $key);
$prodId = ereg_replace('[^0-9a-f:.]', '', $key);
if (is_array($value) ) { reset($value); while (list($opt, $val) = each($value)) { $val = (int)$val; $products_options_sort_order= zen_get_attributes_options_sort_order(zen_get_prid($products_id), $option, $opt); $sql = "insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " (customers_id, products_id, products_options_id, products_options_value_id, products_options_sort_order) values ('" . (int)$_SESSION['customer_id'] . "', '" . zen_db_input($products_id) . "', '" . (int)$option.'_chk'. $val . "', '" . $val . "', '" . $products_options_sort_order . "')"; $db->Execute($sql); } } else { if ($attr_value) { $attr_value = zen_db_input($attr_value); } $value = (int)$value; $products_options_sort_order= zen_get_attributes_options_sort_order(zen_get_prid($products_id), $option, $value); $sql = "insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " (customers_id, products_id, products_options_id, products_options_value_id, products_options_value_text, products_options_sort_order) values ('" . (int)$_SESSION['customer_id'] . "', '" . zen_db_input($products_id) . "', '" . (int)$option . "', '" . $value . "', '" . $attr_value . "', '" . $products_options_sort_order . "')"; $db->Execute($sql); }
if (is_array($value) ) { reset($value); while (list($opt, $val) = each($value)) { $val = (int)$val; $products_options_sort_order= zen_get_attributes_options_sort_order(zen_get_prid($products_id), $option, $opt); $sql = "update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . $val . "' where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . zen_db_input($products_id) . "' and products_options_id = '" . (int)$option.'_chk'.$val . "'"; $db->Execute($sql); } } else { if (isset($_SESSION['customer_id'])) { $value = (int)$value; $sql = "update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . $value . "', products_options_value_text = '" . $attr_value . "' where customers_id = '" . (int)$_SESSION['customer_id'] . "' and products_id = '" . zen_db_input($products_id) . "' and products_options_id = '" . (int)$option . "'"; $db->Execute($sql); } }
function actionMultipleAddProduct($goto, $parameters) { global $messageStack; if (is_array($_POST['products_id']) && sizeof($_POST['products_id']) > 0) { while ( list( $key, $val ) = each($_POST['products_id']) ) { if ($val > 0) { $adjust_max = false; $prodId = ereg_replace('[^0-9a-f:]', '', $key); $qty = $val; $add_max = zen_get_products_quantity_order_max($prodId); ...
Einen Kommentar schreiben: