If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Help needed with layout

Help needed with layout

Locked

Started by mike1234 on 2 Feb 2009, 7:19 PM · Views: 1,609

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Feb 2009, 7:19 PM
#1
mike1234 avatar

mike1234

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Help needed with layout

**First question how can I use multiple images for each product ?

Next- In the main page in the center (not the sideboxes) I want to use images for each category that can allow the customer to go to the category just like on the side ------
?
thanks))))**

2 Feb 2009, 9:13 PM
#3
mike1234 avatar

mike1234

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Help needed with layout

thanks for the info
but the second part of post refers to adding an image in place of a category text) I did as you suggested and the image appears in the category after it is selectedin the main page

I guess my question is first how to replace the category text name with an image like a button (something more graphical than text ) but most important , how can i put the categores in the middle pf the main page not just the side and use an image the customer can click on to get to that category thanks

7 Feb 2009, 6:23 PM
#4
svampola avatar

svampola

New Zenner

Join Date:
Mar 2007
Location:
Serbia, Niš
Posts:
69
Plugin Contributions:
0

Re: Help needed with layout

Fist problem: To get category images on your main page:

In admin page, under Configuration / Layout Settings
find
Categories - Always Show on Main Page
and change value 0 into 1.

Second problem: To get category images without text name:

In:

  • public_html / includes / modules/ ... find category_row.php
  • download to your computer via FTP
  • Open it with some text editor, find next lines:

// $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />'. $categories->fields['categories_name'] . '</a>');

and delete next text:
'<br />'. $categories->fields['categories_name'] .
which I marked in red color in upper text.

  • Don't forget to save it with php extention and then upload it to:

  • public_html / includes / modules/YOUR_TEMPLATE/ as category_row.php