If this is your first visit, check our documentation. To post, register or login.

Modifying

Started by deziner76hd on 25 Oct 2011, 3:21 PM · Views: 829

Results 1 to 7 of 7
25 Oct 2011, 3:21 PM
#1
deziner76hd avatar

deziner76hd

New Zenner

Join Date:
Oct 2008
Location:
Lakewood Ny
Posts:
26
Plugin Contributions:
0

Modifying

Hello,
I am using:
Zen Cart 1.3.9h
Patch: 1::
Database Patch Level: 1.3.9h

Is there someone that could help me understand this process a little better? Any help would be greatly appreciated.
I need to put images between categories as an identifying separator.
I need to put images in the sidebox for categories such as

Invitations
Party Gifts
etc

The images need to go between the actual categories.

I found this code in the:

includes/templates/template_default/sideboxes/tpl.categories.php file

// to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
// uncomment the select below and set the cPath=3 to the cPath= your_categories_id
// many variations of this can be done
// case ($box_categories_array[$i]['path'] == 'cPath=3'):
// $new_style = 'category-holiday';
// break;
case ($box_categories_array[$i]['top'] == 'true'):
$new_style = 'category-top';
break;
case ($box_categories_array[$i]['has_sub_cat']):
$new_style = 'category-subs';
break;
default:
$new_style = 'category-products';
}

Thank you for any help

where there's a will there's a way

25 Oct 2011, 3:47 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,747
Plugin Contributions:
0

Re: Modifying

Do you have a mockup of what you want it to look like?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

25 Oct 2011, 4:32 PM
#3
deziner76hd avatar

deziner76hd

New Zenner

Join Date:
Oct 2008
Location:
Lakewood Ny
Posts:
26
Plugin Contributions:
0

Re: Modifying

Thank you for your quick response Kim

Here is a screenshot. Of course the images in the sidebox are not exactly where I want them but it gives you the general idea of what I am trying to do.

The url for sitehttp://allpetscherished.com/my_online_store/

Attachment #9789

Party Favors
Invitations
Gift Items
etc.

Thank you for your help
Gary

where there's a will there's a way

25 Oct 2011, 4:43 PM
#4
deziner76hd avatar

deziner76hd

New Zenner

Join Date:
Oct 2008
Location:
Lakewood Ny
Posts:
26
Plugin Contributions:
0

Re: Modifying

Kim Just so you know...

I am using cherryZen Template

I was able to change the font size and background color of the categories by adding a class in the cherryzen template stylsheet.css file and adding the appropriate code to the
includes/templates/template_default/sideboxes/tpl.categories.php file

BUT.. What I want to do is be able to but these named image files in between the categories

Gary.

where there's a will there's a way

25 Oct 2011, 6:09 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Modifying

Categories Dressing in Free Addons is designed to allow the sidebox modifications you want. You would define headings for certain categories, with image files specified.

25 Oct 2011, 6:21 PM
#6
deziner76hd avatar

deziner76hd

New Zenner

Join Date:
Oct 2008
Location:
Lakewood Ny
Posts:
26
Plugin Contributions:
0

Re: Modifying

Thanks Glenn I'll take a look at this

where there's a will there's a way

26 Oct 2011, 2:30 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Modifying

Also, do NOT save your changes to the template_default or classic folders. If you do they will be lost with the next Zen Cart update/upgrade. Instead, follow the template (override) system. You should save the changes to the folders used by the Cherry Zen template.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey