|
|||
|
Hallo
habe hier im Forum schon anchgeschaut ob sich meine Problem beheben läßt, doch irgendwie komm ich trotzdem net weiter. Wie schon oben erwähnt, funktioniert meine Bestseler Liste nicht, Bestellungen hatte ich bereits. Bitte nennt mir doch die Datei wo dafür verantwortlich ist und was für ein Code da stehen muß. Danke |
|
|||
|
Ich glaube es funktioniert einwandfrei aber...
es zeigt nur die Bestseller im aktive Kategorie. Geschmacksache. Ich fand das nicht besonders gut und wollt die bestseller vom ganzen Shop darstellen. In der templates/source/boxes/best_sellers.php habe ich der erste "if" Abfrage entfernt. if (isset ($current_category_id) && ($current_category_id > 0)) {... der Abfrage danach entfernen samt Klammern und else. T |
|
|||
|
Zitat:
if (GROUP_CHECK == 'true') { $group_check = " and p.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 "; } if (isset ($current_category_id) && ($current_category_id > 0)) { $best_sellers_query = "select distinct p.products_id, p.products_price, p.products_tax_class_id, p.products_image, pd.products_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 { $best_sellers_query = "select distinct p.products_id, p.products_image, p.products_price, p.products_tax_class_id, pd.products_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd where p.products_status = '1' ".$group_check." and p.products_ordered > 0 and p.products_id = pd.products_id ".$fsk_lock." and pd.language_id = '".(int) $_SESSION['languages_id']."' order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS; } $best_sellers_query = xtDBquery($best_sellers_query); if (xtc_db_num_rows($best_sellers_query, true) >= MIN_DISPLAY_BESTSELLERS) |
|
|||
|
yup. das rot markierte entfernen aber auch die anderen beiden Klammern nach "else" und vor $best_sellers_query
Dann zeigt es alle best seller von allen Kategorien überall. Wenn das nicht funtioniert hast du ein anderes Problem! T |
![]() |
| Lesezeichen |
| Stichworte |
| besteller, funzt, net, obwohl |
| Themen-Optionen | |
| Ansicht | |
|
|