summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/sdk')
-rwxr-xr-xStoneIsland/www/js/sdk/_sdk.js2
-rwxr-xr-xStoneIsland/www/js/sdk/product.js10
2 files changed, 11 insertions, 1 deletions
diff --git a/StoneIsland/www/js/sdk/_sdk.js b/StoneIsland/www/js/sdk/_sdk.js
index b7880e50..017df015 100755
--- a/StoneIsland/www/js/sdk/_sdk.js
+++ b/StoneIsland/www/js/sdk/_sdk.js
@@ -26,7 +26,7 @@ var sdk = (function(){
}
sdk.image = function(code, size){
- return "http://cdn.yoox.biz/" + code.substr(0,2) + "/" + code.substr(0,8) + "_" + size + ".jpg"
+ return "http://cdn.yoox.biz/" + code.substr(0,2) + "/" + code + "_" + size + ".jpg"
}
$.ajaxSetup({
diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js
index 55f1940a..7c12e7d7 100755
--- a/StoneIsland/www/js/sdk/product.js
+++ b/StoneIsland/www/js/sdk/product.js
@@ -3,6 +3,16 @@ sdk.product = (function(){
var default_gallery = 31617
+ product.all = function(opt){
+ return $.ajax({
+ method: "GET",
+ url: sdk.path("Search.API/1.2", "search.json"),
+ data: { format: "full", productsPerPage: 100 },
+ success: opt.success,
+ error: opt.error,
+ })
+ }
+
product.collection = function(opt){
return $.ajax({
method: "GET",