Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

changing buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-23-2005, 06:48 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default changing buttons

Anyone help me out with this little problem? i know it must be something simple but im just missing it, in my checkout (jons ezcheckout) I have the buttons at the bottom , which are taken from text variables, i want to change them to gifs instead to make them look nice and more obvious, problem is if i just change the button.tpl for them i seem to lose functionality.

at the moment the code where the buttons are on the page looks like this

Code:
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> {include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"} {include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"} </TD> <TD>{include file="buttons/continue_shopping.tpl" goto="product"}</TD> <TD align="right"> {include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="cart.php?mode=checkout"} </TD> </TR> </TABLE>

i've got my images ready, so i just need to insert them so that they retain the same functionality but not sure what to do.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #2  
Old 04-23-2005, 04:03 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Couple ways to do it. Just hard code the buttons into each page (more work):

[img]{$ImagesDir/Clearcartbutton.jpg[/img]

Or add new button templates for each button and hard code them in there (less work).

I usually opt for #2
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:47 PM.

   

 
X-Cart forums © 2001-2020