Forums / Templates, Stylesheets, Page Layout / Adding a linked image in the Shopping Cart sidebox header

Adding a linked image in the Shopping Cart sidebox header

Locked

Views: 2,854

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Feb 2007, 7:47 PM
#1
froyse avatar

froyse

New Zenner

Join Date:
Jul 2006
Posts:
2
Plugin Contributions:
0

Adding a linked image in the Shopping Cart sidebox header

Hi,

I need to add a shopping cart icon that links to the shopping cart page. It would be preferable to place this button in the sidebox header, but it may also work in the sidebox body if the header option isn't possible. I've been pouring over the files including

includes/templates/template_default/common/tpl_box_default_right.php

and

includes/modules/sideboxes/shopping_cart.php

and I can't find a place to insert such a linked button image that would only appear on the shopping cart sidebox.

Can anyone point me in the right direction?

27 Mar 2007, 9:26 AM
#2
Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Adding a linked image in the Shopping Cart sidebox header

This may be the same question that would resolve my issue. I want to use images instead of text for my main sidebox categories. Has anyone got a clue where I can edit the text of these items to replace them with hrefs? Or some other method?

27 Mar 2007, 6:29 PM
#3
trudesign avatar

trudesign

New Zenner

Join Date:
Feb 2006
Posts:
72
Plugin Contributions:
0

Re: Adding a linked image in the Shopping Cart sidebox header

I have the same problem..

27 Mar 2007, 7:35 PM
#4
grandmaj avatar

grandmaj

Zen Follower

Join Date:
Feb 2007
Posts:
104
Plugin Contributions:
0

Re: Adding a linked image in the Shopping Cart sidebox header

[email protected]:

I want to use images instead of text for my main sidebox categories. Has anyone got a clue where I can edit the text of these items to replace them with hrefs? Or some other method?

For the main categories box (which doesn't have a clickable header text). This is the method I used.
Keep in mind that I'm using the override system, so everywhere you see the word "CUSTOM", you'll have to insert your own folder's name, and you will of course have to use your own image's name:

Went to /catalog/includes/languages/CUSTOM/english.php
and found the following section:

// categories box text in sideboxes/categories.php
define('BOX_HEADING_CATEGORIES', 'Categories');

Changed to:

// categories box text in sideboxes/categories.php
define('BOX_HEADING_CATEGORIES', '<img src="/catalog/includes/templates/CUSTOM/images/IMAGE.jpg">');

(The image needed had been uploaded to /catalog/includes/templates/CUSTOM/images)

Not sure if this would work for the ones that have clickable headers though.

29 Mar 2007, 2:31 AM
#5
Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Adding a linked image in the Shopping Cart sidebox header

Thanks for the info, but that's not quite what I'm looking for. It isn't the header I want to put an image in for, it's images to replace the category names. I'm trying to work with some setup information I found on the download section, but no luck yet. I'm hoping I'll find the "magic" that makes it all click tonight!

29 Mar 2007, 9:04 AM
#6
Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Adding a linked image in the Shopping Cart sidebox header

In case anyone was following this thread and wanted to know how it turned out, I got the roll-over sidemenu to work with images and links to categories by using the Blank Sidebox from the Sideboxes section of the Downloads page.

Granted, I am a beginner at coding, but for me it was very difficult to follow the directions in the readme -- I think some of it wasn't just me, it's a little mixed up. The main issue I noticed was that there was no mention of how to add links for the category pages in tpl_categories_sidebox.php. I found that info on the help page "How do EZ-Pages work?" under the heading "Internal Link URL".
But it does work!

(Note: I did already have some jscript in place for the mouseover stuff to swap images.)