Skip to content

Instantly share code, notes, and snippets.

@raihan004
Created September 22, 2018 11:23
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 raihan004/3b2de76b0330f068e2dd7d447d194656 to your computer and use it in GitHub Desktop.
Save raihan004/3b2de76b0330f068e2dd7d447d194656 to your computer and use it in GitHub Desktop.
how-to-skip-the-cart-page-with-the-carthook-checkout
{% comment %}
-- documentation
-- https://developers.carthook.com/docs/how-to-skip-the-cart-page-with-the-carthook-checkout
{% endcomment %}
<form action="/checkout" style="display: none;">
<a href="/checkout" name="checkout" style="display: none;"></a>
</form>
// this code need to place at ajax success method
window.testGlobalBeforeReact(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment