Electric-blanket-washable electric blanket heating pad foot heater folding blanket heating foot cover insulation blanket electric 30 * 40 cm-Electric-blanket
Electric-blanket-washable electric blanket heating pad foot heater folding blanket heating foot cover insulation blanket electric 30 * 40 cm-Electric-blanket
${function() {
const variantData = data.variant || {"id":"2b439535-1fb4-4f2c-ab07-ce383c469fe9","product_id":"081e7510-694a-4195-b7f5-cc992a3541ab","title":"Japanese 30 40 cm","weight_unit":"kg","inventory_quantity":5000,"sku":"-Japanese 30 40 cm-A0022005105","barcode":"","position":3,"option1":"Japanese 30 40 cm","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c4dba9a440c4e9b2bb80a9119a13d473.jpeg","path":"c4dba9a440c4e9b2bb80a9119a13d473.jpeg","width":576,"height":576,"alt":"Electric-blanket-washable electric blanket heating pad foot heater folding blanket heating foot cover insulation blanket electric 30 * 40 cm-Electric-blanket","aspect_ratio":1},"wholesale_price":[{"price":137.5,"min_quantity":1}],"weight":"0","compare_at_price":"323.13","price":"137.5","retail_price":"323.13","available":true,"url":"\/products\/electric-blanket-washable-electric-blanket-heating-pad-foot-heater-folding-blanket-heating-foot-cover-insulation-blanket-electric-30-40-cm?variant=2b439535-1fb4-4f2c-ab07-ce383c469fe9","available_quantity":5000,"options":[{"name":"Color","value":"Japanese 30 40 cm"}],"off_ratio":57,"flashsale_info":[],"sales":5486};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Japanese 30 40 cm
${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}
`
}()}
Add to cart测试
₫137.50
${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":"2b439535-1fb4-4f2c-ab07-ce383c469fe9","product_id":"081e7510-694a-4195-b7f5-cc992a3541ab","title":"Japanese 30 40 cm","weight_unit":"kg","inventory_quantity":5000,"sku":"-Japanese 30 40 cm-A0022005105","barcode":"","position":3,"option1":"Japanese 30 40 cm","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c4dba9a440c4e9b2bb80a9119a13d473.jpeg","path":"c4dba9a440c4e9b2bb80a9119a13d473.jpeg","width":576,"height":576,"alt":"Electric-blanket-washable electric blanket heating pad foot heater folding blanket heating foot cover insulation blanket electric 30 * 40 cm-Electric-blanket","aspect_ratio":1},"wholesale_price":[{"price":137.5,"min_quantity":1}],"weight":"0","compare_at_price":"323.13","price":"137.5","retail_price":"323.13","available":true,"url":"\/products\/electric-blanket-washable-electric-blanket-heating-pad-foot-heater-folding-blanket-heating-foot-cover-insulation-blanket-electric-30-40-cm?variant=2b439535-1fb4-4f2c-ab07-ce383c469fe9","available_quantity":5000,"options":[{"name":"Color","value":"Japanese 30 40 cm"}],"off_ratio":57,"flashsale_info":[],"sales":5486};
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 ? `
` : ' ';
}
}()}
more payment options
Product was out of stock.
Product is unavailable.
Sku : -Japanese 30 40 cm-A0022005105
${function(){
const variantData = data.variant || {"id":"2b439535-1fb4-4f2c-ab07-ce383c469fe9","product_id":"081e7510-694a-4195-b7f5-cc992a3541ab","title":"Japanese 30 40 cm","weight_unit":"kg","inventory_quantity":5000,"sku":"-Japanese 30 40 cm-A0022005105","barcode":"","position":3,"option1":"Japanese 30 40 cm","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c4dba9a440c4e9b2bb80a9119a13d473.jpeg","path":"c4dba9a440c4e9b2bb80a9119a13d473.jpeg","width":576,"height":576,"alt":"Electric-blanket-washable electric blanket heating pad foot heater folding blanket heating foot cover insulation blanket electric 30 * 40 cm-Electric-blanket","aspect_ratio":1},"wholesale_price":[{"price":137.5,"min_quantity":1}],"weight":"0","compare_at_price":"323.13","price":"137.5","retail_price":"323.13","available":true,"url":"\/products\/electric-blanket-washable-electric-blanket-heating-pad-foot-heater-folding-blanket-heating-foot-cover-insulation-blanket-electric-30-40-cm?variant=2b439535-1fb4-4f2c-ab07-ce383c469fe9","available_quantity":5000,"options":[{"name":"Color","value":"Japanese 30 40 cm"}],"off_ratio":57,"flashsale_info":[],"sales":5486};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + ' ')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + ' ');
return `
${tipText}
`;
}()}