Subversion Repositories munaweb

Rev

Rev 143 | Rev 147 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 143 Rev 144
Line 3771... Line 3771...
3771
        title = cleanTitleForShopifySearch(title);
3771
        title = cleanTitleForShopifySearch(title);
3772
        queryText = 'title=' + title;
3772
        queryText = 'title=' + title;
3773
    }
3773
    }
3774
 
3774
 
3775
    xhttp.open("GET", configProxyUrl, true);
3775
    xhttp.open("GET", configProxyUrl, true);
3776
	xhttp.setRequestHeader("X-Proxy-Url", configShopifyUrl + configShopifyProductsUrl + '?fields=id,handle,variants&' + queryText);
3776
	xhttp.setRequestHeader("X-Proxy-Url", configShopifyUrl + configShopifyProductsUrl + '?limit=1&fields=id,handle,variants&' + queryText);
3777
	if (flag == 6) { xhttp.setRequestHeader("X-LEAVE-ENCODED", "1"); }
3777
	if (flag == 6) { xhttp.setRequestHeader("X-LEAVE-ENCODED", "1"); }
3778
    xhttp.send();
3778
    xhttp.send();
3779
}
3779
}
3780
 
3780
 
3781
function connected() {
3781
function connected() {