Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    24
    Plugin Contributions
    0

    Default how to define an image for a button

    These forums have been a great help, and i have been able to find pretty much anything i have needed through searching. However i have not been able to find an answer for this question:

    I'm adding some new buttons in, and basically im doing this by copying a button that already exists, and then just changing the code a little at a time to get what i want. (Im just learning how to do this PHP, CSS stuff.)

    So anyway, i have my new button working exactly how i want it, expect it still has the image of the button i copied. It looks like zen-cart knows what image to use by looking up a PHP file for the link.

    Where is this PHP file that contains the names and links for all the images?

    If thats not correct, how can i define a new image for a button?

    -Thanks

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: how to define an image for a button

    Have a look at includes/languages/english/button_names.php - copy it to your custom override directory and add the buttons you need.
    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.

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: how to define an image for a button

    the stock button images are stored in includes/templates/default_template/buttons/english

    you can override them by placing your button images in includes/templates/YOUR_CUSTOM_TEMPLATE/buttons/english

    Just maintain the same names for the image files

    what Kim said helps with this also
    Last edited by barco57; 20 Feb 2007 at 06:22 AM. Reason: late post
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

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

    Default Re: how to define an image for a button

    Thank you both

 

 

Similar Threads

  1. v150 How can I change a default submit button in a sidebox to an image button?
    By JacobBushnell in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Aug 2016, 07:17 PM
  2. v151 How do I add an image to Define Pages?
    By evilsorcerer1 in forum General Questions
    Replies: 1
    Last Post: 12 Jun 2013, 06:40 AM
  3. Where do I save an image for define pages editor?
    By lindsey22 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 14 Mar 2010, 11:51 PM
  4. Replace "Call for price" text links with image button, how?
    By torgil in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Sep 2006, 07:37 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR