Retrieve price based on geolocation
Request sample
var data = {
PRODS: ' 12345678', // product ID
OPTIONS 12345678: '', // product pricing options if any
QTY: 1, //product quantity
CURRENCY: 'EUR', //product currency
COUPON: null, //discount to be applied
RESPONSE_TYPE: 'JSON'
};
$.ajax({
type: 'GET',
url: 'https://' + window.location.host + '/action/get_price.php',
data: data,
success: function (data) {
// your code here
},
error: function (error) {
console.error(error);
},
});Last updated
Was this helpful?