Jump to content

Archived

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

Nico01

MANUFACTURER NAME IN NEW_PRODUCTS.PHP

Recommended Posts

Hallo Community,

 

my goal is to show the manufacturers name in the new_products.php.

 

I have the problem to get the code :

 

left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id

 

in

 

 

if ((!isset ($new_products_category_id)) || ($new_products_category_id == '0')) {

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.image_folder, p.image_display, p.products_tax_class_id, pd.short_desc, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

} else {

 

 

without an error message.

 

Could somebody let me know, please, what is wrong with that:

 

 

if ((!isset ($new_products_category_id)) || ($new_products_category_id == '0')) {

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.image_folder, p.image_display, p.products_tax_class_id, pd.short_desc, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . "left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

} else {

 

Thanks in advance

Nico

Share this post


Link to post
Share on other sites

×