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

Selecting A Category For The Home Page To Select & Rotate Items From ~ osCMax v2.0.4

This is a discussion on Selecting A Category For The Home Page To Select & Rotate Items From ~ osCMax v2.0.4 within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; I have been looking everywhere in my osCMAX v2.0.4 administration to find some way that I can select a certain ...

      
  1. #1
    New Member
    Join Date
    Mar 2011
    Posts
    17
    Rep Power
    0


    Default Selecting A Category For The Home Page To Select & Rotate Items From ~ osCMax v2.0.4

    I have been looking everywhere in my osCMAX v2.0.4 administration to find some way that I can select a certain Category from my category list for the Home Page to grab items from for it's rotation display??

    I usually list about 30 new items at the beginning of each month so the Home Page currently selects from the 10 newest items listed to display when a customer first gets to the Home Page. But when a new month starts the Home Page selects items from throughout the website to rotate and display on the Home Page.

    Is there some way I select a certain Category and since I already have a Newly Listed category it would be what I would want to use so that the Home Page will continue to select items from that category only to display even after a new month
    starts??

    Thank You!!


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


    Default Re: Selecting A Category For The Home Page To Select & Rotate Items From ~ osCMax v2.0.4

    So you want a new infobox to display on the homepage containing a specific category's products?

    You could simply copy catalog/includes/modules/new_products.php and rename it to something suitable ... then simply edit the query at the top of the file.

    Something like:

    select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_price as products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c
    where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '{enter your cat_id here}' and p.products_status = '1'
    order by p.products_date_added desc limit ". MAX_DISPLAY_NEW_PRODUCTS
    Regards,
    pgmarshall
    _______________________________

  3. #3
    New Member
    Join Date
    Mar 2011
    Posts
    17
    Rep Power
    0


    Default Re: Selecting A Category For The Home Page To Select & Rotate Items From ~ osCMax v2.0.4

    Thank You again pgmarshall for your quick reply.

    I was wanting to be able to select one of my categories (Newly Listed) to display the items in that category on the Main Center Section of the Home Page, "New Products For April". The box is set up to display 10 items that change every time you go to the Home Page. Have those items from that Newly Listed category continue to display even when a new month starts and the Home Page shows "New Products For May" etc.

    Are you referring to the main center section on the Home Page as the Info Box?? I have a smaller "What's New" box on the right side of site that is fine as it is.
    Last edited by corsican; 04-15-2011 at 02:09 AM.

Similar Threads

  1. Category menu on home page
    By Huski in forum osCommerce 2.2 Discussion
    Replies: 0
    Last Post: 06-23-2009, 04:56 AM
  2. home page; what should it be?
    By nicki-jo in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 05-03-2007, 06:02 PM
  3. Product detail page as the home/main page???
    By sukarya in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-17-2006, 05:21 AM
  4. Catagories on the home page!
    By pthurmond in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 08-01-2005, 09:47 AM
  5. Where do I edit the Home Page
    By emikey24 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-11-2005, 02:38 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
  •