Actions Documentation
Edit on
Codepen.io
Codepen.io
data-fsc-action=”TaxId”
The value passed in the data-fsc-order-taxId will be validated in conjunction with the customer’s country (detected by geo IP location or set via data-fsc-order-country); if valid, the ID will be applied to the order and no VAT or GST will be collected
x
50
1
<!--
2
DEMO EXTRA INFO
3
-->
4
Enter the tax id "DE257486969" to apply a discount<br /><br />
5
6
<!--
7
DEMO INFO
8
data-fsc-taxid-value should be included in the input field box
9
for action="TaxId" as the TaxId action will look for the nearest
10
data-fsc-taxid-value.
11
-->
12
Tax ID:
13
<input type="text" data-fsc-taxid-value />
14
15
<button data-fsc-action="TaxId">
16
Apply Tax ID
17
</button>
18
19
<!--
20
DEMO RESULTS
21
-->
22
<br /><br />
23
24
Order Total:
25
<span data-fsc-order-total>
26
<!-- this will be replaced with the order total -->
27
</span><br><br>
28
29
Order Tax:
30
<span data-fsc-order-tax>
31
<!-- this will be replaced with the order total -->
32
</span>
33
34
<!--
35
DEMO SETUP
36
- Initialize the Store Builder Library
37
- Change country to Germany
38
- Add a product to cart
39
-->
40
<script
41
id="fsc-api"
42
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
43
type="text/javascript"
44
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
45
</script>
46
47
<script type="text/javascript">
48
fastspring.builder.country("de");
49
fastspring.builder.add("phot-io-main-app");
50
</script>
1
1
1
1