Results 1 to 4 of 4

Product Listing Problem when Logged into Account

This is a discussion on Product Listing Problem when Logged into Account within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I tried to set up customer groups for wholesale and retail pricing tonite. I switched my status in the store ...

      
  1. #1
    Member
    Join Date
    May 2008
    Posts
    84
    Rep Power
    4


    Default Product Listing Problem when Logged into Account

    I tried to set up customer groups for wholesale and retail pricing tonite. I switched my status in the store admin area to whoelsale. When I logged in to my customer account I began to get the following error message on product pages. It only occurs when I am logged into my account. Can anyone give me some idea of what this is referring to and how I can fix it?

    1052 - Column 'products_id' in from clause is ambiguous

    select p.products_id, pd.products_name, IF(pg.customers_group_price IS NOT NULL,pg.customers_group_price, p.products_price) as products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from products p, products_description pd, specials s LEFT JOIN products_groups pg using (products_id, customers_group_id) where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = '1' and s.status = '1' and s.customers_group_id= '1' order by s.specials_date_added desc limit 10

    [TEP STOP]

  2. #2
    Active Member
    Join Date
    Sep 2008
    Location
    holland
    Posts
    145
    Rep Power
    4


    Default Re: Product Listing Problem when Logged into Account

    did you add a customer to the group?
    The seven signs that tell of the coming Armageddon


    1. A decline in the strength of the three major religions. check
    2. Revolutions and internal turmoil in nations around the world. check
    3. War and the rumors of war check
    4. Famine check
    5. Pollution of the earth dubbel check
    6. Earthquakes
    7.The coming of plagues and diseases.

  3. #3
    Member
    Join Date
    May 2008
    Posts
    84
    Rep Power
    4


    Default Re: Product Listing Problem when Logged into Account

    I added myself to the wholesale group. That's when the error started.

  4. #4
    Member
    Join Date
    May 2008
    Posts
    84
    Rep Power
    4


    Default Re: Product Listing Problem when Logged into Account

    If anyone needs it, the fix for this is as follows.

    In catalog/includes/boxes/specials.php replace
    PHP Code:
    using (products_idcustomers_group_id
    with

    PHP Code:
    on (s.products_id pg.products_id and s.customers_group_id pg.customers_group_id
    You'll be good to go with different prices for wholesale and retail customers when they're logged in to accounts.

Similar Threads

  1. Replies: 0
    Last Post: 02-02-2009, 06:50 AM
  2. Product Quantity on Product Listing Page
    By vinces in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-10-2004, 06:32 PM
  3. Modyfying product listing and new products listing
    By pavlo in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-22-2004, 08:27 AM
  4. Uploaded product Images and user.group account problem
    By red_fraggle in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 11-06-2004, 02:02 PM
  5. Product detail in product listing
    By isummitweb in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-05-2004, 07:50 PM

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
  •