SUCCESS SMARTU Letter Christmas Tree Sweater Round Neck For Men And Women
${function() {
const variantData = data.variant || {"id":"43535c1b-778a-4496-bc8b-c7e87dac4893","product_id":"0610591c-678e-4526-a7f1-b378a2ec9599","title":"YF2296 grey-XS","weight_unit":"g","inventory_quantity":759,"sku":"","barcode":"","position":1,"option1":"YF2296 grey","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc9cb9e5b52e1f916fdf314baf646aef.jpeg","path":"fc9cb9e5b52e1f916fdf314baf646aef.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.9,"min_quantity":1}],"weight":"220","compare_at_price":"35.8","price":"17.9","retail_price":"35.8","available":true,"url":"\/products\/success-smartu-letter-christmas-tree-sweater-round-neck-for-men-and-women?variant=43535c1b-778a-4496-bc8b-c7e87dac4893","available_quantity":999999999,"options":[{"name":"style","value":"YF2296 grey"},{"name":"Size","value":"XS"}],"off_ratio":50,"flashsale_info":[],"sales":560};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
YF2296 grey
${function(){
const optName = "style";
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:
XS
${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
$17.90
${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":"43535c1b-778a-4496-bc8b-c7e87dac4893","product_id":"0610591c-678e-4526-a7f1-b378a2ec9599","title":"YF2296 grey-XS","weight_unit":"g","inventory_quantity":759,"sku":"","barcode":"","position":1,"option1":"YF2296 grey","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc9cb9e5b52e1f916fdf314baf646aef.jpeg","path":"fc9cb9e5b52e1f916fdf314baf646aef.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.9,"min_quantity":1}],"weight":"220","compare_at_price":"35.8","price":"17.9","retail_price":"35.8","available":true,"url":"\/products\/success-smartu-letter-christmas-tree-sweater-round-neck-for-men-and-women?variant=43535c1b-778a-4496-bc8b-c7e87dac4893","available_quantity":999999999,"options":[{"name":"style","value":"YF2296 grey"},{"name":"Size","value":"XS"}],"off_ratio":50,"flashsale_info":[],"sales":560};
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":"43535c1b-778a-4496-bc8b-c7e87dac4893","product_id":"0610591c-678e-4526-a7f1-b378a2ec9599","title":"YF2296 grey-XS","weight_unit":"g","inventory_quantity":759,"sku":"","barcode":"","position":1,"option1":"YF2296 grey","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc9cb9e5b52e1f916fdf314baf646aef.jpeg","path":"fc9cb9e5b52e1f916fdf314baf646aef.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.9,"min_quantity":1}],"weight":"220","compare_at_price":"35.8","price":"17.9","retail_price":"35.8","available":true,"url":"\/products\/success-smartu-letter-christmas-tree-sweater-round-neck-for-men-and-women?variant=43535c1b-778a-4496-bc8b-c7e87dac4893","available_quantity":999999999,"options":[{"name":"style","value":"YF2296 grey"},{"name":"Size","value":"XS"}],"off_ratio":50,"flashsale_info":[],"sales":560};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}