Skip to content

Instantly share code, notes, and snippets.

@sparkweb
Created April 2, 2015 19:29
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 sparkweb/92012734196537603390 to your computer and use it in GitHub Desktop.
Save sparkweb/92012734196537603390 to your computer and use it in GitHub Desktop.
FoxyShop Reverse Login - Button Version
{% if is_anonymous == 0 %}
{% set timestamp = checkout_date|date_modify("+5 minutes")|date("U") %}
<script type="text/javascript">
jQuery(".fc-receipt-action--continue a.fc-button").attr("href", "http://YOURSITE.COM/foxycart-checkout-complete/?fc_auth_token={{ generate_sso_token(timestamp) }}&timestamp={{ timestamp }}&foxycart_customer_id={{ customer_id }}");
</script>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment