Please let us know how this article can be improved.
Choose all that apply.*
Report a bad link
Out of date (instructions or screenshots)
Missing detail
Other
Calculate discounts in real-time at checkout
Learn how to set up discounts which calculate in real time.
Jun 20, 2024
Article ID: SLN25912
How it works
When a customer is about to place an order in your store, the system will post cart data to a script that you specify. Information about the order will be posted in Yahoo Format. The script must provide a value for either Discount or Discount-Error in the HTTP response headers.
If the script returns Discount-Error, the value of this key will be displayed in an error message to the customer. For example, if you have a field called Customer ID and the script returns Discount-Error:Invalid Customer ID, the customer will be notified and will have to re-enter the Customer ID.
Under Discount Calculation, enter the external URL to your script in the External URL field.
Click the Update button.
Click the Done button.
Return to Store Manager and publish your Order Settings.
Check your server firewall - If your firewall restricts access to your web server, add the IP ranges for real-time integration to your whitelist so that Turbify's servers can post to your server.