Underwear storage box, 4-piece drawer type
${function(){
const variantData = data.variant || {"id":"e1c31c92-9565-4da6-9c8b-722466a5b7dc","product_id":"204a78c2-d29d-42e7-b5aa-387bef0d58ee","title":"Grey and white edging-Set of4","weight_unit":"g","inventory_quantity":361,"sku":"CJFZ154486903CX","barcode":"","position":2,"option1":"Grey and white edging","option2":"Set of4","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce807a123a4a6e5b2c88a22d34fe972f.jpeg","path":"ce807a123a4a6e5b2c88a22d34fe972f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.02,"min_quantity":1}],"weight":"560","compare_at_price":"0","price":"30.02","retail_price":"0","available":true,"url":"\/products\/underwear-storage-box-4-piece-drawer-type?variant=e1c31c92-9565-4da6-9c8b-722466a5b7dc","available_quantity":999999999,"options":[{"name":"Color","value":"Grey and white edging"},{"name":"style","value":"Set of4"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"e1c31c92-9565-4da6-9c8b-722466a5b7dc","product_id":"204a78c2-d29d-42e7-b5aa-387bef0d58ee","title":"Grey and white edging-Set of4","weight_unit":"g","inventory_quantity":361,"sku":"CJFZ154486903CX","barcode":"","position":2,"option1":"Grey and white edging","option2":"Set of4","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce807a123a4a6e5b2c88a22d34fe972f.jpeg","path":"ce807a123a4a6e5b2c88a22d34fe972f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.02,"min_quantity":1}],"weight":"560","compare_at_price":"0","price":"30.02","retail_price":"0","available":true,"url":"\/products\/underwear-storage-box-4-piece-drawer-type?variant=e1c31c92-9565-4da6-9c8b-722466a5b7dc","available_quantity":999999999,"options":[{"name":"Color","value":"Grey and white edging"},{"name":"style","value":"Set of4"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Grey and white edging
${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}
`
}()}
Style:
Set of4
${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}
`
}()}
Add to cart
$30.02
${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":"e1c31c92-9565-4da6-9c8b-722466a5b7dc","product_id":"204a78c2-d29d-42e7-b5aa-387bef0d58ee","title":"Grey and white edging-Set of4","weight_unit":"g","inventory_quantity":361,"sku":"CJFZ154486903CX","barcode":"","position":2,"option1":"Grey and white edging","option2":"Set of4","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce807a123a4a6e5b2c88a22d34fe972f.jpeg","path":"ce807a123a4a6e5b2c88a22d34fe972f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.02,"min_quantity":1}],"weight":"560","compare_at_price":"0","price":"30.02","retail_price":"0","available":true,"url":"\/products\/underwear-storage-box-4-piece-drawer-type?variant=e1c31c92-9565-4da6-9c8b-722466a5b7dc","available_quantity":999999999,"options":[{"name":"Color","value":"Grey and white edging"},{"name":"style","value":"Set of4"}],"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 is unavailable.