Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Plugin Contributions
    0

    Default 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?

  2. #2

    Default 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?

  3. #3
    Join Date
    Feb 2006
    Posts
    72
    Plugin Contributions
    0

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

    I have the same problem..

  4. #4
    Join Date
    Feb 2007
    Posts
    107
    Plugin Contributions
    0

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

    Quote Originally Posted by [email protected] View Post
    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.

  5. #5

    Default 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!

  6. #6

    Default 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.)

 

 

Similar Threads

  1. adding shopping cart image to shopping cart sidebox?
    By RobertG in forum Addon Sideboxes
    Replies: 13
    Last Post: 26 Oct 2011, 06:24 AM
  2. Use A LINKED/Clickable Image For the Sidebox Header?
    By ampped80 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2009, 05:28 PM
  3. Adding an icon or image next to shopping cart text in header
    By dpecsok in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Sep 2008, 10:21 PM
  4. Replies: 2
    Last Post: 9 Sep 2008, 11:35 PM
  5. shopping cart image in sidebox when using image for box header
    By JenRed in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jan 2007, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg