GAR BETHE Men's Suit Two-piece Set Autumn And Winter New Fashion
${function() {
const variantData = data.variant || {"id":"07e99ffa-2dfb-4067-a56f-e5c22e36db43","product_id":"be891231-63a2-44a6-8556-defc5fabffcb","title":"Black plus velvet-2XL","weight_unit":"g","inventory_quantity":694,"sku":"","barcode":"","position":1,"option1":"Black plus velvet","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/315393b490aea07fd63cd198ab22d43f.jpeg","path":"315393b490aea07fd63cd198ab22d43f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"730","compare_at_price":"45","price":"45","retail_price":"45","available":true,"url":"\/products\/gar-bethe-mens-suit-two-piece-set-autumn-and-winter-new-fashion-iqjy?variant=07e99ffa-2dfb-4067-a56f-e5c22e36db43","available_quantity":999999999,"options":[{"name":"style","value":"Black plus velvet"},{"name":"Size","value":"2XL"}],"off_ratio":0,"flashsale_info":[],"sales":355};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
Black plus velvet
${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}
`
}()}
Size:
2XL
${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
$45.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":"07e99ffa-2dfb-4067-a56f-e5c22e36db43","product_id":"be891231-63a2-44a6-8556-defc5fabffcb","title":"Black plus velvet-2XL","weight_unit":"g","inventory_quantity":694,"sku":"","barcode":"","position":1,"option1":"Black plus velvet","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/315393b490aea07fd63cd198ab22d43f.jpeg","path":"315393b490aea07fd63cd198ab22d43f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"730","compare_at_price":"45","price":"45","retail_price":"45","available":true,"url":"\/products\/gar-bethe-mens-suit-two-piece-set-autumn-and-winter-new-fashion-iqjy?variant=07e99ffa-2dfb-4067-a56f-e5c22e36db43","available_quantity":999999999,"options":[{"name":"style","value":"Black plus velvet"},{"name":"Size","value":"2XL"}],"off_ratio":0,"flashsale_info":[],"sales":355};
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.