X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   changing buttons (https://forum.x-cart.com/showthread.php?t=13574)

cotc2001 04-23-2005 06:48 AM

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.

balinor 04-23-2005 04:03 PM

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 :)


All times are GMT -8. The time now is 11:15 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.