Modify ↓
#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)
Note:
See TracTickets
for help on using tickets.

In 14995: