Zen Cart Logo
Forums / Basic Configuration / Modify features and specials on main page

Modify features and specials on main page

Locked

Views: 1,302

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 May 2007, 1:31 AM
#1
tdman avatar

tdman

New Zenner

Join Date:
Aug 2006
Location:
The Foothills of The Great Smokey Mountains.
Posts:
48
Plugin Contributions:
0

Modify features and specials on main page

I want to rearrange the layout of the features and specials sections displayed on the main page. Specifically I want to move the image from above the titile to below the price. There are other changes but that is the main one. :frusty:

Where are the files located that I need to edit to make the changes?

Thanks

3 May 2007, 1:34 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Modify features and specials on main page

Example for Featured Centerbox ...

Copy the file:
/includes/modules/featured.php

to your templates and overrides directory:
/includes/modules/your_templates_dir/featured.php

And rearrange how this is built:

    $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);
3 May 2007, 1:38 AM
#3
tdman avatar

tdman

New Zenner

Join Date:
Aug 2006
Location:
The Foothills of The Great Smokey Mountains.
Posts:
48
Plugin Contributions:
0

Re: Modify features and specials on main page

Ajeh:

Example for Featured Centerbox ...

Copy the file:
/includes/modules/featured.php

to your templates and overrides directory:
/includes/modules/your_templates_dir/featured.php

And rearrange how this is built:

$list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);


Thanks Linda. Just what I was looking for. I assume the specials section is the same. I appreciate your help!
3 May 2007, 1:38 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Modify features and specials on main page

More or less they work the same way ...