Account Registration on Checkout

My Shopify website setting is set that only logged in users are allowed to purchase products.

By default, once non-logged in users are trying to checkout, they are redirected into a login page. However, I want them to be redirected in the account registration page. How can I modify this? I am using Dawn Theme.

Also, after successfully creating an account, they should be redirected into the checkout page again

Hey @gsantoz

Please try this script

{% unless customer %}
  
{% endunless %}

Thanks

HI @azamgill !

Where should I insert this code? Thank you very much!!

Hi,

You can use script to redirect user after registration to cart.

Please refer the below URL

https://heliumdev.com/blog/shopify-redirect-after-registration