$name) { if (empty($name)) { // purge empty slots unset($_FILES['files']['name'][$key]); unset($_FILES['files']['type'][$key]); unset($_FILES['files']['tmp_name'][$key]); unset($_FILES['files']['error'][$key]); unset($_FILES['files']['size'][$key]); } } } $nImageCounter = (!isset($_POST['image_counter']) || !is_numeric($_POST['image_counter'])) ? 0 : intval($_POST['image_counter']); $sProductsQuantity = oos_db_prepare_input($_POST['products_quantity']); $sProductsStatus = oos_db_prepare_input($_POST['products_status']); $sProductsReplacementProductID = oos_db_prepare_input($_POST['products_replacement_product_id']); if (isset($_POST['products_replacement_product_id']) && is_numeric($_POST['products_replacement_product_id']) && ($_POST['products_replacement_product_id'] > 0) ) { $messageStack->add_session(ERROR_REPLACEMENT, 'error'); $sProductsStatus = 4; } else { $sProductsReplacementProductID = ''; } if (STOCK_CHECK == 'true') { if ($sProductsQuantity <= 0 ) { $messageStack->add_session(ERROR_OUTOFSTOCK, 'error'); $sProductsStatus = 0; } } $products_id = oos_db_prepare_input($_GET['pID']); $products_date_available = oos_db_prepare_input($_POST['products_date_available']); if (isset($_POST['products_base_price']) ) { $products_base_price = oos_db_prepare_input($_POST['products_base_price']); $products_product_quantity = oos_db_prepare_input($_POST['products_product_quantity']); $products_base_quantity = oos_db_prepare_input($_POST['products_base_quantity']); $products_base_unit = oos_db_prepare_input($_POST['products_base_unit']); } else { $products_base_price = 1.0; $products_product_quantity = 1; $products_base_quantity = 1; $products_base_unit = ''; } $products_date_available = (date('Y-m-d') < $products_date_available) ? $products_date_available : 'null'; $sql_data_array = array('products_quantity' => $sProductsQuantity, 'products_reorder_level' => oos_db_prepare_input($_POST['products_reorder_level']), 'products_model' => oos_db_prepare_input($_POST['products_model']), 'products_replacement_product_id' => $sProductsReplacementProductID, 'products_ean' => oos_db_prepare_input($_POST['products_ean']), 'products_price' => oos_db_prepare_input($_POST['products_price']), 'products_base_price' => $products_base_price, 'products_product_quantity' => $products_product_quantity, 'products_base_quantity' => $products_base_quantity, 'products_base_unit' => $products_base_unit, 'products_date_available' => $products_date_available, 'products_weight' => oos_db_prepare_input($_POST['products_weight']), 'products_status' => $sProductsStatus, 'products_setting' => oos_db_prepare_input($_POST['products_setting']), 'products_tax_class_id' => oos_db_prepare_input($_POST['products_tax_class_id']), 'products_units_id' => oos_db_prepare_input($_POST['products_units_id']), 'manufacturers_id' => oos_db_prepare_input($_POST['manufacturers_id']), 'products_price_list' => oos_db_prepare_input($_POST['products_price_list']), 'products_quantity_order_min' => oos_db_prepare_input($_POST['products_quantity_order_min']), 'products_quantity_order_units' => oos_db_prepare_input($_POST['products_quantity_order_units']), 'products_quantity_order_max' => oos_db_prepare_input($_POST['products_quantity_order_max']), 'products_discount1' => oos_db_prepare_input($_POST['products_discount1']), 'products_discount1_qty' => oos_db_prepare_input($_POST['products_discount1_qty']), 'products_discount2' => oos_db_prepare_input($_POST['products_discount2']), 'products_discount2_qty' => oos_db_prepare_input($_POST['products_discount2_qty']), 'products_discount3' => oos_db_prepare_input($_POST['products_discount3']), 'products_discount3_qty' => oos_db_prepare_input($_POST['products_discount3_qty']), 'products_discount4' => oos_db_prepare_input($_POST['products_discount4']), 'products_discount4_qty' => oos_db_prepare_input($_POST['products_discount4_qty']), ); if ($action == 'insert_product') { $insert_sql_data = array('products_date_added' => 'now()'); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); oos_db_perform($oostable['products'], $sql_data_array); $products_id = $dbconn->Insert_ID(); $products_to_categoriestable = $oostable['products_to_categories']; $dbconn->Execute("INSERT INTO $products_to_categoriestable (products_id, categories_id) VALUES ('" . intval($products_id) . "', '" . intval($current_category_id) . "')"); } elseif ($action == 'update_product') { $update_sql_data = array('products_last_modified' => 'now()'); $sql_data_array = array_merge($sql_data_array, $update_sql_data); oos_db_perform($oostable['products'], $sql_data_array, 'UPDATE', 'products_id = \'' . intval($products_id) . '\''); } $aLanguages = oos_get_languages(); $nLanguages = count($aLanguages); for ($i = 0, $n = $nLanguages; $i < $n; $i++) { $language_id = $aLanguages[$i]['id']; $sql_data_array = array('products_name' => oos_db_prepare_input($_POST['products_name'][$language_id]), 'products_title' => oos_db_prepare_input($_POST['products_title'][$language_id]), 'products_description' => oos_db_prepare_input($_POST['products_description_' . $aLanguages[$i]['id']]), 'products_short_description' => oos_db_prepare_input($_POST['products_short_description_' . $aLanguages[$i]['id']]), 'products_essential_characteristics' => oos_db_prepare_input($_POST['products_essential_characteristics_' . $aLanguages[$i]['id']]), 'products_description_meta' => oos_db_prepare_input($_POST['products_description_meta_' . $aLanguages[$i]['id']]), 'products_url' => oos_db_prepare_input($_POST['products_url'][$language_id])); if ($action == 'insert_product') { $insert_sql_data = array('products_id' => $products_id, 'products_languages_id' => $language_id); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); oos_db_perform($oostable['products_description'], $sql_data_array); } elseif ($action == 'update_product') { oos_db_perform($oostable['products_description'], $sql_data_array, 'UPDATE', 'products_id = \'' . intval($products_id) . '\' AND products_languages_id = \'' . intval($language_id) . '\''); } } if ( ($_POST['remove_image'] == 'yes') && (isset($_POST['products_previous_image'])) ) { $products_previous_image = oos_db_prepare_input($_POST['products_previous_image']); $productsstable = $oostable['products']; $dbconn->Execute("UPDATE $productsstable SET products_image = NULL WHERE products_id = '" . intval($products_id) . "'"); oos_remove_product_image($products_previous_image); } for ($i = 1, $n = $nImageCounter+1; $i < $n; $i++) { if ( ($_POST['remove_products_image'][$i] == 'yes') && (isset($_POST['products_previous_large_image'][$i])) ) { $products_previous_large_image = oos_db_prepare_input($_POST['products_previous_large_image'][$i]); $dbconn->Execute("DELETE FROM " . $oostable['products_images'] . " WHERE image_name = '" . oos_db_input($products_previous_large_image) . "'"); oos_remove_category_image($products_previous_large_image); } } $options = array( 'image_versions' => array( // The empty image version key defines options for the original image. // Keep in mind: these image manipulations are inherited by all other image versions from this point onwards. // Also note that the property 'no_cache' is not inherited, since it's not a manipulation. '' => array( // Automatically rotate images based on EXIF meta data: 'auto_orient' => TRUE ), 'large' => array( // 'auto_orient' => TRUE, // 'crop' => TRUE, // 'jpeg_quality' => 82, // 'no_cache' => TRUE, (there's a caching option, but this remembers thumbnail sizes from a previous action!) // 'strip' => TRUE, (this strips EXIF tags, such as geolocation) 'max_width' => 1024, // either specify width, or set to 0. Then width is automatically adjusted - keeping aspect ratio to a specified max_height. 'max_height' => 1024, // either specify height, or set to 0. Then height is automatically adjusted - keeping aspect ratio to a specified max_width. ), 'medium_large' => array( // 'auto_orient' => TRUE, // 'crop' => TRUE, // 'jpeg_quality' => 82, // 'no_cache' => TRUE, (there's a caching option, but this remembers thumbnail sizes from a previous action!) // 'strip' => TRUE, (this strips EXIF tags, such as geolocation) 'max_width' => 600, // either specify width, or set to 0. Then width is automatically adjusted - keeping aspect ratio to a specified max_height. 'max_height' => 600 // either specify height, or set to 0. Then height is automatically adjusted - keeping aspect ratio to a specified max_width. ), 'medium' => array( // 'auto_orient' => TRUE, // 'crop' => TRUE, // 'jpeg_quality' => 82, // 'no_cache' => TRUE, (there's a caching option, but this remembers thumbnail sizes from a previous action!) // 'strip' => TRUE, (this strips EXIF tags, such as geolocation) 'max_width' => 420, // either specify width, or set to 0. Then width is automatically adjusted - keeping aspect ratio to a specified max_height. 'max_height' => 455 // either specify height, or set to 0. Then height is automatically adjusted - keeping aspect ratio to a specified max_width. ), 'small' => array( // 'auto_orient' => TRUE, // 'crop' => TRUE, // 'jpeg_quality' => 82, // 'no_cache' => TRUE, (there's a caching option, but this remembers thumbnail sizes from a previous action!) // 'strip' => TRUE, (this strips EXIF tags, such as geolocation) 'max_width' => 150, // either specify width, or set to 0. Then width is automatically adjusted - keeping aspect ratio to a specified max_height. 'max_height' => 150 // either specify height, or set to 0. Then height is automatically adjusted - keeping aspect ratio to a specified max_width. ), 'min' => array( // 'auto_orient' => TRUE, // 'crop' => TRUE, // 'jpeg_quality' => 82, // 'no_cache' => TRUE, (there's a caching option, but this remembers thumbnail sizes from a previous action!) // 'strip' => TRUE, (this strips EXIF tags, such as geolocation) 'max_width' => 45, // either specify width, or set to 0. Then width is automatically adjusted - keeping aspect ratio to a specified max_height. 'max_height' => 45 // either specify height, or set to 0. Then height is automatically adjusted - keeping aspect ratio to a specified max_width. ), ), ); $oProductImage = new upload('products_image', $options); $dir_fs_catalog_images = OOS_ABSOLUTE_PATH . OOS_IMAGES . 'product/'; $oProductImage->set_destination($dir_fs_catalog_images); if ($oProductImage->parse() && oos_is_not_null($oProductImage->filename)) { $productstable = $oostable['products']; $dbconn->Execute("UPDATE $productstable SET products_image = '" . oos_db_input($oProductImage->filename) . "' WHERE products_id = '" . intval($products_id) . "'"); } if (isset($_FILES['files'])) { $oImage = new upload('files', $options); $dir_fs_catalog_images = OOS_ABSOLUTE_PATH . OOS_IMAGES . 'product/'; $oImage->set_destination($dir_fs_catalog_images); $oImage->parse(); if (oos_is_not_null($oImage->response)) { $sort_order = 0 + $nImageCounter; foreach ($oImage->response as $index => $value) { $sort_order++; $sql_data_array = array('products_id' => intval($products_id), 'image_name' => oos_db_prepare_input($value), 'sort_order' => intval($sort_order)); oos_db_perform($oostable['products_images'], $sql_data_array); } } } oos_redirect_admin(oos_href_link_admin($aContents['categories'], 'cPath=' . $cPath . '&pID=' . $products_id)); break; } } // check if the catalog image directory exists if (is_dir(OOS_ABSOLUTE_PATH . OOS_IMAGES)) { if (!is_writeable(OOS_ABSOLUTE_PATH . OOS_IMAGES)) $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error'); } else { $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error'); } require 'includes/header.php'; ?>
'', 'products_title' => '', 'products_description' => '', 'products_short_description' => '', 'products_essential_characteristics' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_larger_images' => array(), 'products_price' => 0.0, 'products_base_price' => 1.0, 'products_product_quantity' => 1.0, 'products_base_quantity' => 1.0, 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_setting' => DEFAULT_SETTING_ID, 'products_status' => DEFAULT_PRODUTS_STATUS_ID, 'products_tax_class_id' => DEFAULT_TAX_CLASS_ID, 'products_units_id' => DEFAULT_PRODUCTS_UNITS_ID, 'manufacturers_id' => ''); $pInfo = new objectInfo($parameters); if (isset($_GET['pID']) && empty($_POST)) { $productstable = $oostable['products']; $products_descriptiontable = $oostable['products_description']; $product_result = $dbconn->Execute("SELECT p.products_id, pd.products_name, pd.products_title, pd.products_description, pd.products_short_description, pd.products_essential_characteristics, pd.products_url, pd.products_description_meta, p.products_quantity, p.products_reorder_level, p.products_model, p.products_replacement_product_id, p.products_ean, p.products_image, p.products_price, p.products_base_price, p.products_base_quantity, p.products_product_quantity, p.products_base_unit, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') AS products_date_available, p.products_status, p.products_setting, p.products_tax_class_id, p.products_units_id, p.manufacturers_id, p.products_price_list, p.products_quantity_order_min, p.products_quantity_order_units, p.products_quantity_order_max, p.products_discount1, p.products_discount2, p.products_discount3, p.products_discount4, p.products_discount1_qty, p.products_discount2_qty, p.products_discount3_qty, p.products_discount4_qty, p.products_sort_order FROM $productstable p, $products_descriptiontable pd WHERE p.products_id = '" . intval($pID) . "' AND p.products_id = pd.products_id AND pd.products_languages_id = '" . intval($_SESSION['language_id']) . "'"); $product = $product_result->fields; $pInfo = new objectInfo($product); $products_imagestable = $oostable['products_images']; $products_images_result = $dbconn->Execute("SELECT products_id, image_name, sort_order FROM $products_imagestable WHERE products_id = '" . intval($product['products_id']) . "' ORDER BY sort_order"); while ($product_images = $products_images_result->fields) { $pInfo->products_larger_images[] = array('products_id' => $product_images['products_id'], 'image' => $product_images['image_name'], 'sort_order' => $product_images['sort_order']); // Move that ADOdb pointer! $products_images_result->MoveNext(); } } elseif (oos_is_not_null($_POST)) { // todo remove... $products_name = oos_db_prepare_input($_POST['products_name']); $products_description = oos_db_prepare_input($_POST['products_description']); $products_short_description = oos_db_prepare_input($_POST['products_short_description']); $products_essential_characteristics = oos_db_prepare_input($_POST['products_essential_characteristics']); $products_description_meta = oos_db_prepare_input($_POST['products_description_meta']); $products_url = oos_db_prepare_input($_POST['products_url']); } $manufacturers_array = array(); $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); $manufacturerstable = $oostable['manufacturers']; $manufacturers_result = $dbconn->Execute("SELECT manufacturers_id, manufacturers_name FROM $manufacturerstable ORDER BY manufacturers_name"); while ($manufacturers = $manufacturers_result->fields) { $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); // Move that ADOdb pointer! $manufacturers_result->MoveNext(); } $tax_class_array = array(); $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE)); $tax_classtable = $oostable['tax_class']; $tax_class_result = $dbconn->Execute("SELECT tax_class_id, tax_class_title FROM $tax_classtable ORDER BY tax_class_title"); while ($tax_class = $tax_class_result->fields) { $tax_class_array[] = array('id' => $tax_class['tax_class_id'], 'text' => $tax_class['tax_class_title']); // Move that ADOdb pointer! $tax_class_result->MoveNext(); } $products_units_array = array(); $products_units_array = array(array('id' => '0', 'text' => TEXT_NONE)); $products_unitstable = $oostable['products_units']; $products_units_result = $dbconn->Execute("SELECT products_units_id, products_unit_name FROM $products_unitstable WHERE languages_id = '" . intval($_SESSION['language_id']) . "' ORDER BY products_unit_name"); while ($products_units = $products_units_result->fields) { $products_units_array[] = array('id' => $products_units['products_units_id'], 'text' => $products_units['products_unit_name']); // Move that ADOdb pointer! $products_units_result->MoveNext(); } $products_status_array = array(); $products_status_array = array(array('id' => '0', 'text' => TEXT_PRODUCT_NOT_AVAILABLE)); $products_statustable = $oostable['products_status']; $products_status_result = $dbconn->Execute("SELECT products_status_id, products_status_name FROM $products_statustable WHERE products_status_languages_id = '" . intval($_SESSION['language_id']) . "' ORDER BY products_status_id"); while ($products_status = $products_status_result->fields) { $products_status_array[] = array('id' => $products_status['products_status_id'], 'text' => $products_status['products_status_name']); // Move that ADOdb pointer! $products_status_result->MoveNext(); } $aLanguages = oos_get_languages(); $nLanguages = count($aLanguages); $form_action = (isset($_GET['pID'])) ? 'update_product' : 'insert_product'; $aSetting = array(); $settingstable = $oostable['setting']; $setting_result = $dbconn->Execute("SELECT setting_id, setting_name FROM $settingstable WHERE setting_languages_id = '" . intval($_SESSION['language_id']) . "' ORDER BY setting_id"); while ($setting = $setting_result->fields) { $aSetting[] = array('id' => $setting['setting_id'], 'text' => $setting['setting_name']); // Move that ADOdb pointer! $setting_result->MoveNext(); } if (isset($_GET['origin'])) { $sOrigin = oos_db_prepare_input($_GET['origin']); $pos_params = strpos($sOrigin, '?', 0); if ($pos_params != false) { $back_url = substr($sOrigin, 0, $pos_params); $back_url_params = substr($sOrigin, $pos_params + 1); } else { $back_url = $sOrigin; $back_url_params = ''; } } else { $back_url = $aContents['categories']; $back_url_params = 'cPath=' . $cPath; if (oos_is_not_null($pInfo->products_id)) { $back_url_params .= '&pID=' . $pInfo->products_id; } } ?>

products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))); echo oos_hide_session_id(); ?>
' . IMAGE_BACK . ''; ?>
products_setting); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
manufacturers_id); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
1) echo '
' . oos_flag_icon($aLanguages[$i]) . '
'; ?>
products_id, $aLanguages[$i]['id']))); ?>
products_price, 4, '.', ''); echo oos_draw_input_field('products_price', $sPrice, 'onkeyup="updateWithTax()"'); ?>
products_price, TAX_DECIMAL_PLACES, '.', ''); echo oos_draw_input_field('products_price_gross', $sPrice, 'onkeyup="updateNet()"'); ?>
products_price_list, TAX_DECIMAL_PLACES, '.', ''); echo oos_draw_input_field('products_price_list', $sPriceList); ?>
products_product_quantity, 'onkeyup="calcBasePriceFactor()"'); ?>
products_units_id); ?>
products_base_quantity, 'onkeyup="calcBasePriceFactor()"'); ?>
products_base_unit); ?>
products_base_price); ?>
products_tax_class_id, 'onchange="updateWithTax()"') ?>
products_discount1, 4, '.', ''); $sDiscount2 = number_format($pInfo->products_discount2, 4, '.', ''); $sDiscount3 = number_format($pInfo->products_discount3, 4, '.', ''); $sDiscount4 = number_format($pInfo->products_discount4, 4, '.', ''); ?>
1 2 3 4
products_discount1_qty); ?> products_discount2_qty); ?> products_discount3_qty); ?> products_discount4_qty); ?>
products_model); ?>
products_ean); ?>
products_quantity); ?>
products_quantity_order_min==0 ? 1 : $pInfo->products_quantity_order_min)); ?>
products_quantity_order_units==0 ? 1 : $pInfo->products_quantity_order_units)); ?>
products_quantity_order_max==0 ? 30 : $pInfo->products_quantity_order_max)); ?>
products_reorder_level); ?>
products_weight); ?>
products_status); ?>
products_replacement_product_id); ?>
products_image)) { echo '
'; echo oos_info_image('product/small/' . $pInfo->products_image, $pInfo->products_name); echo '
'; echo oos_draw_hidden_field('products_previous_image', $pInfo->products_image); echo '
'; echo oos_draw_checkbox_field('remove_image', 'yes') . ' ' . TEXT_IMAGE_REMOVE; } else { ?>
products_larger_images) || is_object($pInfo->products_larger_images)) { $nCounter = 0; foreach ($pInfo->products_larger_images as $image) { $nCounter++; ?>
'; echo oos_info_image('product/small/' . $image['image'], $pInfo->products_name); echo '
'; echo $image['image']; echo oos_draw_hidden_field('products_previous_large_image['. $nCounter . ']', $image['image']); echo '
'; echo oos_draw_checkbox_field('remove_products_image['. $nCounter . ']', 'yes') . ' ' . TEXT_IMAGE_REMOVE; ?>

+

' . IMAGE_BACK . ''; ?>
Execute("SELECT pd.products_name, pd.products_description, pd.products_description_meta, pd.products_url, p.products_id, p.products_quantity, p.products_reorder_level, p.products_model, p.products_replacement_product_id, p.products_ean, p.products_image, p.products_price, p.products_base_price, p.products_base_unit, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.products_units_id, p.manufacturers_id, p.products_price_list, p.products_quantity_order_min, p.products_quantity_order_units, p.products_discount1, p.products_discount2, p.products_discount3, p.products_discount4, p.products_discount1_qty, p.products_discount2_qty, p.products_discount3_qty, p.products_discount4_qty, p.products_sort_order FROM " . $oostable['products'] . " p, " . $oostable['products_description'] . " pd WHERE p.products_id = '" . intval($pID) . "' and p.products_id = pd.products_id and pd.products_languages_id = '" . intval($_SESSION['language_id']) . "'"); $product = $product_result->fields; $pInfo = new objectInfo($product); $products_image_name = $pInfo->products_image; $aLanguages = oos_get_languages(); $nLanguages = count($aLanguages); for ($i = 0, $n = $nLanguages; $i < $n; $i++) { $pInfo->products_name = oos_get_products_name($pInfo->products_id, $aLanguages[$i]['id']); $pInfo->products_description = oos_get_products_description($pInfo->products_id, $aLanguages[$i]['id']); $pInfo->products_description_meta = oos_get_products_description_meta($pInfo->products_id, $aLanguages[$i]['id']); $pInfo->products_url = oos_get_products_url($pInfo->products_id, $aLanguages[$i]['id']); } ?> products_url) { ?> products_date_available > date('Y-m-d')) { ?> products_id)) { $back_url_params .= '&pID=' . $pInfo->products_id; } } ?>
products_discount1_qty == 0 and $pInfo->products_discount2_qty == 0 and $pInfo->products_discount3_qty == 0 and $pInfo->products_discount4_qty == 0 )) { $the_special = oos_get_products_special_price($_GET['pID']); $q0 = $pInfo->products_quantity_order_min; $q1 = $pInfo->products_discount1_qty; $q2 = $pInfo->products_discount2_qty; $q3 = $pInfo->products_discount3_qty; $q4 = $pInfo->products_discount4_qty; $col_cnt = 1; if ( $pInfo->products_discount1 > 0 ) { $col_cnt = $col_cnt+1; } if ( $pInfo->products_discount2 > 0 ) { $col_cnt = $col_cnt+1; } if ( $pInfo->products_discount3 > 0 ) { $col_cnt = $col_cnt+1; } if ( $pInfo->products_discount4 > 0 ) { $col_cnt = $col_cnt+1; } ?>
products_name; ?> format($pInfo->products_price); ?>
 
'; echo (($q1-1) > $q0 ? $q0 . '-' . ($q1-1) : $q0); echo ' '; if ( $q1 > 0 ) { echo ''; } if ( $q2 > 0 ) { echo ''; } if ( $q3 > 0 ) { echo ''; } if ( $q4 > 0 ) { echo ''; } ?> '; echo ( ($the_special==0) ? $currencies->format($pInfo->products_price) : $currencies->format($the_special) ); echo ''; if ( $q1 > 0 ) { echo ''; } if ( $q2 > 0 ) { echo ''; } if ( $q3 > 0 ) { echo ''; } if ( $q4 > 0 ) { echo ''; } ?>
WARNING: Quanties Minimum >
Price Break 1
 
'; echo ($q2 > 0 ? (($q2-1) > $q1 ? $q1 . '-' . ($q2-1) : $q1) : $q1 . '+'); echo ''; echo ($q3 > 0 ? (($q3-1) > $q2 ? $q2 . '-' . ($q3-1) : $q2) : $q2 . '+'); echo ''; echo ($q4 > 0 ? (($q4-1) > $q3 ? $q3 . '-' . ($q4-1) : $q3) : $q3 . '+'); echo ''; echo ($q4 > 0 ? $q4 . '+' : ''); echo '
'; echo $currencies->format($pInfo->products_discount1); echo ''; echo $currencies->format($pInfo->products_discount2); echo ''; echo $currencies->format($pInfo->products_discount3); echo ''; echo $currencies->format($pInfo->products_discount4); echo '
products_name, '', '80', 'align="right" hspace="5" vspace="5"') : ''); echo $pInfo->products_description; ?>
products_url); ?>
products_date_available)); ?>
products_date_added)); ?>
' . oos_button(IMAGE_BACK) . ''; ?>