﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1847	Rabattierte Preise bei Produktrabatten werden nicht angezeigt	web-looks.de	somebody	"Nachstellen des Problems:

1. Bei einem Produkt ""Maximal erlaubter Rabatt"" setzen. Bspw: 5.0
2. Bei der eigenen Kundengruppe ""Maximaler Rabatt auf Produkte"" setzen. Bspw: 20.0
3. Ergebnis: Rabattierte Preise sind im Kundenbereich nicht sichtbar

Fehler liegt in der Klasse xtcPrice, Funktion xtcCheckDiscount()


/includes/classes/xtcPrice.php

Suchen nach:

{{{
if ((isset($discount['products_discount_allowed'])
     && $this->cStatus['customers_status_discount'] < $discount['products_discount_allowed']
     ) || $discount['products_discount_allowed'] == '0.00'
    ) 
{
 return $this->cStatus['customers_status_discount'];
}
}}}


Ersetzen mit:

{{{
$discount = (isset($discount['products_discount_allowed']) ? floatval($discount['products_discount_allowed']) : 0);

if ($discount > 0) {
  if ($this->cStatus['customers_status_discount'] < $discount) {
    return $this->cStatus['customers_status_discount'];
  } else {
    return $discount;
  }
}
}}}"	Bug/Fehler	closed	normal	modified-shop-2.0.6.0	Shop	2.0.5.1	duplicate				
