View Single Post
  #4  
Old 07-15-2005, 04:41 AM
 
TP TP is offline
 

Member
  
Join Date: Mar 2005
Posts: 13
 

Default

Superb idea TelaFirma. Thanks for taking the time to compile the solution, I'm sure this will be useful to others too.

Only 1 little problem with the final piece of code:
Code:
<div align="center"> <table border=0 cellpadding="0" cellspacing="0" id="checkoutbutton" style="display: none;"> <tr><td> {include file="buttons/button2.tpl" button_title=$lng.lbl_submit_order style="button" href=$button_href} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit_order} {/if} </td></tr> </table> </div>

It should read:
Code:
<div align="center"> <table border=0 cellpadding="0" cellspacing="0" id="checkoutbutton" style="display: none;"> <tr><td> {include file="buttons/button.tpl" button_title=$lng.lbl_submit_order style="button" href=$button_href} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit_order} {/if} </td></tr> </table> </div>

The only difference is the button template called by the include code, it should be "button.tpl" and not "button2.tpl". Once I changed that your code work perfectly.

Thank you!
__________________
:: WinXP : IIS5.0
:: X-Cart v4.0.13 Gold
:: MySQL 4.1.9-nt
:: Apache 2.0.53
:: PHP 4.3.10
:: ActivePerl 5.6
Reply With Quote