Methods Documentation
Edit on
Codepen.io
Codepen.io
fastspring.builder.country(countryCode)
Change checkout country to the “countryCode” (where countryCode is a two-letter country code – “US”, “DE”, …)
x
29
1
<!--
2
DEMO INFO
3
fastspring.builder.country() is used to change the country of the order
4
from the one set by IP geo-location. It localizes the page and will
5
change the beautified version of the prices - ie data-fsc-item-price,
6
data-fsc-order-total, etc.
7
-->
8
Change Country:
9
<button onclick="fastspring.builder.country('de');">Switch To Germany</button>
10
11
<!--
12
Effects:
13
-->
14
<br /><br />
15
Order Country:
16
<span data-fsc-order-country>
17
<!--This value will be replaced-->
18
</span>
19
20
<!--
21
DEMO SETUP
22
- Initialize the Store Builder Library
23
-->
24
<script
25
id="fsc-api"
26
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
27
type="text/javascript"
28
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
29
</script>
1
1
1
1