We have a membership site on Shopify using Dawn th. Using Appstle. And Oxi Social
When users attempt to purchase and press Buy Now, non-logged-in users are directed to the login page. I want to change this so that non-logged-in users are redirected to the registration page instead.
{% if customer %}
// You default button code
{% else %}
// buttton code with hred
e.g.
{% endif %}
Remember to make a backup of your theme before making any changes and thoroughly test the functionality after making the modifications. Additionally, Shopify themes may vary, so the exact code and location may differ depending on your theme’s structure.