Men's spikeless golf shoes
${function() {
const variantData = data.variant || {"id":"9a1edb6e-bff3-44a7-b99b-c60a4b9dff28","product_id":"dce82575-e52d-4217-aeb8-963b14d74446","title":"black-40","weight_unit":"kg","inventory_quantity":50,"sku":"A\u9ad8-450-black-40-A0015257","barcode":"","position":1,"option1":"black","option2":"40","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e2de996494ff6b2718ddecca9cfd75df.jpg","path":"e2de996494ff6b2718ddecca9cfd75df.jpg","width":1280,"height":1707,"alt":"","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":95,"min_quantity":1}],"weight":"1.8","compare_at_price":"0","price":"95","retail_price":"0","available":true,"url":"\/products\/mens-spikeless-golf-shoes-62n8?variant=9a1edb6e-bff3-44a7-b99b-c60a4b9dff28","available_quantity":999999999,"options":[{"name":"colour","value":"black"},{"name":"size","value":"40"}],"off_ratio":0,"flashsale_info":[],"sales":17};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"9a1edb6e-bff3-44a7-b99b-c60a4b9dff28","product_id":"dce82575-e52d-4217-aeb8-963b14d74446","title":"black-40","weight_unit":"kg","inventory_quantity":50,"sku":"A\u9ad8-450-black-40-A0015257","barcode":"","position":1,"option1":"black","option2":"40","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e2de996494ff6b2718ddecca9cfd75df.jpg","path":"e2de996494ff6b2718ddecca9cfd75df.jpg","width":1280,"height":1707,"alt":"","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":95,"min_quantity":1}],"weight":"1.8","compare_at_price":"0","price":"95","retail_price":"0","available":true,"url":"\/products\/mens-spikeless-golf-shoes-62n8?variant=9a1edb6e-bff3-44a7-b99b-c60a4b9dff28","available_quantity":999999999,"options":[{"name":"colour","value":"black"},{"name":"size","value":"40"}],"off_ratio":0,"flashsale_info":[],"sales":17};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}