Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2432 closed Neues Feature (fixed)

specials_quantity in der Produkt-Einzelansicht verfügbar machen

Reported by: noRiddle Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.8.0
Component: Shop Version: 2.0.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Die geeignete Code-Stelle in der /includes/modules/product_info.php wäre hier.

  if ($_SESSION['customers_status']['customers_status_specials'] != '0') {
    $special_expires_date_query = "SELECT expires_date
                                     FROM ".TABLE_SPECIALS."
                                    WHERE products_id = '".$product->data['products_id']."'
                                          ".SPECIALS_CONDITIONS;
    $special_expires_date_query = xtc_db_query($special_expires_date_query);
    if (xtc_db_num_rows($special_expires_date_query) > 0) {
      $sDate = xtc_db_fetch_array($special_expires_date_query);
      $info_smarty->assign('PRODUCTS_EXPIRES', $sDate['expires_date'] != '0000-00-00 00:00:00' ? xtc_date_short($sDate['expires_date']) : '');
      $info_smarty->assign('PRODUCTS_EXPIRES_C', $sDate['expires_date'] != '0000-00-00 00:00:00' ? date('c', strtotime($sDate['expires_date'])) : '');
    }
  }

indem man specials_quantity in der Query mitabfragt und dann das Smarty definiert:

$info_smarty->assign('SPECIALS_QUANTITY', $sDate['specials_quantity']);

Gruß,
noRiddle

Attachments (0)

Change History (2)

comment:1 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 14995:

fix #2432 - add specials data in product info

comment:2 by Torsten Riemer, 3 years ago

Der definierte Smarty heisst: PRODUCTS_SPECIALS_QUANTITY

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.