Checkmark

Thank you for your feedback

Calculate discounts in real-time at checkout

Learn how to set up discounts which calculate in real time.

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.

Set up real-time discount calculation

  1. Sign in to your My Services page.
  2. Click the Store link.
    The Store link is under Control Panels.
  3. Go to Real-Time Links.
    The Real-Time Links link is under Order Settings.
  4. Go to Real-Time Link Settings.
    The Real-Time Link Settings link.
  5. Under Discount Calculation, enter the external URL to your script in the External URL field.
    The External URL field is under Discount Calculation.
  6. Click the Update button.
    The Update button.
  7. Click the Done button.
    The Done button.
  8. Return to Store Manager and publish your Order Settings.
    The Publish Order Settings link.

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.