Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Customizing define ?

    HI there.

    So I have:

    /wamp/www/zencart/includes/languages/english.php

    Line #108 : define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');

    I want to add an image which displays before or after the word shopping cart.

    How would I go about this?
    That wasn't the plan!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

  3. #3
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: Customizing define ?

    Thats good thread but I want to leave the text there and add a little image of shopping trolley beside the text.

    Can I change:

    define('HEADER_TITLE_CATALOG', '<img src="images/your_image.XXX" alt="Your_Alt_Text" />');

    To this:

    define('HEADER_TITLE_CATALOG', '<img src="images/your_image.XXX" alt="Your_Alt_Text" />',Shopping cart');

    ???

    Also is there way to leave the shopping cart button on? ie they don't need anything in the trolley it just stays on?
    That wasn't the plan!

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Customizing define ?

    This is a simple CSS issue:

    Code:
    #shoppingcartHeading {
    
    background-image: url("../images/cart-heading.jpg");
    
    }
    20 years a Zencart User

  5. #5
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: Customizing define ?

    Thanks for the response Schoolboy but I want to add the image to the text in the header area.

    I also want to leave the the shopping cart button on with or without something in the cart.

    Am I better of just some href links? If so how would I do that?
    That wasn't the plan!

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Customizing define ?

    As we can't see your current header (WAMP) it is difficult to offer specific advice, but perhaps the route to go is to code in a dedicated DIV for that element (or DIVS) into which you can insert style ID's or CLASSES. You can then write declarations for those styles and put them into your stylesheet.
    20 years a Zencart User

 

 

Similar Threads

  1. v152 Customizing a define
    By gemadan96 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Apr 2014, 06:08 PM
  2. Define Define Pages / Information pages Manager needed
    By thunderesl in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jun 2010, 02:42 PM
  3. Can't Edit Define Main Page in Define Page Editor
    By robynannw in forum General Questions
    Replies: 2
    Last Post: 8 May 2010, 05:15 PM
  4. Define Pages - How to define brand new page
    By hutch32804 in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Oct 2009, 01:39 PM
  5. duplicated 'define page 2' and define page status not appearing
    By twitchtoo in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 7 May 2007, 06:03 AM

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