I would like to redirect the customer to the checkout page upon creating an account in a shopify site.
Shopify gives this method for re-directing on customer login:
{% form 'customer_login' %}
<input type="hidden" name="checkout_url" value="/checkout"/>
But applying the same method to customer registration, the form redirects to checkout on success, but it ignores error checking:
{% form 'create_customer' %}
<input type="hidden" name="return_to" value="/checkout" />
This method of using an HTML form rather than the liquid form redirects to checkout but the customer isn't logged in, which defeats the purpose of creating the account before checkout:
<form method='post' action='/checkout' id='create_customer' accept-charset='UTF-8'>
<input name='form_type' type='hidden' value='create_customer'/>
<input name="utf8" type="hidden" value="✓">
Any ideas to redirect after error checking? Thanks!