-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe.html
46 lines (35 loc) · 1.13 KB
/
iframe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!doctype html>
<html>
<head>
<!-- Include Ecwid JS SDK -->
<script src="https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/js/1.2.9/ecwid-app.js"></script>
<script>
// Initialize the application
EcwidApp.init({
app_id: "custom-app-75951758-1", // your client_id
autoloadedflag: true,
autoheight: true
});
// Get the store ID and access token
var storeData = EcwidApp.getPayload();
var storeId = storeData.store_id;
var accessToken = storeData.access_token;
var language = storeData.lang;
if (storeData.public_token !== undefined){
var publicToken = storeData.public_token;
}
if (storeData.app_state !== undefined){
var appState = storeData.app_state;
}
// do something...
</script>
<!-- Include Ecwid CSS Framework -->
<link rel="stylesheet" href="https://d35z3p2poghz10.cloudfront.net/ecwid-sdk/css/1.3.13/ecwid-app-ui.css"/>
</head>
<body class='normalized'>
<div>Show something</div>
<!-- JS for CSS Framework components -->
<script src="https://d35z3p2poghz10.cloudfront.net/ecwid-sdk/css/1.3.13/ecwid-app-ui.min.js
"></script>
</body>
</html>