Hallo,
ich hatte die gleichen Probleme.
Der Fehler ist, das in der Datei xtcPrice.php in der Funktion xtcGetOptionPrice die Variable $products_price leer ist.
Eine zusätzliche Datenbankabfrage behebt dieses Problem und die Preise werden jetzt im Warenkorb wie gewünscht angezeigt.
if ($attribute_price_data['price_prefix'] == '+') {
$price = $price - $price / 100 * $discount;
}
if ($attribute_price_data['price_prefix'] == '-') {
$price *= -1;
}
if ($attribute_price_data['price_prefix'] == '=') {
// check Special Price
if($this->xtcCheckSpecial($pID)) {
$price_special = $this->xtcFormat($this->xtcCheckSpecial($pID), false, $attribute_price_data['products_tax_class_id']);
$price = ($price_special*-1) + $price;
} else {
// products_price Abfrage
$product_query = xtc_db_query("select products_id, products_price, products_discount_allowed, products_tax_class_id, products_weight from ".TABLE_PRODUCTS." where products_id='".$pID."'");
if ($product = xtc_db_fetch_array($product_query)) {
$products_price = $this->xtcGetPrice($product['products_id'], $format = false, $qty, $product['products_tax_class_id'], $product['products_price']);
$price = ($products_price*-1) + $price;
}
}
}
Gruss Web28