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

Retail AND wholesale display on the product listing page

This is a discussion on Retail AND wholesale display on the product listing page within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hello, I'm trying to accomplish the result I'm attaching as an image. I already managed to add this in my ...

      
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    53
    Rep Power
    3


    Question Retail AND wholesale display on the product listing page

    Hello,

    I'm trying to accomplish the result I'm attaching as an image. I already managed to add this in my product info page with this code and then adding it to the template (on the same product info page):

    $product_wholesale_query = tep_db_query("select customers_group_price from products_groups where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = 2");

    I just simply can't find where to do this kind of thing in the product_listing.php file.






    Thank you,
    Shutiri

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Retail AND wholesale display on the product listing page

    The queries that build the pages above product_info are all in catalog/index.php but be warned that this will affect quite a lot of the functionality (but then again this is what I expect you want to do)

    Regards,
    pgmarshall
    _______________________________

  3. #3
    Member
    Join Date
    Mar 2010
    Posts
    53
    Rep Power
    3


    Default Re: Retail AND wholesale display on the product listing page

    Hello pgmarshall,

    Thank you. Yes, I can see the queries; but where is the html part of the product listing ? where's the table for that page (content) ?

    index.php calls CONTENT_INDEX_PRODUCTS and that one calls FILENAME_PRODUCT_LISTING (in my case, I'm not using the _COL version).

    I can't find the html table for the content of that page, the manufacturer, image, price and buy button. Where is it ?

    Thank you again,
    Mythos

  4. #4
    Member
    Join Date
    Mar 2010
    Posts
    53
    Rep Power
    3


    Default Re: Retail AND wholesale display on the product listing page

    Ok, I found it, in product_listing.php, quite obvious.

    I'll try to manage the query to call the wholesale price; any tip will (or code ), will be highly appreciated !

    Cheers,
    Mytho

  5. #5
    Member
    Join Date
    Mar 2010
    Posts
    53
    Rep Power
    3


    Default Re: Retail AND wholesale display on the product listing page

    Hello again,

    I've been trying all day to get the same result I managed for the product_info.tpl.php, with the code I mentioned earlier.

    What I know (presume) so far, is that I need to get the different prices (retail and wholesale) into the $listing array, in product_listing.php. There's actually a commented print_r in the file, to see the content of $listing, very useful...

    To get those prices into $listing, I have to modify the query $listing_sql in index.php, but I unfortunately can't do that; my php/mysql knowledge won't go that far.

    Can you please tell me how to make the display on my image happen ?

    Thank you,
    Mythos
    Last edited by Mythos; 06-29-2010 at 03:18 PM.

Similar Threads

  1. Can you show Retail + SPPC price in product listing?
    By ptt81 in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 05-20-2009, 02:57 PM
  2. Show both Full Retail AND wholesale pricing to whole sale customers?
    By Wretched 6.0 in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 04-19-2007, 07:13 PM
  3. Retail, Wholesale prices
    By dgrif in forum osCmax v1.7 Discussion
    Replies: 11
    Last Post: 04-10-2006, 05:05 PM
  4. Someone Must Know- Retail & Wholesale login?????
    By anntaj in forum osCmax v1.7 Discussion
    Replies: 6
    Last Post: 11-10-2004, 06:22 PM
  5. 1 shop and 2 sets of prices - wholesale + retail ?
    By ozstar in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-23-2002, 06:31 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
  •