articolo con spessore maggiore in un ordine, dove sbaglio ?
Inviato: 31/03/2008, 20:53
tabella checkout_shipping.php
// spessore massimo presente nell'ordine
$max_products_thickness = 0;
for($t=0; $t < sizeof($order->products); $t++) {
$thickness_query_max = tep_db_query("select max(products_thickness) from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$t]['id'] . "'");
$thickness_res_max = tep_db_fetch_array($thickness_query_max);
$max_products_thickness = $thickness_res_max;
}
// spessore massimo presente nell'ordine
$max_products_thickness = 0;
for($t=0; $t < sizeof($order->products); $t++) {
$thickness_query_max = tep_db_query("select max(products_thickness) from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$t]['id'] . "'");
$thickness_res_max = tep_db_fetch_array($thickness_query_max);
$max_products_thickness = $thickness_res_max;
}