GAR BETHE Men's Waist Bag Work Bag Multifunctional Men's Waist Sports Bag
${function() {
const variantData = data.variant || {"id":"7c72e0d4-2a22-4b0f-ad46-f42d93e9f23d","product_id":"14a71aae-d278-4155-b41f-18bed7556904","title":"A","weight_unit":"g","inventory_quantity":647,"sku":"","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/96875193eb1166a59900bfd4540b2256.jpeg","path":"96875193eb1166a59900bfd4540b2256.jpeg","width":803,"height":803,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.9,"min_quantity":1}],"weight":"120","compare_at_price":"21.4","price":"13.9","retail_price":"21.4","available":true,"url":"\/products\/gar-bethe-mens-waist-bag-work-bag-multifunctional-mens-waist-sports-bag-ifzk?variant=7c72e0d4-2a22-4b0f-ad46-f42d93e9f23d","available_quantity":999999999,"options":[{"name":"style","value":"A"}],"off_ratio":35,"flashsale_info":[],"sales":756};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
A
${function(){
const optName = "style";
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
$13.90
${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":"7c72e0d4-2a22-4b0f-ad46-f42d93e9f23d","product_id":"14a71aae-d278-4155-b41f-18bed7556904","title":"A","weight_unit":"g","inventory_quantity":647,"sku":"","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/96875193eb1166a59900bfd4540b2256.jpeg","path":"96875193eb1166a59900bfd4540b2256.jpeg","width":803,"height":803,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.9,"min_quantity":1}],"weight":"120","compare_at_price":"21.4","price":"13.9","retail_price":"21.4","available":true,"url":"\/products\/gar-bethe-mens-waist-bag-work-bag-multifunctional-mens-waist-sports-bag-ifzk?variant=7c72e0d4-2a22-4b0f-ad46-f42d93e9f23d","available_quantity":999999999,"options":[{"name":"style","value":"A"}],"off_ratio":35,"flashsale_info":[],"sales":756};
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.