Jump to content

Making ShareASale Affiliate Program work on Squarespace -- with Discounts

Go to solution Solved by paul2009,

Recommended Posts

Hi There! 

I'm trying to get ShareASale affiliate program to work on my Squarespace site. The code I entered did work BUT it doesn't take into account any discounts. So the Subtotal reported is the gross amount.

For the affiliate program I need what the customer paid (so less any discounts) not including tax. ShareASale says they can't help and that it's a Squarespace problem. 

I do see GrandTotal as an option I can use in the code. And while I haven't tested this yet, I'm guessing that includes tax.

Does anyone know how to solve this? 

Thank you!

Stacy 

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
On 11/30/2022 at 1:01 AM, StacyF said:

The Subtotal reported is the gross amount.

I need what the customer paid (so less any discounts) not including tax. 

I do see GrandTotal as an option...And while I haven't tested this yet, I'm guessing that includes tax.

Squarespace do not include tax information in any of the tags in Order Confirmation Page Code Injection. The tags you mention are as follows:

  • the cost, not including discounts or tax - {orderSubtotal}
  • the order total, with discounts applied and tax added - {orderGrandTotal}

However, the tax information is available in the JSON (taxTotal) so it is possible for a developer to extract this information from the order and calculate grand total without the tax.

I am not familiar with ShareASale but if they want to target their service at Squarespace users, they may want to consider writing some code that you (and other Squarespace users) can use to extract this or they could build a solution that integrates with the Squarespace Orders API.

If you haven't already committed to that affiliate service, you may want to consider using one that has been built to work with Squarespace, for example Peach's.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.