Actions Documentation
Edit on
Codepen.io
Codepen.io
data-fsc-action=”Promocode”
Will apply the coupon code found with data-fsc-promocode-value
x
40
1
<!--
2
DEMO EXTRA INFO
3
-->
4
Enter the coupon code "tenoff" or "free" to apply a discount.<br /><br />
5
6
<!--
7
DEMO INFO
8
data-fsc-action="Promocode" will apply the coupon code found with
9
data-fsc-promocode-value. If FastSpring evaluates the code as valid
10
it will change the pricing information to reflect the discount
11
-->
12
Coupon Code:
13
<input type="text" data-fsc-promocode-value />
14
15
<button data-fsc-action="Promocode">
16
Apply Coupon
17
</button>
18
19
<!--
20
DEMO RESULTS
21
-->
22
<br /><br />
23
Order Total:
24
<span data-fsc-order-total></span>
25
26
<!--
27
DEMO SETUP
28
- Initialize the Store Builder Library
29
- Add item to cart
30
-->
31
<script
32
id="fsc-api"
33
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
34
type="text/javascript"
35
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
36
</script>
37
38
<script type="text/javascript">
39
fastspring.builder.add('phot-io-main-app');
40
</script>
1
1
1
1