Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,494
    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
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

  2. #2
    Join Date
    Jan 2004
    Posts
    60,233
    Blog Entries
    4
    Plugin Contributions
    139

    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!
    Donations always welcome: www.zen-cart.com/donate

    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,494
    Plugin Contributions
    3

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

    Thanks for that Dr
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

 

 

Similar Threads

  1. Replies: 12
    Last Post: 25 Jun 2010, 06:02 PM
  2. adding a class to button element - CSS button addon
    By australican in forum Addon Templates
    Replies: 3
    Last Post: 26 May 2010, 08:53 AM
  3. Remove button on button Shopping Cart. helo
    By Jorge05r in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 May 2008, 07:25 AM
  4. Changed button images - problem with search button
    By DVDTitan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 May 2007, 04:58 PM
  5. Button Update Cart.gif & Small Delete.gif button
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Oct 2006, 09:58 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
  •