How do I bypass the Advocate Signup screen if my customer is already logged in?

Modified on Wed, 28 Jun 2023 at 05:44 AM

The instructions provided below are intended for use only if you feel comfortable with HTML and javascript. If you don't feel comfortable making these types of changes, email us at help@shopcircle.co and we can make the changes for you.

If your customer is already logged in, you may want to completely bypass the initial "Advocate Signup" screen, which typically looks something like this:

In order to "auto-submit" this form using the logged-in customer's name and email address, you'll need to edit your theme's code. 

Where you add the following code depends on where you have your referral program displayed. If you have your program displayed on a Shopify Page, you'll want to edit templates/page.liquid. Add the following code to the top of that file:

<script type="text/javascript">// <![CDATA[

  function conjuredReferralExternal(conjuredReferral) {

    jQuery('#conjured_referral_name').val('{{ customer.name }}');

    jQuery('#conjured_referral_email').val('{{ customer.email }}');

  }

// ]]></script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article