Opened 5 years ago
Last modified 5 years ago
#1919 closed Bug/Fehler
Fehler xtcPrice Kundenrabatt — at Initial Version
| Reported by: | anonymous | Owned by: | somebody |
|---|---|---|---|
| Priority: | hoch | Milestone: | modified-shop-2.0.6.0 |
| Component: | Shop | Version: | 2.0.5.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Beim letzten großen Update wurde die Funktion xtcCheckDiscount() verändert und funktioniert jetzt nicht mehr wie gewohnt.
Statt den Kundenrabatt, auf den am Produkt hinterlegten, zu reduzieren, wird nur noch ein Rabatt gewährt wenn dieser kleiner ist als der am Produkt, nicht mal wenn sie gleich sind.
Das ist falsch, bitte wieder alte Funktion herstellen.
if ($this->cStatuscustomers_status_discount != '0.00') {
$discount_query = xtDBquery("SELECT products_discount_allowed FROM ".TABLE_PRODUCTS." WHERE products_id = '".$pID."'");
$dData = xtc_db_fetch_array($discount_query, true);
$discount = $dDataproducts_discount_allowed;
if ($this->cStatuscustomers_status_discount < $discount) {
$discount = $this->cStatuscustomers_status_discount;
}
if ($discount == '0.00') {
return false;
}
return $discount;
}
