wgb0920 Posted January 14, 2009 Share Posted January 14, 2009 I have installed Froogle/Google Base, Yahoo, and Bizrate Feeds 1.12 and it works fine for Bizrate, but the Froogle feed does not pick up my specials. The only change to the file in the download is to add parentheses around the table names in the FROM part of the sql statement. $sql = " SELECT concat( '" . $productURL . "' ,products.products_id) AS product_url, products_model AS prodModel, products_weight, manufacturers.manufacturers_name AS mfgName, manufacturers.manufacturers_id, products.products_id AS id, products_description.products_name AS name, products_description.products_description AS description, products.products_quantity AS quantity, products.products_status AS prodStatus, FORMAT( IFNULL(specials.specials_new_products_price, products.products_price) * " . $taxCalc . ",2) AS price, CONCAT( '" . $imageURL . "' ,products.products_image) AS image_url, products_to_categories.categories_id AS prodCatID, categories.parent_id AS catParentID, categories_description.categories_name AS catName FROM (categories, categories_description, products, products_description, products_to_categories) left join manufacturers on ( manufacturers.manufacturers_id = products.manufacturers_id ) left join specials on ( specials.products_id = products.products_id AND ( ( (specials.expires_date > CURRENT_DATE) OR (specials.expires_date = 0) ) AND ( specials.status = 1 ) ) ) WHERE products.products_id=products_description.products_id AND products.products_id=products_to_categories.products_id AND products_to_categories.categories_id=categories.categories_id AND categories.categories_id=categories_description.categories_id ORDER BY products.products_id ASC "; Link to comment Share on other sites More sharing options...
wgb0920 Posted January 14, 2009 Author Share Posted January 14, 2009 I was able to resolve this issue myself. I had NULL values for the specials.expires_date field rather than zeros. Here is my new left join statement that enabled the specials. left join specials on ( specials.products_id = products.products_id AND ( ( (specials.expires_date > CURRENT_DATE) OR (specials.expires_date = 0) OR (specials.expires_date is NULL) ) AND ( specials.status = 1 ) ) ) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.