Jump to content

KarenKT

Member
  • Posts

    1
  • Joined

  • Last visited

KarenKT's Achievements

  1. Site URL: https://www.mandarintree.nl/store-1 Hi, I'm selling online lessons to customers around the world. I'm currently listing variants in UTC time, but this has caused confusion with some customers. I would like the time slot (the variant category) to display the client side timezone (see https://www.mandarintree.nl/store-1/p/g8unmo5nrqqe2bg7uc6nau94y6pkvg-w97bk) instead of UTC I know some basic javascript - and I'm aware how to add that inside a code block in squarespace to get the client timezone: e.g., <script type="text/javascript"> var timezone = encodeURIComponent(jstz.determine().name()); </script> What I'm not sure how to do (or if it's possible) is to modify the string of the variant name to update the time (i.e., edit variant-select-wrapper). Is this possible, are there any similar examples I could work from?
×
×
  • 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.