StacyF Posted November 30, 2022 Posted November 30, 2022 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
Solution paul2009 Posted November 30, 2022 Solution Posted November 30, 2022 (edited) 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 December 12, 2022 by paul2009 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment