MUX VIE Fashion Trendy Hat Brim Stitching Contrast Color
${function() {
const variantData = data.variant || {"id":"fce4e354-85c9-44a4-b005-b3b9f90614ba","product_id":"25f466b8-5819-4d7b-a955-7fe40eb28b51","title":"A-adjustable","weight_unit":"g","inventory_quantity":615,"sku":"","barcode":"","position":1,"option1":"A","option2":"adjustable","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d8d6ac50bd7fbf048287a43a94b79509.jpeg","path":"d8d6ac50bd7fbf048287a43a94b79509.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.1,"min_quantity":1}],"weight":"120","compare_at_price":"38.2","price":"19.1","retail_price":"38.2","available":true,"url":"\/products\/mux-vie-fashion-trendy-hat-brim-stitching-contrast-color-8z4s?variant=fce4e354-85c9-44a4-b005-b3b9f90614ba","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"Size","value":"adjustable"}],"off_ratio":50,"flashsale_info":[],"sales":450};
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:
adjustable
${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
$19.10
${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":"fce4e354-85c9-44a4-b005-b3b9f90614ba","product_id":"25f466b8-5819-4d7b-a955-7fe40eb28b51","title":"A-adjustable","weight_unit":"g","inventory_quantity":615,"sku":"","barcode":"","position":1,"option1":"A","option2":"adjustable","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d8d6ac50bd7fbf048287a43a94b79509.jpeg","path":"d8d6ac50bd7fbf048287a43a94b79509.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.1,"min_quantity":1}],"weight":"120","compare_at_price":"38.2","price":"19.1","retail_price":"38.2","available":true,"url":"\/products\/mux-vie-fashion-trendy-hat-brim-stitching-contrast-color-8z4s?variant=fce4e354-85c9-44a4-b005-b3b9f90614ba","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"Size","value":"adjustable"}],"off_ratio":50,"flashsale_info":[],"sales":450};
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.