(garden-upgrade)Starburst Swaying Solar Garden Lights
${function() {
const variantData = data.variant || {"id":"6d5fd2f3-acbf-4983-add8-7af20f57d7d9","product_id":"63348ce0-31ae-4228-b0b8-1b6c8b463844","title":"Warm White - Height 29.53-1PCS","weight_unit":"kg","inventory_quantity":999,"sku":"P---29.53-1","barcode":"","position":1,"option1":"Warm White - Height 29.53","option2":"1PCS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7543f5c8e0e5dcde82e1b42ad39a9a50.jpeg","path":"7543f5c8e0e5dcde82e1b42ad39a9a50.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"19.99","retail_price":"33.99","available":true,"url":"\/products\/starburst-swaying-solar-garden-lights65ddde47-8c9d-49b8-8e43-ac188763e2e3c3a908d2-8c01-4420-bb91-adf0c4c4556a?variant=6d5fd2f3-acbf-4983-add8-7af20f57d7d9","available_quantity":999999999,"options":[{"name":"Color","value":"Warm White - Height 29.53"},{"name":"Quantity","value":"1PCS"}],"off_ratio":41,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Warm White - Height 29.53
${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}
`
}()}
Quantity:
1PCS
${function(){
const optName = "Quantity";
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
$19.99
${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":"6d5fd2f3-acbf-4983-add8-7af20f57d7d9","product_id":"63348ce0-31ae-4228-b0b8-1b6c8b463844","title":"Warm White - Height 29.53-1PCS","weight_unit":"kg","inventory_quantity":999,"sku":"P---29.53-1","barcode":"","position":1,"option1":"Warm White - Height 29.53","option2":"1PCS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7543f5c8e0e5dcde82e1b42ad39a9a50.jpeg","path":"7543f5c8e0e5dcde82e1b42ad39a9a50.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"19.99","retail_price":"33.99","available":true,"url":"\/products\/starburst-swaying-solar-garden-lights65ddde47-8c9d-49b8-8e43-ac188763e2e3c3a908d2-8c01-4420-bb91-adf0c4c4556a?variant=6d5fd2f3-acbf-4983-add8-7af20f57d7d9","available_quantity":999999999,"options":[{"name":"Color","value":"Warm White - Height 29.53"},{"name":"Quantity","value":"1PCS"}],"off_ratio":41,"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.
${function(){
const variantData = data.variant || {"id":"6d5fd2f3-acbf-4983-add8-7af20f57d7d9","product_id":"63348ce0-31ae-4228-b0b8-1b6c8b463844","title":"Warm White - Height 29.53-1PCS","weight_unit":"kg","inventory_quantity":999,"sku":"P---29.53-1","barcode":"","position":1,"option1":"Warm White - Height 29.53","option2":"1PCS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7543f5c8e0e5dcde82e1b42ad39a9a50.jpeg","path":"7543f5c8e0e5dcde82e1b42ad39a9a50.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"19.99","retail_price":"33.99","available":true,"url":"\/products\/starburst-swaying-solar-garden-lights65ddde47-8c9d-49b8-8e43-ac188763e2e3c3a908d2-8c01-4420-bb91-adf0c4c4556a?variant=6d5fd2f3-acbf-4983-add8-7af20f57d7d9","available_quantity":999999999,"options":[{"name":"Color","value":"Warm White - Height 29.53"},{"name":"Quantity","value":"1PCS"}],"off_ratio":41,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}