Opened 3 months ago

Closed 3 months ago

Last modified 3 months 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.5.2
Component: Shop Version: 2.0.5.1

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 Changed 3 months ago by GTB

  • Resolution set to duplicate
  • Status changed from new to closed

wurde bereits gemeldet und korrigiert mit Ticket #1818

comment:2 Changed 3 months ago by Tomcraft

  • Milestone set to modified-shop-2.0.5.2

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.