Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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:

  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;
  }
}

Attachments (0)

Change History (2)

comment:1 by Gerhard Waldemair, 5 years ago

Resolution: duplicate
Status: newclosed

wurde bereits gemeldet und korrigiert mit Ticket #1818

comment:2 by Torsten Riemer, 5 years ago

Milestone: modified-shop-2.0.5.2

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.