Modify ↓
Opened 6 years ago
Closed 6 years ago
#1829 closed Bug/Fehler (fixed)
Fehler in der Preisanzeige und Berechnung in Warenkorb und Kasse, wenn Kundengruppe Rabatt auf Artikelattribute zulässt
| Reported by: | svenyo | 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
Wenn eine Kundengruppe z.B. Händler einen allgemeinen Rabatt erhält und Rabatt auf Artikel-Attribute auf >Ja< eingestellt ist, dann wird der Rabatt trotzdem nur auf den Artikelpreis aber nicht auf das Artikel-Attribut angerechnet.
In der ../includes/modules/product_attributes.php in Zeile ca. 118 folgendes ändern.
Zuvor:
if ($_SESSION['customers_status']['customers_status_discount_attributes'] == 1 && $discount <> 0) {
$price -= $price / 100 * $discount;
Nach Änderung:
if ($_SESSION['customers_status']['customers_status_discount_attributes'] == 1 && $_SESSION['customers_status']['customers_status_discount'] <> 0) {
$price -= $price / 100 * $_SESSION['customers_status']['customers_status_discount'];
Und in ../includes/classes/xtcPrice.php in Zeile ca. 362 folgendes ändern.
Zuvor:
if ($discount <> 0) {
$price = $price - ($price / 100 * $discount);
Nach Änderung:
if ($_SESSION['customers_status']['customers_status_discount'] <> 0) {
$price = $price - ($price / 100 * $_SESSION['customers_status']['customers_status_discount']);
Bitte prüfen ob der Fehler dadurch komplett behoben ist.
Gruß,
svenyo
Attachments (0)
Change History (2)
comment:1 by , 6 years ago
| Milestone: | → modified-shop-2.0.5.2 |
|---|
comment:2 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 12763: