Solid Color V-neck Long-sleeved Wild Casual Shirt
${function() {
const variantData = data.variant || {"id":"7c44a160-e746-4e31-a177-da2ecada6cd6","product_id":"96897cd3-e476-4c7c-947c-9f9f55645344","title":"Green-US6","weight_unit":"kg","inventory_quantity":1000,"sku":"QT2644-Green-US6","barcode":"","position":1,"option1":"Green","option2":"US6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1586b589220a2bf7a6af84c18c60221.jpeg","path":"f1586b589220a2bf7a6af84c18c60221.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":30.43,"min_quantity":1}],"weight":"0","compare_at_price":"30.43","price":"30.43","retail_price":"30.43","available":true,"url":"\/products\/solid-color-v-neck-long-sleeved-wild-casual-shirt-204122715948?variant=7c44a160-e746-4e31-a177-da2ecada6cd6","available_quantity":1000,"options":[{"name":"color","value":"Green"},{"name":"size","value":"US6"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
color:
Green
${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:
US6
${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
$30.43
${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":"7c44a160-e746-4e31-a177-da2ecada6cd6","product_id":"96897cd3-e476-4c7c-947c-9f9f55645344","title":"Green-US6","weight_unit":"kg","inventory_quantity":1000,"sku":"QT2644-Green-US6","barcode":"","position":1,"option1":"Green","option2":"US6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1586b589220a2bf7a6af84c18c60221.jpeg","path":"f1586b589220a2bf7a6af84c18c60221.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":30.43,"min_quantity":1}],"weight":"0","compare_at_price":"30.43","price":"30.43","retail_price":"30.43","available":true,"url":"\/products\/solid-color-v-neck-long-sleeved-wild-casual-shirt-204122715948?variant=7c44a160-e746-4e31-a177-da2ecada6cd6","available_quantity":1000,"options":[{"name":"color","value":"Green"},{"name":"size","value":"US6"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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":"7c44a160-e746-4e31-a177-da2ecada6cd6","product_id":"96897cd3-e476-4c7c-947c-9f9f55645344","title":"Green-US6","weight_unit":"kg","inventory_quantity":1000,"sku":"QT2644-Green-US6","barcode":"","position":1,"option1":"Green","option2":"US6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1586b589220a2bf7a6af84c18c60221.jpeg","path":"f1586b589220a2bf7a6af84c18c60221.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":30.43,"min_quantity":1}],"weight":"0","compare_at_price":"30.43","price":"30.43","retail_price":"30.43","available":true,"url":"\/products\/solid-color-v-neck-long-sleeved-wild-casual-shirt-204122715948?variant=7c44a160-e746-4e31-a177-da2ecada6cd6","available_quantity":1000,"options":[{"name":"color","value":"Green"},{"name":"size","value":"US6"}],"off_ratio":0,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}