This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/checkout_plugin/third_party.tpl

35 lines
1.5 KiB
Smarty
Raw Normal View History

2009-08-03 04:10:16 +00:00
<form id="checkout_form" name="checkout_form" method="post" action="">
<input type="hidden" name="option" value="{$VAR.option}"/>
{if $VAR.invoice_id == ''}
{if $VAR.admin != '' && $VAR.account_id != ''}
<input type="hidden" name="admin" value="1"/>
<input type="hidden" name="do[]" value="checkout:admin_checkoutnow"/>
<input type="hidden" name="_page" value="checkout:admin_checkout"/>
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
{else}
<input type="hidden" name="do[]" value="checkout:checkoutnow"/>
<input type="hidden" name="_page" value="checkout:checkout"/>
{/if}
{else}
{if $VAR.admin != '' && $VAR.account_id != ''}
<input type="hidden" name="admin" value="1"/>
<input type="hidden" name="do[]" value="checkout:admin_checkoutnow"/>
<input type="hidden" name="_page" value="checkout:admin_checkout"/>
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
{else}
<input type="hidden" name="do[]" value="invoice:checkoutnow"/>
{if $VAR.invoice_id > 0}
<input type="hidden" name="_page" value="invoice:user_view"/>
{else}
<input type="hidden" name="_page" value="invoice:checkout_multiple"/>
{/if}
{/if}
<input type="hidden" name="invoice_id" value="{$VAR.invoice_id}"/>
{/if}
2009-08-03 04:10:16 +00:00
<div>
<p style="text-align: center;">If you are not redirected shortly, please <a href="#" onClick="checkoutNow();">click here to redirect</a>.</p>
<input type="hidden" id="doredirect" value="true"/>
</div>
</form>