Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default How to add a button for a mod?

    Ok, I have decided to turn a bit of code i use on all sites i make into a mod.

    The only problem I am having is, how do i add the additional button to zencart.

    is there a way to add the button definitions, as i don't see an obvious override

    Normally i just use a simple image link as all the stores i have developed for are english only

    basically like
    <img src= "blablabl/buttons/mybutton" />

    whereas if i want to be incluseive of all languages I should use something like this

    zen_image_button(BUTTON_IMAGE_BLABLA, BUTTON_BLABLA_ALT)

    I know it is probably patently obvious to others, but i can't figure where to define the bits, i don't want to override core files if possible

    Note the mod is a catalog side mod, not admin.
    Webzings Design
    Semi retired from Web Design

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How to add a button for a mod?

    If it's language-specific, as buttons usually are, then adding a custom file to the extra_definitions folder is the simplest way to do it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: How to add a button for a mod?

    Thanks for that Dr
    Webzings Design
    Semi retired from Web Design

 

 

Similar Threads

  1. add customer as admin mod -- how to extend it for master slave drop box?
    By grossd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Nov 2011, 11:58 AM
  2. How to add code for LIVE HELP BUTTON?
    By cebu4u in forum Basic Configuration
    Replies: 3
    Last Post: 1 Dec 2008, 08:06 AM
  3. How do I add a button for product sizes?
    By yoda321 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Nov 2007, 07:08 AM

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