﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
2432	specials_quantity in der Produkt-Einzelansicht verfügbar machen	noRiddle	somebody	"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
"	Neues Feature	closed	normal	modified-shop-2.0.8.0	Shop	2.0.7.2	fixed				
