BastBast
10.04.2007, 20:41
Hi,
ich war immer der Meinung das der auf der Indexseite gezeigte Artikel in der Specials Box bei jedem Seitenwechsel auch geändert wird..
Beobachte jetz allerdings schon seit einigen Tagen das dort immer der gleiche Artikel steht obwohl ich mehrere Angebote im Shop habe..
hier mal ein Auszug aus meiner specials.php
$image='';
**if ($random_product['products_image']!='') $image=DIR_WS_THUMBNAIL_IMAGES . $random_product['products_image'];
****$box_smarty->assign('LINK',xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]));
****$box_smarty->assign('IMAGE',$image);
****$box_smarty->assign('NAME',$random_product['products_name']);
****$box_smarty->assign('PRICE',$xtPrice->xtcGetPrice($random_product['products_id'],$format=true,1,$random_product['products_tax_class_id'],$random_product['products_price']));
****$box_smarty->assign('EXPIRES',$new_values['expires_date']);
****$box_smarty->assign('SPECIALS_LINK',xtc_href_link(FILENAME_SPEC IALS));
****$box_smarty->assign('language', $_SESSION['language']);
**if ($random_product["products_id"]!='') {
****** ******// set cache ID
**if (USE_CACHE=='false') {
**$box_smarty->caching = 0;
**$box_specials= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_specials.html');
**} else {
**$box_smarty->caching = 1;****
**$box_smarty->cache_lifetime=CACHE_LIFETIME;
**$box_smarty->cache_modified_check=CACHE_CHECK;
**$cache_id = $_SESSION['language'].$random_product["products_id"].$_SESSION['customers_status']['customers_status_name'];
**$box_specials= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_specials.html',$cache_id);
**}
****$box_specials= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_specials.html');
****$smarty->assign('box_SPECIALS',$box_specials);
** }
****?>
Ich weiss, das niemand hellsehen kann..aber evtl. hat ja jemand ein Tip für mich..
wat könnt da falsch sein???
benutze den 3.0.3.er
Thanks
ich war immer der Meinung das der auf der Indexseite gezeigte Artikel in der Specials Box bei jedem Seitenwechsel auch geändert wird..
Beobachte jetz allerdings schon seit einigen Tagen das dort immer der gleiche Artikel steht obwohl ich mehrere Angebote im Shop habe..
hier mal ein Auszug aus meiner specials.php
$image='';
**if ($random_product['products_image']!='') $image=DIR_WS_THUMBNAIL_IMAGES . $random_product['products_image'];
****$box_smarty->assign('LINK',xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]));
****$box_smarty->assign('IMAGE',$image);
****$box_smarty->assign('NAME',$random_product['products_name']);
****$box_smarty->assign('PRICE',$xtPrice->xtcGetPrice($random_product['products_id'],$format=true,1,$random_product['products_tax_class_id'],$random_product['products_price']));
****$box_smarty->assign('EXPIRES',$new_values['expires_date']);
****$box_smarty->assign('SPECIALS_LINK',xtc_href_link(FILENAME_SPEC IALS));
****$box_smarty->assign('language', $_SESSION['language']);
**if ($random_product["products_id"]!='') {
****** ******// set cache ID
**if (USE_CACHE=='false') {
**$box_smarty->caching = 0;
**$box_specials= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_specials.html');
**} else {
**$box_smarty->caching = 1;****
**$box_smarty->cache_lifetime=CACHE_LIFETIME;
**$box_smarty->cache_modified_check=CACHE_CHECK;
**$cache_id = $_SESSION['language'].$random_product["products_id"].$_SESSION['customers_status']['customers_status_name'];
**$box_specials= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_specials.html',$cache_id);
**}
****$box_specials= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_specials.html');
****$smarty->assign('box_SPECIALS',$box_specials);
** }
****?>
Ich weiss, das niemand hellsehen kann..aber evtl. hat ja jemand ein Tip für mich..
wat könnt da falsch sein???
benutze den 3.0.3.er
Thanks