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
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}">

Greeting, it's 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, Keyword Highlighter
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...

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.