Hi, leute habe das problem das mir immer wieder die werte aus dem arry fliegen und ich komm einfach nicht drauf warum das so ist ??
hoffentlich wisst ihr ne lösung.
mfg
aggro
PHP-Code:
tfunction size() {
global $languages_id, $cart_quantity_photo;
if (!is_array($this->contents)) return false;
$size = array();
reset($this->contents);
while (list($products_id, ) = each($this->contents)) {
$productss_query = tep_db_query("select p.price_group,
ph.photo_size, ph.quantity, ph.photo_id, ph.photo_id,
ph.photo_price, ph.tax_class_id from " . TABLE_PHOTO_INFO . " ph, " . TABLE_PRODUCTS . " p where p.products_id = '" .
(int)$products_id . "' and ph.price_group = p.price_group and ph.language_id = '" . (int)$languages_id . "'");
while($productss = tep_db_fetch_array($productss_query)) {
if( ( $cart_quantity_photo[(int)$products_id.$productss['photo_id']] == '') ||
$cart_quantity_photo[(int)$products_id.$productss['photo_id']] == $productss['quantity']) {
$menge = $productss['quantity'];
} else {
$menge = $cart_quantity_photo[(int)$products_id.$productss['photo_id']];
}
$size[] = array('id' => (int)$products_id,
'photo_size' => $productss['photo_size'],
'photo_price' => $productss['photo_price'],
'photo_tax' => $productss['tax_class_id'],
'id_photo' => $prid,
'photo_id' => $productss['photo_id'],
(int)$products_id . $productss['photo_id'] => $menge);
}
$photo_array[] = array('photo' => $size);
unset($size);
}
return $photo_array;
}
mfg
aggro
Kommentar