Configure Salesforce Commerce Cloud Connector Coupons Module

You can use the Salesforce Commerce Cloud Connector to style coupons that can be used with Salesforce Commerce Cloud generated coupon codes.

About this task

The Coupon tab can be used to configure a coupon redirect link and the messages that will be displayed to contacts for each status of a coupon. This redirect link can be used with coupon codes generated using Salesforce Commerce Cloud. It will not generate coupon codes.

Procedure

  1. Go to Settings > Integrations > Connector.
  2. Locate the connector you want to work with and click its Edit link.
  3. Click Coupons.
  4. Set Enable Connection to Yes.
  5. Optional: If you want to use a different query parameter than coupon in the URL for valid coupons, enter it in the Coupon Code Query Parameter box.
  6. Optional: If you want to use a different query parameter than invalid_coupon in the URL for invalid coupons, enter it in the Invalid Coupon Query Parameter.
  7. If you want to provide a notification for contacts when they try to use a coupon in your store set Display Message to Yes and configure the message for each type of message. The two major types of messages are Success Message and Failure Message:
    • Success Message is used when the coupon was successfully added to the shopping session.
      • Background Color: Set the color of the message box.
      • Text Color: Set the color of your message text.
      • Message: Default message is "Coupon {code} was successfully applied to your basket."
    • Failure Message is used when the coupon could not be applied.
      • Background Color: Set the color of the message box.
      • Text Color: Set the color of your message text.
      • Message: There are three different default failure messages:
        • Invalid Message is used when the coupon could not be added because it is invalid.
        • Depleted Message is used when the coupon pool has been used to completion.
        • Expired Message is used when the coupon has expired.
  8. When you have finished configuring the Coupons Module, click Save Changes.
  9. Go to Commerce > Coupon Manager.
  10. Locate the campaign you want to work with and click its Get HTML button.
  11. To set up an embeddable redirect:
    1. Click the Redirect URL tab.
    2. Build your Target URL. The URL should follow this format and include the redirect URL.
      http://{customerdomain}/on/demandware.store/Sites-{DemandwareStoreID}-Site/{language}/BCoupon-Apply?redirect_url={redirect URL}
      • The language is the language of the site (Example: default for a multilingual store or en for English).
      • The redirect URL is where the customer should go after clicking a coupon (Example: https://www.example.com).
    3. Enter your text into the Target URL box. The completed URL should look like this.
      http://www.example.com/on/demandware.store/Sites-EX-US-Site/en/BCoupon-Apply?redirect_url=http://www.example.com
    4. Copy the Generated URL and paste it into your message. The Generated URL will begin with https://c.bron.to..
    5. Click Save.