RealTimeDesigner Support Network
Wiki Forums Libraries Docs Support RealTimeDesigner Home

RealTimeDesigner WIKI

This tutorial is about how to create a discount code off entire cart contents.

Applying to entire cart contents means applying to every entry of your pricing matrix.

So, the way is to create an external variable, create a discount rule, and apply that rule to all of your pricing matrix entries. A quick step-by-step guide:

1) go In PRODUCT CONFIGURATOR OPTIONS ⇒ Manage/Define External Variables
2) Add a new variable named “coupon_code” and set both Show in cart as coupon code and Expire With Submittal to yes
3) click on top the Manage/Define External Variables Rules link
4) add a rule with:
Rule Name: discound_fullcart
Rule Desc: 20% off
Source Variable: coupon_code
Checkvalue: MyCouponCode
Modifier: 0
% Modifier: -20
5) open a product with PRODUCT OPTIONS ⇒ Configure Products ⇒ [your product] ⇒ Configure Pricing Structure
6) click the Apply External Variables Rules button
7) enable the discound_fullcart rule for all of the visible values
8) repeat 5-6-7 for all the products you want to be affected by the discount rule

That's basically it. Once done, the customer will see in cart a coupon code area.
If he will enter the MyCouponCode value, rule will become active and, with this setup, would apply a -20% to every used price value. If in future you want to change the discount, you can edit the rule and edit the modifier. If you think you'll want multiple discount codes (for example, one for -15% and one for -20%), just create another rule and assign that too to all of your products.

For this reason, it could be a good idea to create a couple “zero rules” (so rules with ZERO modifiers that will not affect pricings) and assign them all when performing steps 5-6-7 the first time. In other words, have them already there as placeholders, so it will be very quick to add multiple codes in case you'll ever need them.