summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist6
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.carbin844136 -> 844136 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nibbin2285 -> 2284 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nibbin832 -> 832 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Info.plistbin1698 -> 1698 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nibbin943 -> 943 bytes
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Islandbin2224144 -> 2224144 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources44
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/config.xml2
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/_sdk.js9
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/product.js8
-rw-r--r--StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstatebin112337 -> 112221 bytes
-rw-r--r--StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist4
-rwxr-xr-xStoneIsland/platforms/ios/Stone Island/config.xml2
-rw-r--r--StoneIsland/platforms/ios/Stone Island/main.m2
-rwxr-xr-xStoneIsland/platforms/ios/www/js/sdk/_sdk.js5
-rwxr-xr-xStoneIsland/platforms/ios/www/js/sdk/product.js8
-rwxr-xr-xStoneIsland/www/js/sdk/_sdk.js5
-rwxr-xr-xStoneIsland/www/js/sdk/product.js8
19 files changed, 53 insertions, 50 deletions
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist b/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist
index 585097f5..ed351ab3 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Info.plist
@@ -9,16 +9,16 @@
<key>CFBundleIdentifier</key>
<string>us.okfoc.stoneisland</string>
<key>CFBundleShortVersionString</key>
- <string>0.9.5</string>
+ <string>0.9.6</string>
<key>CFBundleVersion</key>
- <string>0.9.5</string>
+ <string>0.9.6</string>
<key>SigningIdentity</key>
<string>iPhone Developer: Francesca Agusani (3ECUPBTQ5W)</string>
</dict>
<key>ArchiveVersion</key>
<integer>2</integer>
<key>CreationDate</key>
- <date>2017-11-24T16:58:04Z</date>
+ <date>2017-11-24T19:14:54Z</date>
<key>Name</key>
<string>Stone Island</string>
<key>SchemeName</key>
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car
index 970736c0..af3e64af 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Assets.car
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
index 0f71bc55..c1182a25 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
index 615d8527..39b840e9 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Info.plist b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Info.plist
index d4030a05..ecf2ec6c 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Info.plist
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Info.plist
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib
index 1b87f5e0..e51cec57 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/MainViewController.nib
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island
index cfcd27da..2381fd47 100755
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/Stone Island
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources
index b2314b25..85b9293a 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/_CodeSignature/CodeResources
@@ -94,11 +94,11 @@
</data>
<key>Assets.car</key>
<data>
- g/shlZXXT+5YqMmZSYPmC64TQK0=
+ KMH8+1Pz/iClgaz6CR0EqdcEXxU=
</data>
<key>CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
<data>
- XKRpTIL+5+qWUTNCfMrloqXol+o=
+ cz+4SGs/fYf5KwDHDMojpnTTb0c=
</data>
<key>CDVLaunchScreen.storyboardc/Info.plist</key>
<data>
@@ -106,7 +106,7 @@
</data>
<key>CDVLaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib</key>
<data>
- MFJLtjYuQtDJx/38DlBSTD+pBf8=
+ qDRqT+KNdSJ4AMXEyQATUBF9nrc=
</data>
<key>CDVNotification.bundle/beep.wav</key>
<data>
@@ -114,11 +114,11 @@
</data>
<key>Info.plist</key>
<data>
- 36ZrERw9cWhqRg8Nu46wiDivw64=
+ 7WlhIjtoNeudQAXVr74fcDAM4X0=
</data>
<key>MainViewController.nib</key>
<data>
- WPhCUF01tBcP0CKRq9fFQt/+T2Q=
+ WiFU90oAbYH/FsFJOC5GukNWJyI=
</data>
<key>PkgInfo</key>
<data>
@@ -130,7 +130,7 @@
</data>
<key>config.xml</key>
<data>
- 8Pt1T+oGeJBSlGfmN9XLpSdqP58=
+ 1fxqjJEa5NBEatrUFi1CqzM5mso=
</data>
<key>embedded.mobileprovision</key>
<data>
@@ -546,7 +546,7 @@
</data>
<key>www/js/sdk/_sdk.js</key>
<data>
- 7I9q8zztUZpu863BewpO2gfhu3s=
+ dcT4TxoVmD+JGr8ArwAj04g8+Z8=
</data>
<key>www/js/sdk/account.js</key>
<data>
@@ -570,7 +570,7 @@
</data>
<key>www/js/sdk/product.js</key>
<data>
- ZYf0fQuZdLIS1ZXTJSingxo32Hs=
+ eVqSx2tjKlkRw0KrnJE1F1A9ovE=
</data>
<key>www/js/sdk/shipping.js</key>
<data>
@@ -937,22 +937,22 @@
<dict>
<key>hash</key>
<data>
- g/shlZXXT+5YqMmZSYPmC64TQK0=
+ KMH8+1Pz/iClgaz6CR0EqdcEXxU=
</data>
<key>hash2</key>
<data>
- JnNHKritXF3c9xz7oU5A9kgMvDRsGDByjuDTjr4NGrI=
+ 9A43GMBRlZDbye/YZpSILYrghChHjsdGe4JLDdnmaRw=
</data>
</dict>
<key>CDVLaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
<dict>
<key>hash</key>
<data>
- XKRpTIL+5+qWUTNCfMrloqXol+o=
+ cz+4SGs/fYf5KwDHDMojpnTTb0c=
</data>
<key>hash2</key>
<data>
- bBdqkQNpiqV6vnraDiYfFiYK2a9/CzqPEIXcLAyfh28=
+ nReb2Hotj7c6xngzepueLGaI/cM5k0w2sw6PP9IQ9XQ=
</data>
</dict>
<key>CDVLaunchScreen.storyboardc/Info.plist</key>
@@ -970,11 +970,11 @@
<dict>
<key>hash</key>
<data>
- MFJLtjYuQtDJx/38DlBSTD+pBf8=
+ qDRqT+KNdSJ4AMXEyQATUBF9nrc=
</data>
<key>hash2</key>
<data>
- ltZ05E70S7J1bZd2eKH259Zgsxr2TxcV856f7LLg4C4=
+ w7UOLBJYlGtr8/R6CW+s3Idfs0L9zaFPyq8cHmx51H4=
</data>
</dict>
<key>CDVNotification.bundle/beep.wav</key>
@@ -992,11 +992,11 @@
<dict>
<key>hash</key>
<data>
- WPhCUF01tBcP0CKRq9fFQt/+T2Q=
+ WiFU90oAbYH/FsFJOC5GukNWJyI=
</data>
<key>hash2</key>
<data>
- G+OjKp457/9c9jlWaSDoE0JsxdCIVdb/7pTnv3Nm5K0=
+ 86ytNF45A7zHJmcFIdDG/UoJXqvuZv2l4HFgSseVH9E=
</data>
</dict>
<key>archived-expanded-entitlements.xcent</key>
@@ -1014,11 +1014,11 @@
<dict>
<key>hash</key>
<data>
- 8Pt1T+oGeJBSlGfmN9XLpSdqP58=
+ 1fxqjJEa5NBEatrUFi1CqzM5mso=
</data>
<key>hash2</key>
<data>
- HvAJxf6K5K3finU1kmSryi4xBG2E3I/4B267jkrk7LE=
+ nN0fnQnRzXJz65P17+SFo4pr+Re7Hd94cfpcpCIzsSU=
</data>
</dict>
<key>embedded.mobileprovision</key>
@@ -2158,11 +2158,11 @@
<dict>
<key>hash</key>
<data>
- 7I9q8zztUZpu863BewpO2gfhu3s=
+ dcT4TxoVmD+JGr8ArwAj04g8+Z8=
</data>
<key>hash2</key>
<data>
- YGEYcUsNin1H1P3vJFeOUlYHalUyKxitCMYxinYumgY=
+ Pd8ltktCxNotbXJp4uFM94B75+MdTppSvsPSx13JTls=
</data>
</dict>
<key>www/js/sdk/account.js</key>
@@ -2224,11 +2224,11 @@
<dict>
<key>hash</key>
<data>
- ZYf0fQuZdLIS1ZXTJSingxo32Hs=
+ eVqSx2tjKlkRw0KrnJE1F1A9ovE=
</data>
<key>hash2</key>
<data>
- 1pf0iSfyvVwyQgWo2RFIHGyYEGn/8ZszSzJ0MDZ4zNI=
+ Era3HogDahyuxSpoKuuBZFJU9RSOx22iRs4tHr4oa7Q=
</data>
</dict>
<key>www/js/sdk/shipping.js</key>
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/config.xml b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/config.xml
index 0d188827..8b6d2140 100755
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/config.xml
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/config.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
-<widget android-versionCode="6095" id="us.okfoc.stoneisland" version="0.9.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+<widget android-versionCode="6096" id="us.okfoc.stoneisland" version="0.9.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage" />
</feature>
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/_sdk.js b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/_sdk.js
index aa342ffa..ef29ff92 100755
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/_sdk.js
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/_sdk.js
@@ -21,8 +21,8 @@ var sdk = (function(){
}
}
- sdk.path = function(api, path){
- return endpoint + api + "/STONEISLAND_" + sdk.cc() + "/" + path
+ sdk.path = function(api, path, cc){
+ return endpoint + api + "/STONEISLAND_" + (cc || sdk.cc()) + "/" + path
}
sdk.image = function(code, size){
@@ -31,11 +31,12 @@ var sdk = (function(){
sdk.cc = function(){
return sim.data.countryCode.toUpperCase()
+ // return 'CA'
}
sdk.cms = function(){
- // return "https://stone.giraffe.life"
- return "http://staging.stone.giraffe.life"
+ return "https://stone.giraffe.life"
+ // return "http://staging.stone.giraffe.life"
}
$.ajaxSetup({
diff --git a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/product.js b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/product.js
index 671d1fea..3619b0bd 100755
--- a/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/product.js
+++ b/StoneIsland/platforms/ios/Stone Island.xcarchive/Products/Applications/Stone Island.app/www/js/sdk/product.js
@@ -7,7 +7,7 @@ sdk.product = (function(){
product.all = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search.json"),
+ url: sdk.path("Search.API/1.3", "search.json", "US"),
data: { format: "full", productsPerPage: 100 },
success: opt.success,
error: opt.error,
@@ -17,7 +17,7 @@ sdk.product = (function(){
product.collection = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search.json"),
+ url: sdk.path("Search.API/1.3", "search.json", "US"),
data: { format: "full", department: opt.department_id || default_department, productsPerPage: 100 },
success: opt.success,
error: opt.error,
@@ -27,7 +27,7 @@ sdk.product = (function(){
product.department_codes = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search/results.json"),
+ url: sdk.path("Search.API/1.3", "search/results.json", "US"),
data: { format: "full", department: opt.department_id || default_department, page: 1 },
success: opt.success,
error: opt.error,
@@ -37,7 +37,7 @@ sdk.product = (function(){
product.collection_by_gallery = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.2", "search.json"),
+ url: sdk.path("Search.API/1.2", "search.json", "US"),
data: { format: "full", gallery: opt.gallery_id || default_gallery, productsPerPage: 100 },
success: opt.success,
error: opt.error,
diff --git a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate
index 2656d3d9..9a2e3488 100644
--- a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate
+++ b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
diff --git a/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist b/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist
index 34809b7a..7bdafb36 100644
--- a/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist
+++ b/StoneIsland/platforms/ios/Stone Island/Stone Island-Info.plist
@@ -21,11 +21,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.9.5</string>
+ <string>0.9.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>0.9.5</string>
+ <string>0.9.6</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
diff --git a/StoneIsland/platforms/ios/Stone Island/config.xml b/StoneIsland/platforms/ios/Stone Island/config.xml
index 0d188827..8b6d2140 100755
--- a/StoneIsland/platforms/ios/Stone Island/config.xml
+++ b/StoneIsland/platforms/ios/Stone Island/config.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
-<widget android-versionCode="6095" id="us.okfoc.stoneisland" version="0.9.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+<widget android-versionCode="6096" id="us.okfoc.stoneisland" version="0.9.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage" />
</feature>
diff --git a/StoneIsland/platforms/ios/Stone Island/main.m b/StoneIsland/platforms/ios/Stone Island/main.m
index 2c0b35c3..861ee04c 100644
--- a/StoneIsland/platforms/ios/Stone Island/main.m
+++ b/StoneIsland/platforms/ios/Stone Island/main.m
@@ -1,4 +1,4 @@
-/*
+ /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
diff --git a/StoneIsland/platforms/ios/www/js/sdk/_sdk.js b/StoneIsland/platforms/ios/www/js/sdk/_sdk.js
index bcfb3059..ef29ff92 100755
--- a/StoneIsland/platforms/ios/www/js/sdk/_sdk.js
+++ b/StoneIsland/platforms/ios/www/js/sdk/_sdk.js
@@ -21,8 +21,8 @@ var sdk = (function(){
}
}
- sdk.path = function(api, path){
- return endpoint + api + "/STONEISLAND_" + sdk.cc() + "/" + path
+ sdk.path = function(api, path, cc){
+ return endpoint + api + "/STONEISLAND_" + (cc || sdk.cc()) + "/" + path
}
sdk.image = function(code, size){
@@ -31,6 +31,7 @@ var sdk = (function(){
sdk.cc = function(){
return sim.data.countryCode.toUpperCase()
+ // return 'CA'
}
sdk.cms = function(){
diff --git a/StoneIsland/platforms/ios/www/js/sdk/product.js b/StoneIsland/platforms/ios/www/js/sdk/product.js
index 671d1fea..3619b0bd 100755
--- a/StoneIsland/platforms/ios/www/js/sdk/product.js
+++ b/StoneIsland/platforms/ios/www/js/sdk/product.js
@@ -7,7 +7,7 @@ sdk.product = (function(){
product.all = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search.json"),
+ url: sdk.path("Search.API/1.3", "search.json", "US"),
data: { format: "full", productsPerPage: 100 },
success: opt.success,
error: opt.error,
@@ -17,7 +17,7 @@ sdk.product = (function(){
product.collection = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search.json"),
+ url: sdk.path("Search.API/1.3", "search.json", "US"),
data: { format: "full", department: opt.department_id || default_department, productsPerPage: 100 },
success: opt.success,
error: opt.error,
@@ -27,7 +27,7 @@ sdk.product = (function(){
product.department_codes = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search/results.json"),
+ url: sdk.path("Search.API/1.3", "search/results.json", "US"),
data: { format: "full", department: opt.department_id || default_department, page: 1 },
success: opt.success,
error: opt.error,
@@ -37,7 +37,7 @@ sdk.product = (function(){
product.collection_by_gallery = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.2", "search.json"),
+ url: sdk.path("Search.API/1.2", "search.json", "US"),
data: { format: "full", gallery: opt.gallery_id || default_gallery, productsPerPage: 100 },
success: opt.success,
error: opt.error,
diff --git a/StoneIsland/www/js/sdk/_sdk.js b/StoneIsland/www/js/sdk/_sdk.js
index bcfb3059..ef29ff92 100755
--- a/StoneIsland/www/js/sdk/_sdk.js
+++ b/StoneIsland/www/js/sdk/_sdk.js
@@ -21,8 +21,8 @@ var sdk = (function(){
}
}
- sdk.path = function(api, path){
- return endpoint + api + "/STONEISLAND_" + sdk.cc() + "/" + path
+ sdk.path = function(api, path, cc){
+ return endpoint + api + "/STONEISLAND_" + (cc || sdk.cc()) + "/" + path
}
sdk.image = function(code, size){
@@ -31,6 +31,7 @@ var sdk = (function(){
sdk.cc = function(){
return sim.data.countryCode.toUpperCase()
+ // return 'CA'
}
sdk.cms = function(){
diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js
index 671d1fea..3619b0bd 100755
--- a/StoneIsland/www/js/sdk/product.js
+++ b/StoneIsland/www/js/sdk/product.js
@@ -7,7 +7,7 @@ sdk.product = (function(){
product.all = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search.json"),
+ url: sdk.path("Search.API/1.3", "search.json", "US"),
data: { format: "full", productsPerPage: 100 },
success: opt.success,
error: opt.error,
@@ -17,7 +17,7 @@ sdk.product = (function(){
product.collection = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search.json"),
+ url: sdk.path("Search.API/1.3", "search.json", "US"),
data: { format: "full", department: opt.department_id || default_department, productsPerPage: 100 },
success: opt.success,
error: opt.error,
@@ -27,7 +27,7 @@ sdk.product = (function(){
product.department_codes = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.3", "search/results.json"),
+ url: sdk.path("Search.API/1.3", "search/results.json", "US"),
data: { format: "full", department: opt.department_id || default_department, page: 1 },
success: opt.success,
error: opt.error,
@@ -37,7 +37,7 @@ sdk.product = (function(){
product.collection_by_gallery = function(opt){
return $.ajax({
method: "GET",
- url: sdk.path("Search.API/1.2", "search.json"),
+ url: sdk.path("Search.API/1.2", "search.json", "US"),
data: { format: "full", gallery: opt.gallery_id || default_gallery, productsPerPage: 100 },
success: opt.success,
error: opt.error,