﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1715	kein Rabatt auf Attribute bei negativen Attributpreisen	info@…	somebody	"Hi,

gibt es einen Grund, dass seit vielen Shop-Generationen der Artikel-Rabatt auf Attribute nicht gewährt wird, wenn der Preisaufschlag des Attributes negativ ist?

Verantwortlich scheinen diese Zeilen:
includes/classes/xtcPrice.php
{{{
if ($attribute_data['price_prefix'] == '+') {
        $price = $price - ($price / 100 * $discount);
      } else {
        $price *= -1;
      }
}}}
und
includes/modules/product_attributes.php
{{{
if ($_SESSION['customers_status']['customers_status_discount_attributes'] == 1 && $products_options['price_prefix'] == '+')
					$price -= $price / 100 * $discount;
}}}

Ich würde es wie folgt ändern:
includes/classes/xtcPrice.php
{{{
      if ($discount <> 0) {
        $price = $price - ($price / 100 * $discount);
      }
      if ($attribute_data['price_prefix'] == '-') {
        $price *= -1;
      }
}}}

und
includes/modules/product_attributes.php
{{{
        if ($_SESSION['customers_status']['customers_status_discount_attributes'] == 1 && $discount <> 0) {
          $price -= $price / 100 * $discount;
        }
}}}

Viele Grüße
Andreas"	Bug/Fehler	closed	normal	modified-shop-2.0.5.0	Shop	trunk	fixed				
