Skip to content

Instantly share code, notes, and snippets.

@dalizard
Created January 12, 2011 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalizard/776130 to your computer and use it in GitHub Desktop.
Save dalizard/776130 to your computer and use it in GitHub Desktop.
<section>
{if $can_start_checkout}
<a class="submit" href="{$html_url}">Continue Shopping</a>
<a class="submit" href="{$secure_html_url}index.php?page=checkout">Proceed To Checkout</a>
{$placeholder_after_proceed_to_checkout|smarty:nodefaults}
{* Note: You can start checkout using Google Checkout *}
{if $google_checkout}
<a href="{$secure_html_url}index.php?type=bare&page=google_checkout"><img src="https://checkout.google.com/buttons/checkout.gif?merchant_id={$google_checkout_username}&w=160&h=43&style=trans&variant=text&loc=en_US" height="43" width="160"></a>
{/if}
{* Note: Checkout using PayPal *}
{if $paypal_express_checkout}
<a href="{$secure_html_url}index.php?page=paypal_express_checkout"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckoutsm.gif"></a>
{/if}
{if $checkout_by_amazon_apm && $can_start_amazon_checkout}
<a href="{$secure_html_url}index.php?page=checkout&cba_apm=1"><img alt="Checkout with Amazon Payments" src="https://payments.amazon.com/gp/cba/button?ie=UTF8&color=orange&background=white&cartOwnerId={$checkout_by_amazon_merchant_id}&size=large"/></a>
{/if}
{else}
<p>Your cart is not configured for starting checkout.</p>
{/if}
{if $checkout_by_amazon && $can_start_amazon_checkout && !$checkout_by_amazon_apm}
<input onclick="jQuery('#cba_form').submit();return false;" alt="Checkout with Amazon Payments" type="image" src="https://payments.amazon.com/gp/cba/button?ie=UTF8&color=orange&background=white&cartOwnerId={$checkout_by_amazon_merchant_id}&size=large" />
{/if}
{$placeholder_after_cart|smarty:nodefaults}
</section>
{* Checkout by Amazon Form. Should be another form after all other content *}
{if $checkout_by_amazon && $can_start_amazon_checkout && !$checkout_by_amazon_apm}
<form id="cba_form" action="{$checkout_by_amazon_url}" method="post">
<input type="hidden" name="order-input" value="{$checkout_by_amazon_cart}"/>
</form>
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment