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)
-   -   help adding a back button to detailed product page (https://forum.x-cart.com/showthread.php?t=43721)

JWait 11-30-2008 04:26 AM

Re: help adding a back button to detailed product page
 
I just threw button_title="BACK" in there because it was quick. You can always change it to use a language variable... button_title=$lng.lbl_go_back should work just as well.

cbostard 11-30-2008 06:41 AM

Re: help adding a back button to detailed product page
 
Quote:

Originally Posted by JWait
I'm not sure why... probably yet another of x-cart's nested tables. Try ..
Code:

<tr>
 <td>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td>
<td align="right"
<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt=""/>
{include file="buttons/button.tpl" button_title="BACK" href="javascript: history.go(-1);" style="button" js_to_href="Y"}
</td>





This should now align up correctly as the buttons were offset up and down slightly


All times are GMT -8. The time now is 12:24 AM.

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