Results 1 to 2 of 2

Hybrid View

  1. #1

    Default Featured item display on main page

    Is there a way to have a featured item display on the main page in the same manner as a category with only one product?

    When I have one item in a category and set the main page to open with that category, the main page displays the same as if you had clicked on the product information page for that item.

    When I enable show favorites on the main page, it just appears (for lack of better words) as sort of an extra on the page, and the main page still exists.


    * As a side question, how do I disable the breadcrumb above the item picture on a product page?


    Thanks!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Featured item display on main page

    If you want to have a featured product open to its info page on the home page, your best bet may be to make a Featured category, link the product into it, and select that to be the category the home page opens to.

    If you don't want the Featured category to show in the categories sidebox, you can make a simple addition to /includes/templates/your_template/sideboxes/tpl_categories.php to hide it.
    Find
    PHP Code:
    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
          
    // skip if this is for the document box (==3) 
    near the top of the file, and add

    $box_categories_array[$i]['path'] == 'cPath=xx' or

    where xx is the cPath of the Featured category
    to get
    PHP Code:
    if ($box_categories_array[$i]['path'] == 'cPath=xx' or zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
          
    // skip if this is for the document box (==3) 

 

 

Similar Threads

  1. Display description of featured products on main page
    By Yiannis in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Aug 2011, 09:19 PM
  2. Featured items or Special Items REFUSE to display on main / home page
    By masmat in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 13 Aug 2010, 06:29 PM
  3. How to customize product display on main page? (ie New Products, Featured...)
    By UnrealPHD.com in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jun 2010, 10:52 AM
  4. display featured PRODUCT on main page
    By mimran in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 1 Apr 2008, 07:04 PM
  5. Adding text to Featured Item on Main Page
    By johnnyg in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jul 2007, 08:05 AM

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