osCmax v2.5 User Manual
Results 1 to 4 of 4

Where is product query located

This is a discussion on Where is product query located within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I had asked before, but I believe i May have been overlooked due to my title of my post before. ...

      
  1. #1
    New Member
    Join Date
    Sep 2005
    Posts
    17
    Rep Power
    0


    Default Where is product query located

    I had asked before, but I believe i May have been overlooked due to my title of my post before.

    So basically WHERE IS THE QUERY for this section/page located????

    BIKE KITS : ChoppersCycle

    I need to add a bike_app to the query, but Do not have ANY Idea where or how to find it, I have looked All over. this is the last part of the site that is not finished

    I was able to find the query for other pages, and the on the Printable catalog page
    Printable Catalog : ChoppersCycle

    where it properly displays the "fitment text" below the "title of the part"

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Where is product query located

    Try includes/modules/product_listing.php
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Sep 2005
    Posts
    17
    Rep Power
    0


    Default Re: Where is product query located

    if looked up and down on that file.

    Im looking for the way this item is listed in the product_listing file, the query for this is the one i need to add to

    its using this to call the model number
    $listing[$x]['products_model']



    the piece i need to add is a call to the cell called bike_app, which is on the same table as the products_model above

    But i cant find anything even remotely similar to a product query on the product_listing


    I easily found the one for catalog_products_with_images, and added the piece easily

    $products_query_raw = "select distinct p.products_id, p.products_image, p.products_model, p.products_quantity, p.products_weight, pd.products_name, p.manufacturers_id, IF(pg.customers_group_price IS NOT NULL, pg.customers_group_price, p.products_price) as products_price, p.products_date_added, IF(s.status = 1, s.specials_new_products_price, NULL) as final_price, m.manufacturers_name, pd.products_description, pd.bike_app, cd.categories_name, p.products_tax_class_id, p2c.categories_id from " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS_GROUPS . " pg on pg.products_id = pd.products_id and pg.customers_group_id = '" . $customers_group_id . "', " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id and s.customers_group_id = '" . $customers_group_id . "', " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on p2c.categories_id = cd.categories_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and cd.language_id = '" . $languages_id . "' order by $order";
    $products_query = tep_db_query($products_query_raw);

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Where is product query located

    index.php has the base queries for products and categories. Then to display the data, you modify includes/modules/product_listing.php
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. SQl Query error
    By dmiles in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 03-05-2007, 10:42 PM
  2. fck editor query
    By Lara Croft in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-25-2007, 03:39 PM
  3. ssl query
    By Lara Croft in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 12-30-2006, 11:22 AM
  4. General Support Query
    By jarb in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 11-24-2006, 04:59 AM
  5. "Top" Link Located top left corner of catalog.
    By bgharder in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-30-2005, 04:35 AM

Bookmarks

Posting Permissions

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