M623103 New Men's Elastic Belt Slim Fit Pants
${function() {
const variantData = data.variant || {"id":"2c047772-83f8-414b-85d3-f33dd14d665a","product_id":"6c77a212-d310-4422-920a-c92b7e116309","title":"\u6df1\u7070-M","weight_unit":"kg","inventory_quantity":18,"sku":"{M623103220}-\u6df1\u7070-M-A0012236","barcode":"","position":1,"option1":"\u6df1\u7070","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":48,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"48","retail_price":"0","available":true,"url":"\/products\/m623103-new-mens-elastic-belt-slim-fit-pants?variant=2c047772-83f8-414b-85d3-f33dd14d665a","available_quantity":18,"options":[{"name":"COLOR","value":"\u6df1\u7070"},{"name":"SIZE","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":17};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
深灰
${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}
`
}()}
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
$48.00
${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":"2c047772-83f8-414b-85d3-f33dd14d665a","product_id":"6c77a212-d310-4422-920a-c92b7e116309","title":"\u6df1\u7070-M","weight_unit":"kg","inventory_quantity":18,"sku":"{M623103220}-\u6df1\u7070-M-A0012236","barcode":"","position":1,"option1":"\u6df1\u7070","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":48,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"48","retail_price":"0","available":true,"url":"\/products\/m623103-new-mens-elastic-belt-slim-fit-pants?variant=2c047772-83f8-414b-85d3-f33dd14d665a","available_quantity":18,"options":[{"name":"COLOR","value":"\u6df1\u7070"},{"name":"SIZE","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":17};
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":"2c047772-83f8-414b-85d3-f33dd14d665a","product_id":"6c77a212-d310-4422-920a-c92b7e116309","title":"\u6df1\u7070-M","weight_unit":"kg","inventory_quantity":18,"sku":"{M623103220}-\u6df1\u7070-M-A0012236","barcode":"","position":1,"option1":"\u6df1\u7070","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":48,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"48","retail_price":"0","available":true,"url":"\/products\/m623103-new-mens-elastic-belt-slim-fit-pants?variant=2c047772-83f8-414b-85d3-f33dd14d665a","available_quantity":18,"options":[{"name":"COLOR","value":"\u6df1\u7070"},{"name":"SIZE","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":17};
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 `
`;
}()}