Jump to content
xt:Commerce Community Forum

Mal Wieder Was Specielles


forest

Recommended Posts

Hallo,

ich m?chte 2 Seiten Angebote f?r diese und f?r jene Warengruppen haben,

das gleiche habe ich schon mit den News gemacht, das funzt auch,

in der specials. php habe ich nun versucht das gleiche einzubauen aber ich krieg's nicht hin,

in welche Zeile m?sste es kommen, oder wie mu? die Zeile aussehen ? :grml:

Link to comment
Share on other sites

dazu noch was konkretes:

der betreffende Abschnitt in der specials.php sieht bei mir jetzt so aus:

$specials_query_raw = " select

p.products_id,

p.products_model,

pd.products_name,

p.products_price,

p.products_tax_class_id,

p.products_image,

s.specials_new_products_price from " . TABLE_PRODUCTS . " p,

" . TABLE_PRODUCTS_DESCRIPTION . " pd,

" . TABLE_SPECIALS . " s where

p.products_status = '1' and

s.products_id = p.products_id and

p.products_id = pd.products_id and

pd.language_id = '" . $_SESSION['languages_id'] . "' and

c.categories_id != 17 and

c.categories_id != 18 and

c.categories_id != 19 and

c.categories_id != 159 and

c.categories_id != 161 and

s.status = '1'order by s.specials_date_added DESC";

was die Fehlermeldung:

"Unknown table 'c' in where clause"

produziert (leider) :fear:

Link to comment
Share on other sites

oh danke, danke, nicht alle auf einmal ;)

drei Tage gr?beln, experimentieren und etwas Gl?ck

und der php-Newbie hats geschafft :D

hier das Ergebnis, falls es noch wer braucht:

$specials_query_raw = " select

p.products_id,

p.products_model,

pd.products_name,

p.products_price,

p.products_tax_class_id,

p.products_image,

s.specials_new_products_price from " . TABLE_PRODUCTS . " p,

" . TABLE_PRODUCTS_DESCRIPTION . " pd,

" . TABLE_SPECIALS . " s,

" . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where

p.products_status = '1' and

s.products_id = p.products_id and

p.products_id = p2c.products_id and

p.products_id = pd.products_id and

pd.language_id = '" . $_SESSION['languages_id'] . "' and

p2c.categories_id != 17 and

p2c.categories_id != 18 and

p2c.categories_id != 19 and

p2c.categories_id != 159 and

p2c.categories_id != 161 and

s.status = '1'order by s.specials_date_added DESC";

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...