osCmax v2.5 User Manual
Results 1 to 3 of 3

Replace Button Images with HTML standard buttons ?

This is a discussion on Replace Button Images with HTML standard buttons ? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hello, I'd like to change several default buttons, images, with standard HTML buttons. How do I get to do that ...

      
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    53
    Rep Power
    3


    Default Replace Button Images with HTML standard buttons ?

    Hello,

    I'd like to change several default buttons, images, with standard HTML buttons.

    How do I get to do that ?

    For example, how to I replace this code:
    <?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?>

    With something like this:
    <INPUT type='submit' class='nlbutton' style='' value='Update Total' id='recalc' name='recalc' onkeypress="event.cancelBubble=true;">

    Thanks,
    Shutiri

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Replace Button Images with HTML standard buttons ?

    I would look at the function that builds the buttons - look in catalog/includes/functions/html_output for tep_image_submit and change the source code to build a button rather than an image submit.

    Regards
    pgmarshall
    _______________________________

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Exclamation Re: Replace Button Images with HTML standard buttons ?

    Quote Originally Posted by pgmarshall View Post
    I would look at the function that builds the buttons - look in catalog/includes/functions/html_output for tep_image_submit and change the source code to build a button rather than an image submit.
    You will have to note that subsequent upgrades will break the changed functionality. The alternative is to not call the tep function and to include your required function within your template structure. This would keep it independent of upgrades.
    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. replace buttons with text links
    By Tania in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 07-01-2010, 03:02 PM
  2. Standard Buttons
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-15-2008, 07:00 PM
  3. Standard Buttons
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-03-2008, 02:00 PM
  4. Click to enlarge-replace text with button.
    By sparks730 in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 06-22-2006, 05:50 AM
  5. How do you retain Session/Product ID in Standard HTML site
    By Ttownsend in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 07-19-2005, 01:48 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
  •