Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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.
Hello @Brighter ,
Wrap the buy now button with the condition
{% if customer %}
// You default button code
{% else %}
// buttton code with hred
e.g.
<a href='/account/register'></a>
{% 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.
Thanks