Shop Support News Archive - Shopbetreiber News -> Forum : Module Open Source Shopsystem xt eCommerce Templates Module SEO Support: : Bestseller Werden Nicht Angezeigt
Wenn mein shop aufgerufen wird erscheint die bestseller box nicht auf der startseite sondern erst dann wenn der artikel aufgerufen wird.
Ich habe hier im forum schon gestöbert und bin auch fündig geworden, allerdings wurde dann enteweder das thema durcheinander geredet so dass ich dann nicht mehr durchgestiegen bin oder es war nicht für meine Version.
Wie kann, oder was muss ich machen, damit die Box dauerhaft angezeigt wird und wie kann ich das anstellen dass dort auch Bild im rotations modus angezeigt werden?
HarryBoo
07.12.2006, 11:30
Zu deinem ersten Problem, hast du da LINK (http://www.ecombase.de/forum/index.php?s=&showtopic=1855&view=findpost&p=10888) mal reingeschaut, bzw. ausprobiert ?
zumindest taucht sie schonmal bei allen artikeln auf, aber immernoch nicht auf der startseite.
Habe das mal in deinen post weitergeleitet.
//EDIT
Oder muss ich da im Admin noch irgendwas einstellen/ activieren?
Ist mir zwar nichts bekannt, aber möglich ist alles.
Und wie gesagt, ich habe die SP1
Meine Bestseller Box ist leider immer noch nicht auf der Startseite zu sehen.
Erst dann wenn ich in einen Artikel direkt rein gehe dann taucht sie auf.
Wie kann ich das machen das sie immer zu sehen ist?
''>ZITAT(Keule @ Jan 5 2007, 11:44) 17987
Meine Bestseller Box ist leider immer noch nicht auf der Startseite zu sehen.
Erst dann wenn ich in einen Artikel direkt rein gehe dann taucht sie auf.
Wie kann ich das machen das sie immer zu sehen ist?
[/b]
achso, das steuerst du in der boxes.php von deinem template
da ist wohl eine if-abfrage um die bestsellers.php, diese musst du rausnehmen
Gruß
TechWay
******if ($check['count'] > 0) {
********include(DIR_WS_BOXES . 'best_sellers.php');
******}
****}
**} else {
****include(DIR_WS_BOXES . 'best_sellers.php');
**}
Ah ja, in der Tat.
wie muss ich diese ändern damit es funktioniert?
Sollte das in etwa so aussehen?
****include(DIR_WS_BOXES . 'best_sellers.php');
77EDIT
Dann zeigt er mir an:
''>ZITAT</div>Parse error: parse error, unexpected $ in /homepages/41/ /htdocs/shop/templates/wiho-shop-tpl/source/boxes.php on line 52
[/b]
Line 52 ist "?>"
poste mal die komplette datei, du hast wohl eine klammer zu viel oder zu wenig gelöscht...
/shop/templates/<akt.-template>/source/boxes.php
<?php
/ -----------------------------------------------------------------------------------------
** $Id: boxes.php 1262 2005-09-30 10:00:32Z mz $**
** XT-Commerce - community made shopping
** http://www.xt-commerce.com
** Copyright (c) 2003 XT-Commerce
** -----------------------------------------------------------------------------------------
** Released under the GNU General Public License
** --------------------------------------------------------------------------------------- /
**define('DIR_WS_BOXES',DIR_FS_CATALOG .'templates/'.CURRENT_TEMPLATE. '/source/boxes/');
**include(DIR_WS_BOXES . 'categories.php');
**include(DIR_WS_BOXES . 'manufacturers.php');
**if ($_SESSION['customers_status']['customers_status_show_price']!='0') {
**require(DIR_WS_BOXES . 'add_a_quickie.php');
**}
**require(DIR_WS_BOXES . 'last_viewed.php');
** if (substr(basename($PHP_SELF), 0,8) != 'advanced') {require(DIR_WS_BOXES . 'whats_new.php'); }
**require(DIR_WS_BOXES . 'search.php');
**require(DIR_WS_BOXES . 'content.php');
**require(DIR_WS_BOXES . 'information.php');
**include(DIR_WS_BOXES . 'languages.php');
**if ($_SESSION['customers_status']['customers_status_id'] == 0) include(DIR_WS_BOXES . 'admin.php');
**require(DIR_WS_BOXES . 'infobox.php');
**require(DIR_WS_BOXES . 'loginbox.php');
**include(DIR_WS_BOXES . 'newsletter.php');
**if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');
**if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');
**if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');
**if (!$product->isProduct()) {
****if (isset($_SESSION['customer_id'])) {
******$check_query = xtc_db_query("select count( ) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $_SESSION['customer_id'] . "' and global_product_notifications = '1'");
******$check = xtc_db_fetch_array($check_query);
******if ($check['count'] > 0) {
********include(DIR_WS_BOXES . 'best_sellers.php');
******}
****}
**} else {
****include(DIR_WS_BOXES . 'best_sellers.php');
**}
**if (!$product->isProduct()) {
****include(DIR_WS_BOXES . 'specials.php');
**}
**if ($_SESSION['customers_status']['customers_status_read_reviews'] == 1) require(DIR_WS_BOXES . 'reviews.php');
**if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
****include(DIR_WS_BOXES . 'currencies.php');
**}
$smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
?>
<?php
/ -----------------------------------------------------------------------------------------
** $Id: boxes.php 1262 2005-09-30 10:00:32Z mz $**
** XT-Commerce - community made shopping
** http://www.xt-commerce.com
** Copyright (c) 2003 XT-Commerce
** -----------------------------------------------------------------------------------------
** Released under the GNU General Public License
** --------------------------------------------------------------------------------------- /
**define('DIR_WS_BOXES',DIR_FS_CATALOG .'templates/'.CURRENT_TEMPLATE. '/source/boxes/');
**include(DIR_WS_BOXES . 'categories.php');
**include(DIR_WS_BOXES . 'manufacturers.php');
**if ($_SESSION['customers_status']['customers_status_show_price']!='0') {
**require(DIR_WS_BOXES . 'add_a_quickie.php');
**}
**require(DIR_WS_BOXES . 'last_viewed.php');
** if (substr(basename($PHP_SELF), 0,8) != 'advanced') {require(DIR_WS_BOXES . 'whats_new.php'); }
**require(DIR_WS_BOXES . 'search.php');
**require(DIR_WS_BOXES . 'content.php');
**require(DIR_WS_BOXES . 'information.php');
**include(DIR_WS_BOXES . 'languages.php');
**if ($_SESSION['customers_status']['customers_status_id'] == 0) include(DIR_WS_BOXES . 'admin.php');
**require(DIR_WS_BOXES . 'infobox.php');
**require(DIR_WS_BOXES . 'loginbox.php');
**include(DIR_WS_BOXES . 'newsletter.php');
**if ($_SESSION['customers_status']['customers_status_show_price'] == 1) include(DIR_WS_BOXES . 'shopping_cart.php');
**if ($product->isProduct()) include(DIR_WS_BOXES . 'manufacturer_info.php');
**if (isset($_SESSION['customer_id'])) include(DIR_WS_BOXES . 'order_history.php');
/
**if (!$product->isProduct()) {
****if (isset($_SESSION['customer_id'])) {
******$check_query = xtc_db_query("select count( ) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $_SESSION['customer_id'] . "' and global_product_notifications = '1'");
******$check = xtc_db_fetch_array($check_query);
******if ($check['count'] > 0) {
********include(DIR_WS_BOXES . 'best_sellers.php');
******}
****}
**} else { /
****include(DIR_WS_BOXES . 'best_sellers.php');
//**}
**if (!$product->isProduct()) {
****include(DIR_WS_BOXES . 'specials.php');
**}
**if ($_SESSION['customers_status']['customers_status_read_reviews'] == 1) require(DIR_WS_BOXES . 'reviews.php');
**if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
****include(DIR_WS_BOXES . 'currencies.php');
**}
$smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
?>
gehts?
Supi,
es scheint zu funzen. :9
Ich danke dir.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.