Forums / Templates, Stylesheets, Page Layout / Featured item display on main page

Featured item display on main page

Locked

Started by prs317 on 4 Jul 2008, 5:22 PM · Views: 1,125

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Jul 2008, 5:22 PM
#1
prs317 avatar

prs317

New Zenner

Join Date:
Jun 2008
Posts:
45
Plugin Contributions:
0

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!

4 Jul 2008, 5:34 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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
if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip if this is for the document box (==3)


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

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