Vintage Christmas V Neck Button Down Cardigan
${function() {
const variantData = data.variant || {"id":"47a8e2a8-6d67-47cc-af42-441c19329d1d","product_id":"b6e8e85a-5359-4da2-8087-da51ea4ef22d","title":"C0006-02-S","weight_unit":"kg","inventory_quantity":500,"sku":"C0006-02-C0006-02-S","barcode":"","position":1,"option1":"C0006-02","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fde70886b2e429e0e762bfce16d86164.jpeg","path":"fde70886b2e429e0e762bfce16d86164.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":32.89,"min_quantity":1}],"weight":"0.35","compare_at_price":"0","price":"32.89","retail_price":"0","available":true,"url":"\/products\/vintage-christmas-v-neck-button-down-cardigan?variant=47a8e2a8-6d67-47cc-af42-441c19329d1d","available_quantity":999999999,"options":[{"name":"Color","value":"C0006-02"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = false;
const map = {
B: ` `,
C: ` `,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Color:
C0006-02
${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
$32.89
${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":"47a8e2a8-6d67-47cc-af42-441c19329d1d","product_id":"b6e8e85a-5359-4da2-8087-da51ea4ef22d","title":"C0006-02-S","weight_unit":"kg","inventory_quantity":500,"sku":"C0006-02-C0006-02-S","barcode":"","position":1,"option1":"C0006-02","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fde70886b2e429e0e762bfce16d86164.jpeg","path":"fde70886b2e429e0e762bfce16d86164.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":32.89,"min_quantity":1}],"weight":"0.35","compare_at_price":"0","price":"32.89","retail_price":"0","available":true,"url":"\/products\/vintage-christmas-v-neck-button-down-cardigan?variant=47a8e2a8-6d67-47cc-af42-441c19329d1d","available_quantity":999999999,"options":[{"name":"Color","value":"C0006-02"},{"name":"Size","value":"S"}],"off_ratio":0,"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 does not exist
people are viewing this right now
${function() {
const postageFreeAmount = 69;
const custom_text = "Buy {amount} more to enjoy Free Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order has free shipping";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}