Golf New Women's Wooden Ear Edge Bow Short Socks A423299
${function() {
const variantData = data.variant || {"id":"904bbf67-62f5-4b38-b400-97d77c3567a7","product_id":"e7a07ee2-f50f-429f-9312-aa143ef74849","title":"WHITE","weight_unit":"kg","inventory_quantity":0,"sku":"A42329945-WHITE-A001120","barcode":"","position":2,"option1":"WHITE","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99bf7c1dab60d2088ef240eab9cfd63d.jpg","path":"99bf7c1dab60d2088ef240eab9cfd63d.jpg","width":1280,"height":1920,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0","compare_at_price":"25","price":"15","retail_price":"25","available":false,"url":"\/products\/golf-new-womens-wooden-ear-edge-bow-short-socks-a423299?variant=904bbf67-62f5-4b38-b400-97d77c3567a7","available_quantity":0,"options":[{"name":"COLOR","value":"WHITE"}],"off_ratio":40,"flashsale_info":[],"sales":26};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
WHITE
${function(){
const optName = "COLOR";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Sold out
$15.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"904bbf67-62f5-4b38-b400-97d77c3567a7","product_id":"e7a07ee2-f50f-429f-9312-aa143ef74849","title":"WHITE","weight_unit":"kg","inventory_quantity":0,"sku":"A42329945-WHITE-A001120","barcode":"","position":2,"option1":"WHITE","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99bf7c1dab60d2088ef240eab9cfd63d.jpg","path":"99bf7c1dab60d2088ef240eab9cfd63d.jpg","width":1280,"height":1920,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0","compare_at_price":"25","price":"15","retail_price":"25","available":false,"url":"\/products\/golf-new-womens-wooden-ear-edge-bow-short-socks-a423299?variant=904bbf67-62f5-4b38-b400-97d77c3567a7","available_quantity":0,"options":[{"name":"COLOR","value":"WHITE"}],"off_ratio":40,"flashsale_info":[],"sales":26};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"904bbf67-62f5-4b38-b400-97d77c3567a7","product_id":"e7a07ee2-f50f-429f-9312-aa143ef74849","title":"WHITE","weight_unit":"kg","inventory_quantity":0,"sku":"A42329945-WHITE-A001120","barcode":"","position":2,"option1":"WHITE","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99bf7c1dab60d2088ef240eab9cfd63d.jpg","path":"99bf7c1dab60d2088ef240eab9cfd63d.jpg","width":1280,"height":1920,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0","compare_at_price":"25","price":"15","retail_price":"25","available":false,"url":"\/products\/golf-new-womens-wooden-ear-edge-bow-short-socks-a423299?variant=904bbf67-62f5-4b38-b400-97d77c3567a7","available_quantity":0,"options":[{"name":"COLOR","value":"WHITE"}],"off_ratio":40,"flashsale_info":[],"sales":26};
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 `
`;
}()}