P6001 # Golf Waist Bag Women's Diagonal Cross Sports Waist Bag
${function() {
const variantData = data.variant || {"id":"3f6d1b2c-62d7-4f9a-9df7-6293e3c25a25","product_id":"35e6f1ca-0ac8-4d25-8088-006934a9c880","title":"\u9ed1\u8272","weight_unit":"kg","inventory_quantity":92,"sku":"P6001#P160-\u9ed1\u8272-A0011918","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bfad6367f35760f774a962906738f471.jpg","path":"bfad6367f35760f774a962906738f471.jpg","width":860,"height":1146,"alt":"","aspect_ratio":0.7504363001745201},"wholesale_price":[{"price":33,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"33","retail_price":"0","available":true,"url":"\/products\/p6001-golf-waist-bag-womens-diagonal-cross-sports-waist-bag?variant=3f6d1b2c-62d7-4f9a-9df7-6293e3c25a25","available_quantity":92,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":17};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
颜色:
黑色
${function(){
const optName = "颜色";
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.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":"3f6d1b2c-62d7-4f9a-9df7-6293e3c25a25","product_id":"35e6f1ca-0ac8-4d25-8088-006934a9c880","title":"\u9ed1\u8272","weight_unit":"kg","inventory_quantity":92,"sku":"P6001#P160-\u9ed1\u8272-A0011918","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bfad6367f35760f774a962906738f471.jpg","path":"bfad6367f35760f774a962906738f471.jpg","width":860,"height":1146,"alt":"","aspect_ratio":0.7504363001745201},"wholesale_price":[{"price":33,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"33","retail_price":"0","available":true,"url":"\/products\/p6001-golf-waist-bag-womens-diagonal-cross-sports-waist-bag?variant=3f6d1b2c-62d7-4f9a-9df7-6293e3c25a25","available_quantity":92,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"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":"3f6d1b2c-62d7-4f9a-9df7-6293e3c25a25","product_id":"35e6f1ca-0ac8-4d25-8088-006934a9c880","title":"\u9ed1\u8272","weight_unit":"kg","inventory_quantity":92,"sku":"P6001#P160-\u9ed1\u8272-A0011918","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bfad6367f35760f774a962906738f471.jpg","path":"bfad6367f35760f774a962906738f471.jpg","width":860,"height":1146,"alt":"","aspect_ratio":0.7504363001745201},"wholesale_price":[{"price":33,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"33","retail_price":"0","available":true,"url":"\/products\/p6001-golf-waist-bag-womens-diagonal-cross-sports-waist-bag?variant=3f6d1b2c-62d7-4f9a-9df7-6293e3c25a25","available_quantity":92,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"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 `
`;
}()}