Jump to content

Add logged in customer's email and id in custom HTML dynamically

Recommended Posts

On one of our pages, we have added a custom HTML:

   data-email="{{ customer.email }}"
   data-id="{{ customer.id }}"

We want to replace `{{ customer.email }}` and `{{ customer.id }}` with the actual email and id of logged in customer on the site, dynamically. How can we do it? Does Squarespace have any global customer variables which we can replace here?

Edited by Nabeel
Link to comment
  • Nabeel changed the title to Add logged in customer's email and id in custom HTML dynamically
  • 1 month later...
9 hours ago, AGNAMS said:

HI Nabeel,
Were you able to figure this out?

I dont think it possible

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.