Website integration with JavaScript

If you have your own website in which the shop is to be embedded, you can do this with JavaScript. To do this you must adapt the following code:

<div id="myshop"></div> <script>
var spread_shop_config= {
"shopName" : "[shopID]", "locale" : "[shop language_locale]", "prefix" : "//shop.spreadshirt.[shop domain]", "baseId" : "myshop"
</script> <script type="text/javascript" src="//shop.spreadshirt.[shop_domain]e/shopfiles/shopclient/shopclient.nocache.js"></script>

You can find the relevant information in your shop overview. Under Shop you can find the Shop ID and name, and under language you can find the abbreviation for the language. Under language and currency You can determine the abbreviation for locale.

Here are some examples

Country Language_Locale Shop Domain
France fr_FR fr
Germany de_DE de
Netherlands nl_NL nl
USA us_US com
Great Britain en_GB

Was this article helpful?