Modify

Opened 5 years ago

Closed 5 years ago

#1919 closed Bug/Fehler (duplicate)

Fehler xtcPrice Kundenrabatt

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 (last modified by Torsten Riemer)

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->cStatus['customers_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 = $dData['products_discount_allowed'];
	    if ($this->cStatus['customers_status_discount'] < $discount) {
		    $discount = $this->cStatus['customers_status_discount'];
	    }
	    if ($discount == '0.00') {
		    return false;
	    }
	    return $discount;
    }

Attachments (0)

Change History (1)

comment:1 by Torsten Riemer, 5 years ago

Description: modified (diff)
Milestone: modified-shop-2.0.5.2
Resolution: duplicate
Status: newclosed

Duplikat von Ticket #1818.

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.