【 TOPPP 】【Pre sale, shipped on September 30th】GFD74- Popular men's clothing, model style, knitted vest, made of pure wool material
${function() {
const variantData = data.variant || {"id":"266df9a8-95a3-4d1b-8927-c35c4a235ad3","product_id":"e13643f9-16c9-4781-8547-b30d2b25808c","title":"black-M","weight_unit":"kg","inventory_quantity":8,"sku":"GFD74-160-black-M-A00113005","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/64d5d25267bcdf0d86955e87cf6d0266.jpg","path":"64d5d25267bcdf0d86955e87cf6d0266.jpg","width":1672,"height":2382,"alt":"","aspect_ratio":0.7019311502938707},"wholesale_price":[{"price":40.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"40.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-shipped-on-september-30th-gfd74-popular-mens-clothing-model-style-knitted-vest-made-of-pure-wool-material?variant=266df9a8-95a3-4d1b-8927-c35c4a235ad3","available_quantity":8,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":5};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Colour:
black
${function(){
const optName = "colour";
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:
M
${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
$40.80
${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":"266df9a8-95a3-4d1b-8927-c35c4a235ad3","product_id":"e13643f9-16c9-4781-8547-b30d2b25808c","title":"black-M","weight_unit":"kg","inventory_quantity":8,"sku":"GFD74-160-black-M-A00113005","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/64d5d25267bcdf0d86955e87cf6d0266.jpg","path":"64d5d25267bcdf0d86955e87cf6d0266.jpg","width":1672,"height":2382,"alt":"","aspect_ratio":0.7019311502938707},"wholesale_price":[{"price":40.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"40.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-shipped-on-september-30th-gfd74-popular-mens-clothing-model-style-knitted-vest-made-of-pure-wool-material?variant=266df9a8-95a3-4d1b-8927-c35c4a235ad3","available_quantity":8,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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":"266df9a8-95a3-4d1b-8927-c35c4a235ad3","product_id":"e13643f9-16c9-4781-8547-b30d2b25808c","title":"black-M","weight_unit":"kg","inventory_quantity":8,"sku":"GFD74-160-black-M-A00113005","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/64d5d25267bcdf0d86955e87cf6d0266.jpg","path":"64d5d25267bcdf0d86955e87cf6d0266.jpg","width":1672,"height":2382,"alt":"","aspect_ratio":0.7019311502938707},"wholesale_price":[{"price":40.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"40.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-shipped-on-september-30th-gfd74-popular-mens-clothing-model-style-knitted-vest-made-of-pure-wool-material?variant=266df9a8-95a3-4d1b-8927-c35c4a235ad3","available_quantity":8,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":5};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
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 `
`;
}()}