MUX VIE Beach Surfing Quick-drying Five-point Pants
${function() {
const variantData = data.variant || {"id":"44f22626-614c-47ae-bb7d-e43be0239f85","product_id":"b77f3309-9103-4fb1-b71e-7caa061e4a11","title":"A-S","weight_unit":"g","inventory_quantity":646,"sku":"","barcode":"","position":1,"option1":"A","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dc996a2da248b7b286dbbe3045d97bc1.jpeg","path":"dc996a2da248b7b286dbbe3045d97bc1.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.7,"min_quantity":1}],"weight":"190","compare_at_price":"33.4","price":"21.7","retail_price":"33.4","available":true,"url":"\/products\/mux-vie-beach-surfing-quick-drying-five-point-pants-80ka?variant=44f22626-614c-47ae-bb7d-e43be0239f85","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"Size","value":"S"}],"off_ratio":35,"flashsale_info":[],"sales":426};
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}
`
}()}
Size:
S
${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
$21.70
${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":"44f22626-614c-47ae-bb7d-e43be0239f85","product_id":"b77f3309-9103-4fb1-b71e-7caa061e4a11","title":"A-S","weight_unit":"g","inventory_quantity":646,"sku":"","barcode":"","position":1,"option1":"A","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dc996a2da248b7b286dbbe3045d97bc1.jpeg","path":"dc996a2da248b7b286dbbe3045d97bc1.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.7,"min_quantity":1}],"weight":"190","compare_at_price":"33.4","price":"21.7","retail_price":"33.4","available":true,"url":"\/products\/mux-vie-beach-surfing-quick-drying-five-point-pants-80ka?variant=44f22626-614c-47ae-bb7d-e43be0239f85","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"Size","value":"S"}],"off_ratio":35,"flashsale_info":[],"sales":426};
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.