betty Posted April 27, 2004 Posted April 27, 2004 Hi Everyone, I've done a contribution which enables me to include unlimited additional images for each of my products. It means that I have a new table in my database called additional_images. But I just don't know how to insert these images where I want them in my featured products page. I'm guessing that I need to write tep_image(DIR_WS_IMAGES . FILENAME_ADDITIONAL_IMAGES) where I want the images to appear, but am stuck as to what I need to include in these lines... $featured_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_info, p.products_tax_class_id, s.status as specstat, s.specials_new_products_price, p.products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id left join " . TABLE_FEATURED . " f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by p.products_date_added desc limit " . 6); } else { $info_box_contents[] = array('align' => '', 'text' => ''); $featured_products_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_info, p.products_tax_class_id, s.status as specstat, s.specials_new_products_price, p.products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c left join " . TABLE_FEATURED . " f on p.products_id = f.products_id where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . $featured_products_category_id . "' and p.products_status = '1' and f.status = '1' p.products_date_added desc limit " . 6); } Am I guessing along the right lines? Does anyone know how I might do this? I'd be very grateful as been completely stuck on this for a while now! Thanks, Betty
Recommended Posts
Archived
This topic is now archived and is closed to further replies.