Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


Nabeel

Question

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

<div
   id="customer-identification"
   data-email="{{ customer.email }}"
   data-id="{{ customer.id }}"
   style="display:none;"
></div>

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

2 answers to this question

Recommended Posts

  • 0
9 hours ago, AGNAMS said:

HI Nabeel,
Were you able to figure this out?

I dont think it possible

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Portfolio hover Replace Link Style
If you find my answer fit your need, 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...