Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    31
    Plugin Contributions
    0

    Default please help me about Froogle.php

    I have installed the Froogle Feed Generator (http://breakmyzencart.com), when I run the script, the system return SQL error message:

    : SQL error Unknown column 'p.manufacturers_id' in 'on clause'| sql = SELECT concat( 'http://www.brandbags.biz/index.php?main_page=',pt.type_handler,'_info&currency=USD&products_id=' ,p.products_id) AS link, p.products_model AS prodModel, p.products_weight, p.products_type, m.manufacturers_name AS mfgName, m.manufacturers_id, p.products_id AS id, pd.products_name AS title, pd.products_description AS description, p.products_status AS prodStatus, FORMAT( IFNULL(s.specials_new_products_price, p.products_price),2) AS price, p.products_image AS image_link, pc.categories_id AS prodCatID, c.parent_id AS catParentID, cd.categories_name AS catName FROM categories c, categories_description cd, products p, products_description pd, products_to_categories pc left join manufacturers m on ( m.manufacturers_id = p.manufacturers_id ) left join specials s on ( s.products_id = p.products_id AND ( (s.expires_date > CURRENT_DATE) OR (s.expires_date = 0) ) ) left join product_types pt on p.products_type = pt.type_id WHERE p.products_price > 0 AND p.products_id=pd.products_id AND p.products_id=pc.products_id AND pc.categories_id=c.categories_id AND c.categories_id=cd.categories_id ORDER BY p.products_id ASC

    Information:
    • Zen Cart 1.3.0.2
    • MySQL 5.0.24
    • PHP Version: 4.4.1 (Zend: 1.3.0)


    Please help me how to resolve the problem. Thanks!

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: please help me about Froogle.php

    p.manufacturers_id'?
    It should be m.manufactureres_id I think
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  3. #3
    Join Date
    Aug 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: please help me about Froogle.php

    What's your meaning? I think this is MYSQL version problem. How to change the SQL code?

  4. #4

    Default Re: please help me about Froogle.php

    The error is due to running SQL 5. The From statement now needs to inclose the tables.

    Code:
      FROM 
    categories c, 
    categories_description cd, 
    products p, 
    products_description pd, 
    products_to_categories pc
    needs to be:

    Code:
     FROM 
    (categories c, 
    categories_description cd, 
    products p, 
    products_description pd, 
    products_to_categories pc)
    corrected sql statement in froogle.php ->
    Code:
    $sql = "
            SELECT concat( '" . $productURLstart . $productURLend . "' ,p.products_id) AS product_url,
            p.products_model AS prodModel,
            p.manufacturers_id,
            p.products_weight,
            p.products_type, 
            m.manufacturers_name AS mfgName,
            m.manufacturers_id,
            p.products_id AS id,
            pd.products_name AS name,   
            pd.products_description AS description,
            p.products_status AS prodStatus,
            FORMAT( IFNULL(s.specials_new_products_price, p.products_price),2) AS price,
            p.products_image AS image_url,
            pc.categories_id AS prodCatID,
            c.parent_id AS catParentID,
            cd.categories_name AS catName
            FROM (" . TABLE_CATEGORIES . " c,
            " . TABLE_CATEGORIES_DESCRIPTION . " cd,
            " . TABLE_PRODUCTS . " p,
            " . TABLE_PRODUCTS_DESCRIPTION . " pd,
            " . TABLE_PRODUCTS_TO_CATEGORIES . " pc)
            left join " . TABLE_MANUFACTURERS . " m on ( m.manufacturers_id = p.manufacturers_id )
            left join " . TABLE_SPECIALS . " s on ( s.products_id = pc.products_id AND ( (s.expires_date > CURRENT_DATE) OR ($
            left join " . TABLE_PRODUCT_TYPES . " pt on ( p.products_type = pt.type_id )
            WHERE p.products_price > 0
            AND p.products_id=pd.products_id
            AND p.products_id=pc.products_id
            AND pc.categories_id=c.categories_id
            AND c.categories_id=cd.categories_id
            ORDER BY 
            p.products_id ASC
            ";

 

 

Similar Threads

  1. Help About New Template Install Please Help
    By mboley370 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jun 2007, 06:52 PM
  2. Froogle Disaster PLEASE HELP!!!!
    By mobilecustomsusa in forum General Questions
    Replies: 0
    Last Post: 7 Jun 2007, 02:22 AM
  3. Froogle Feed Error...Help Please!
    By HandcraftedUK in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2007, 02:16 PM
  4. Froogle contibution Help Please
    By loz in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Jun 2006, 01:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg