Jump to content

Custom code for online shop after purchase

Recommended Posts

Site URL: http://www.collyco.com

Hi!

We are a beauty supplement brand and we would like to work with influencers. I need to implement a piece of code such as this: 

<img src="https://system.makeinfluence.com/p?bid=undefined&value=[INSERT-ORDER-VALUE]&uid=[INSERT-ORDER-ID]">

This has to go to the "thank you" page once the purchase has been done. Now I don't know if there is such a thing on Squarespace Ecommerce and unfortunately the company does not have a specific code snippet for Squarespace.

Any idea how I could implement this and where? I am really lost because as I know, I cannot edit the online shop part nor add custom code.

Thank you!

Link to comment
  • Replies 1
  • Views 953
  • Created
  • Last Reply
On 3/24/2021 at 5:17 PM, Eszter said:

Site URL: http://www.collyco.com

Hi!

We are a beauty supplement brand and we would like to work with influencers. I need to implement a piece of code such as this: 


<img src="https://system.makeinfluence.com/p?bid=undefined&value=[INSERT-ORDER-VALUE]&uid=[INSERT-ORDER-ID]">

This has to go to the "thank you" page once the purchase has been done. Now I don't know if there is such a thing on Squarespace Ecommerce and unfortunately the company does not have a specific code snippet for Squarespace.

Any idea how I could implement this and where? I am really lost because as I know, I cannot edit the online shop part nor add custom code.

Thank you!

You can use the tags like this to get the value of your order

Using Code Injection – Squarespace Help

  • {orderId} – The unique ID of the confirmed order
  • {orderSubtotal} – The subtotal of the confirmed order
  • {orderSubtotalCents} – The subtotal of the confirmed order, in cents
  • {orderGrandTotal} – The grand total of the confirmed order
  • {orderGrandTotalCents} – The grand total of the confirmed order, in cents
  • {customerEmailAddress} – The customer's email address, as it was entered in the "Billing Info" section

    <img src="https://system.makeinfluence.com/p?bid=undefined&value={orderGrandTotal}&uid={orderId}">

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.