Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Search the Community

Showing results for tags 'variables'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Forum
    • News and Announcements
    • Getting Started With Squarespace
    • Coding and Customization
    • Commerce
    • Feedback on Your Site
    • Images and Videos
    • Pages and Content
    • SEO and Marketing
    • Site Design and Styles
  • Colorado Designers's Topics
  • Squarespace Forum Club Guidelines's Topics
  • Austin, TX Designers's Club Discussion
  • New York City Designers's Club Discussion
  • Berlin Designers's Club Discussion
  • SEO Experts's Topics
  • Photographers's Club Discussion
  • Graphic Designers's Topics
  • London Designers's Topics
  • Podcasters's Club Discussion
  • Custom Coding Help's Topics
  • Atlanta, GA Designers's Topics
  • Seattle, WA Designers's Topics
  • San Diego, CA Designers's Topics
  • Dallas, TX Designers's Topics
  • Australia Designers's Club Discussion
  • Minnesota Designers's Topics
  • Minnesota Designers's Topics
  • Copywriters's Topics
  • France Designers 🇫🇷's Topics
  • France Designers 🇫🇷's Topics
  • Portland, OR Designers's Topics
  • Canadian Website Designers's Club Discussion
  • Los Angeles Designers & Devs's Club Discussion
  • South African Designers's Club Discussion
  • Brazil Designers's Club Discussion
  • Developers's Club Discussion

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Website


Location

Found 2 results

  1. I am trying to setup integration with an affiliate program. I'm sending an XHR to the affiliate on order confirmation (using the code-injection tool), but I can't figure out what the SquareSpace variable is to get the discount code. I need to include this in the JSON I'm sending. Does anyone know what that variable is called? What I have already is below. I've tested it with hardcoded data to confirm that it does work correctly, but I need to know what that "coupon" variable is on the SquareSpace side. <script type="text/javascript"> let request = new XMLHttpRequest; request.open("POST", "AFFILIATE_LINK"); request.setRequestHeader('Api-Key', 'APIKEY'); request.setRequestHeader('Content-Type', 'application/json'); request.send(JSON.stringify({ "coupon": promoCodeThatINeedFromSquareSpace, "amount": {orderSubtotal}, "customer_id": {customerEmailAddress}, "external_id": {orderID} })); </script> Thanks in advance for any help!
  2. I am attempting to set up an affiliate program for my site. I am using the program Post Affiliate Pro, and in setting up the tracking of purchases, Post Affiliate Pro has given me a code to inject into the order confirmation page which will send them info if a customer used a coupon code given by a certain affiliate. However, in the instructions they gave me, they said I would need to edit the code and replace ('Coupon_Code') with whatever squarespace uses as a variable for its coupons Here is the code they said to modify and inject: sale.setCoupon('Coupon_Code');
×
×
  • Create New...