Shop Support News Archive - Shopbetreiber News -> Forum : GPL Software xt eCommerce Templates Module SEO Support: : Wo Steuere Ich, Welche Boxen Wo Erscheinen?
Hi,
es ist so, dass manche Boxen nicht erscheinen, während ich mir einen Artikel ansehe. Die Bestsellerbox erscheint wiederum nicht in einer bestimmten Kategorieansnicht (sagen wir Kat. A), während sie in B wieder da ist.
Wo kann ich einer Box also sagen, dass Sie immer oder nur auf bestimmten Seiten angezeigt werden soll?
Gruß
Mario!
Oliver F.
07.09.2006, 15:22
in der datei templates/dein Template/source/boxes.php
HarryBoo
07.09.2006, 20:24
Schau mal in die "best_sellers.php" ab Zeile 54 findest du folgenden Code:
if (isset ($current_category_id) && ($current_category_id > 0)) {
****$best_sellers_query = "select distinct
********************************************p.prod ucts_id,
********************************************p.prod ucts_price,
********************************************p.prod ucts_tax_class_id,
********************************************p.prod ucts_image,
********************************************pd.pro ducts_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c, ".TABLE_CATEGORIES." c
********************************************where p.products_status = '1'
********************************************and c.categories_status = '1'
********************************************and p.products_ordered > 0
********************************************and p.products_id = pd.products_id
********************************************and pd.language_id = '".(int) $_SESSION['languages_id']."'
********************************************and p.products_id = p2c.products_id
********************************************".$group_check."
********************************************".$fsk_lock."
********************************************and p2c.categories_id = c.categories_id and '".$current_category_id."'
********************************************in (c.categories_id, c.parent_id)
********************************************order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS;
} else {
Diesen nimmst du raus, besser du kommentierst es aus.
Dann erscheint die Bestsellerbox in sämtlichen Kategorien.
''>ZITAT(HarryBoo @ Sep 7 2006, 20:24) 10888
Schau mal in die "best_sellers.php" ab Zeile 54 findest du folgenden Code:
if (isset ($current_category_id) && ($current_category_id > 0)) {
****$best_sellers_query = "select distinct
********************************************p.prod ucts_id,
********************************************p.prod ucts_price,
********************************************p.prod ucts_tax_class_id,
********************************************p.prod ucts_image,
********************************************pd.pro ducts_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c, ".TABLE_CATEGORIES." c
********************************************where p.products_status = '1'
********************************************and c.categories_status = '1'
********************************************and p.products_ordered > 0
********************************************and p.products_id = pd.products_id
********************************************and pd.language_id = '".(int) $_SESSION['languages_id']."'
********************************************and p.products_id = p2c.products_id
********************************************".$group_check."
********************************************".$fsk_lock."
********************************************and p2c.categories_id = c.categories_id and '".$current_category_id."'
********************************************in (c.categories_id, c.parent_id)
********************************************order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS;
} else {
Diesen nimmst du raus, besser du kommentierst es aus.
Dann erscheint die Bestsellerbox in sämtlichen Kategorien.
[/b]
Danke HarryBoo!
Man kommt an PHP nun mal nicht vorbei. Steht ab sofort auf meiner "ToDo" Liste.
Tolles Forum.
Danke nochmal.
Also ich habe das nun so
if (isset ($current_category_id) && ($current_category_id > 0)) / {
****$best_sellers_query = "select distinct
********************************************p.prod ucts_id,
********************************************p.prod ucts_price,
********************************************p.prod ucts_tax_class_id,
********************************************p.prod ucts_image,
********************************************pd.pro ducts_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c, ".TABLE_CATEGORIES." c
********************************************where p.products_status = '1'
********************************************and c.categories_status = '1'
********************************************and p.products_ordered > 0
********************************************and p.products_id = pd.products_id
********************************************and pd.language_id = '".(int) $_SESSION['languages_id']."'
********************************************and p.products_id = p2c.products_id
********************************************".$group_check."
********************************************".$fsk_lock."
********************************************and p2c.categories_id = c.categories_id and '".$current_category_id."'
********************************************in (c.categories_id, c.parent_id)
********************************************order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS;
} else /{
Denn wenn ich das so mache wie oben beschrieben erhalte ich eine fehlermeldung das er nichts mit der letzten } vorm php tag end anfangen kann.
Nur ist es jetzt so dass die box nicht permanent angezeigt wird sondern nur wenn ich direkt in einem beliebigem Artikel bin.
HarryBoo
07.12.2006, 12:03
Hallo Oli,
klar wenn du den Aufruf ''>ZITAT</div>if (isset ($current_category_id) && ($current_category_id > 0))[/b]
drin lässt und die Klammer ''>ZITAT</div> /{[/b] öffnest.
Kommentiere doch mal alles raus.
/ if (isset ($current_category_id) && ($current_category_id > 0)) {
****$best_sellers_query = "select distinct
********************************************p.prod ucts_id,
********************************************p.prod ucts_price,
********************************************p.prod ucts_tax_class_id,
********************************************p.prod ucts_image,
********************************************pd.pro ducts_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c, ".TABLE_CATEGORIES." c
********************************************where p.products_status = '1'
********************************************and c.categories_status = '1'
********************************************and p.products_ordered > 0
********************************************and p.products_id = pd.products_id
********************************************and pd.language_id = '".(int) $_SESSION['languages_id']."'
********************************************and p.products_id = p2c.products_id
********************************************".$group_check."
********************************************".$fsk_lock."
********************************************and p2c.categories_id = c.categories_id and '".$current_category_id."'
********************************************in (c.categories_id, c.parent_id)
********************************************order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS;
} else /{
habe das nun so und auf der startseite issa immer noch nicht ...
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
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.