Jump to content

Obtain order ID in new Customer Email Notification editor

Recommended Posts

Posted

I'm trying to obtain/send the "order ID" from my site's shopping orders in the new "Customer Email Notifications" editor, but so far its impossible...i require said IDs to attach them in the notification email in order to use the Squarespace API to obtain each order's data (purchase information: article, price, customer-email, etc) and store them in our database.

I used to be able to do it by simply adding a command <<{order.id}>> on the confirmation email code in the old editor:

image.png.a3bcfce6e57abc5408b2a45cfe9d7cfb.png

Is there a way to achieve this now that the editor is changing?

 

Posted
1 hour ago, NEODATA_Cesar said:

I'm trying to obtain/send the "order ID" from my site's shopping orders in the new "Customer Email Notifications" editor

The fields are added a little differently but it's not immediately obvious how to do this. I find it easier to add some letters where you want the field to go, then click the word and the toolbar appears. You can then select the field that you require (see below):

add-field-to-email-composer.gif.d64e9eb4cdec4b7512751eb95bdba332.gif

  If this post has helped you, please click an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 3 weeks later...
Posted
On 10/1/2021 at 1:27 PM, paul2009 said:

 

add-field-to-email-composer.gif.d64e9eb4cdec4b7512751eb95bdba332.gif

  If this post has helped you, please click an icon below  ⬇️

We tried (in different ways) to use this "Order Number" but it doesn't work the same way the Order ID used to.

Before, said id came like this: order.id = 6128a285c58be30cbfbd4600, instead of the Display Order, which is the one you get the way you explained above, ie: #01234.

Is there ANY way to obtain the id I refer to?
 

  • 3 weeks later...
Posted

@NEODATA_Cesar to help me understand the use case, do you mainly want to use the `order.id = 6128a285c58be30cbfbd4600` info to programmatically access the order data to sync to your own database? Have you looked into directly using our public Orders API to achieve that?

Ex-Squarespace Engineer. 👋 circle community! 

  • 5 months later...
Posted

Hi,

 

I am having a similar issue

 

In my emails I used to generate a link to my server, which included the order ID in it so that I could access the Orders API

 

It seems Squarespace removed that old style of template which is quite frustrating.

 

In this new system, is there a way to get Order ID?

 

Thanks,

Alex

Posted
On 4/26/2022 at 3:35 PM, adnathanail said:

In my emails I used to generate a link to my server, which included the order ID in it so that I could access the Orders API

Hi @adnathanail I believe you are referring to the email store managers (merchants) receive right? Can you elaborate on your use case of Order ID?

Ex-Squarespace Engineer. 👋 circle community! 

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.