Wall Trellis (Zn-Al-Mg stainless steel) For 8 ft.L / 6.5 ft.L
${function() {
const variantData = data.variant || {"id":"4b2da463-311d-48f2-b737-f031760e91d2","product_id":"43fc6d1d-d600-4329-81c7-29a6df2d0fb5","title":"For 8ft.L","weight_unit":"kg","inventory_quantity":1000,"sku":"For 8ft.L-114637280","barcode":"","position":1,"option1":"For 8ft.L","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/653aab0a8139616446dd7c5016f361c2.jpeg","path":"653aab0a8139616446dd7c5016f361c2.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.68,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"33.68","retail_price":"0","available":true,"url":"\/products\/wall-trellis-zn-al-mg-stainless-steel-for-8-ft-l-6-5-ft-l?variant=4b2da463-311d-48f2-b737-f031760e91d2","available_quantity":999999999,"options":[{"name":"Size","value":"For 8ft.L"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('88');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Size:
For 8ft.L
${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
$33.68
${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":"4b2da463-311d-48f2-b737-f031760e91d2","product_id":"43fc6d1d-d600-4329-81c7-29a6df2d0fb5","title":"For 8ft.L","weight_unit":"kg","inventory_quantity":1000,"sku":"For 8ft.L-114637280","barcode":"","position":1,"option1":"For 8ft.L","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/653aab0a8139616446dd7c5016f361c2.jpeg","path":"653aab0a8139616446dd7c5016f361c2.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.68,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"33.68","retail_price":"0","available":true,"url":"\/products\/wall-trellis-zn-al-mg-stainless-steel-for-8-ft-l-6-5-ft-l?variant=4b2da463-311d-48f2-b737-f031760e91d2","available_quantity":999999999,"options":[{"name":"Size","value":"For 8ft.L"}],"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.
${function(){
const variantData = data.variant || {"id":"4b2da463-311d-48f2-b737-f031760e91d2","product_id":"43fc6d1d-d600-4329-81c7-29a6df2d0fb5","title":"For 8ft.L","weight_unit":"kg","inventory_quantity":1000,"sku":"For 8ft.L-114637280","barcode":"","position":1,"option1":"For 8ft.L","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/653aab0a8139616446dd7c5016f361c2.jpeg","path":"653aab0a8139616446dd7c5016f361c2.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.68,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"33.68","retail_price":"0","available":true,"url":"\/products\/wall-trellis-zn-al-mg-stainless-steel-for-8-ft-l-6-5-ft-l?variant=4b2da463-311d-48f2-b737-f031760e91d2","available_quantity":999999999,"options":[{"name":"Size","value":"For 8ft.L"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}