Modify ↓
#1847 closed Bug/Fehler (duplicate)
Rabattierte Preise bei Produktrabatten werden nicht angezeigt
| Reported by: | web-looks.de | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.6.0 |
| Component: | Shop | Version: | 2.0.5.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Nachstellen des Problems:
- Bei einem Produkt "Maximal erlaubter Rabatt" setzen. Bspw: 5.0
- Bei der eigenen Kundengruppe "Maximaler Rabatt auf Produkte" setzen. Bspw: 20.0
- 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;
}
}
Attachments (0)
Change History (2)
comment:1 by , 5 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
comment:2 by , 5 years ago
| Milestone: | → modified-shop-2.0.5.2 |
|---|
Note:
See TracTickets
for help on using tickets.

wurde bereits gemeldet und korrigiert mit Ticket #1818