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
  • Views 307
  • 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 me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

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.