Corduroy Button Shirt
people are viewing this right now
${function() {
const variantData = data.variant || {"id":"03daa859-b9e1-428d-b136-32213c9487f1","product_id":"74928e7c-c478-4f48-90d1-b8c127a91adb","title":"Charcoal-S","weight_unit":"kg","inventory_quantity":9999,"sku":"AR1747424-\u02af\u012b\u026bS","barcode":"","position":1,"option1":"Charcoal","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/788ebbd29d47cad2f1a62e7688b2ef1e.jpeg","path":"788ebbd29d47cad2f1a62e7688b2ef1e.jpeg","width":750,"height":559,"alt":"","aspect_ratio":1.3416815742397137},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.99","price":"39.99","retail_price":"79.99","available":true,"url":"\/products\/corduroy-button-shirt-buy-2-free-shipping?variant=03daa859-b9e1-428d-b136-32213c9487f1","available_quantity":999999999,"options":[{"name":"COLOR","value":"Charcoal"},{"name":"SIZE","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Charcoal
${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}
`
}()}
Size:
S
${function(){
const optName = "SIZE";
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}
`
}()}
Add to cart
$39.99
${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":"03daa859-b9e1-428d-b136-32213c9487f1","product_id":"74928e7c-c478-4f48-90d1-b8c127a91adb","title":"Charcoal-S","weight_unit":"kg","inventory_quantity":9999,"sku":"AR1747424-\u02af\u012b\u026bS","barcode":"","position":1,"option1":"Charcoal","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/788ebbd29d47cad2f1a62e7688b2ef1e.jpeg","path":"788ebbd29d47cad2f1a62e7688b2ef1e.jpeg","width":750,"height":559,"alt":"","aspect_ratio":1.3416815742397137},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.99","price":"39.99","retail_price":"79.99","available":true,"url":"\/products\/corduroy-button-shirt-buy-2-free-shipping?variant=03daa859-b9e1-428d-b136-32213c9487f1","available_quantity":999999999,"options":[{"name":"COLOR","value":"Charcoal"},{"name":"SIZE","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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":"03daa859-b9e1-428d-b136-32213c9487f1","product_id":"74928e7c-c478-4f48-90d1-b8c127a91adb","title":"Charcoal-S","weight_unit":"kg","inventory_quantity":9999,"sku":"AR1747424-\u02af\u012b\u026bS","barcode":"","position":1,"option1":"Charcoal","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/788ebbd29d47cad2f1a62e7688b2ef1e.jpeg","path":"788ebbd29d47cad2f1a62e7688b2ef1e.jpeg","width":750,"height":559,"alt":"","aspect_ratio":1.3416815742397137},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.99","price":"39.99","retail_price":"79.99","available":true,"url":"\/products\/corduroy-button-shirt-buy-2-free-shipping?variant=03daa859-b9e1-428d-b136-32213c9487f1","available_quantity":999999999,"options":[{"name":"COLOR","value":"Charcoal"},{"name":"SIZE","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}