Modify

Opened 10 years ago

Closed 6 years ago

Last modified 6 years ago

#826 closed Erweiterung (fixed)

Sonderpreise - xtcCheckSpecials() - Performance

Reported by: Volker Strähle Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.0
Component: Shop Version: 2.0.1.0
Keywords: Cc:
Blocked By: Blocking:

Description

die Funktion xtcCheckSpecials() in includes/classes/xtcPrice.php:

  function xtcCheckSpecial($pID) {
    if ($this->cStatus['customers_status_specials'] == '1') {
      $product_query = xtDBquery("SELECT specials_new_products_price
                                    FROM ".TABLE_SPECIALS."
                                   WHERE products_id = '".$pID."'
                                     AND status = 1
                                     AND (start_date IS NULL 
                                          OR start_date <= NOW())
                                  AND (expires_date >= NOW() OR expires_date IS NULL)");
      if (xtc_db_num_rows($product_query, true) > 0) {
....


und in der DB dazu passend:

ALTER TABLE `specials` ADD INDEX(`start_date`);
ALTER TABLE `specials` ADD INDEX(`expires_date`);

Attachments (0)

Change History (5)

comment:1 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.1.0.0

comment:2 by Gerhard Waldemair, 6 years ago

Milestone: modified-shop-2.0.5.0

comment:3 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 11975:

fix #826

comment:4 by Torsten Riemer, 6 years ago

In 11976:

Addition on r11975 (fix #826)

comment:5 by Gerhard Waldemair, 6 years ago

In 12022:

revised r11975 (fix #826)

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.