Y Model Universal Accessory - front fender
${function() {
const variantData = data.variant || {"id":"00a0bbfd-4ed2-4a5e-8e09-0aa34dfcd01a","product_id":"d47845c6-6aa3-4967-a217-841ae3209f96","title":"Y6 ","weight_unit":"kg","inventory_quantity":0,"sku":"Y6S \u524d\u6321\u6ce5\u677f","barcode":"","position":1,"option1":"Y6 ","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22","retail_price":"0","available":true,"url":"\/products\/y-model-universal-accessory-front-fender?variant=00a0bbfd-4ed2-4a5e-8e09-0aa34dfcd01a","available_quantity":999999999,"options":[{"name":"style","value":"Y6 "}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
Y6
${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
€22.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":"00a0bbfd-4ed2-4a5e-8e09-0aa34dfcd01a","product_id":"d47845c6-6aa3-4967-a217-841ae3209f96","title":"Y6 ","weight_unit":"kg","inventory_quantity":0,"sku":"Y6S \u524d\u6321\u6ce5\u677f","barcode":"","position":1,"option1":"Y6 ","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22","retail_price":"0","available":true,"url":"\/products\/y-model-universal-accessory-front-fender?variant=00a0bbfd-4ed2-4a5e-8e09-0aa34dfcd01a","available_quantity":999999999,"options":[{"name":"style","value":"Y6 "}],"off_ratio":0,"flashsale_info":[],"sales":0};
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":"00a0bbfd-4ed2-4a5e-8e09-0aa34dfcd01a","product_id":"d47845c6-6aa3-4967-a217-841ae3209f96","title":"Y6 ","weight_unit":"kg","inventory_quantity":0,"sku":"Y6S \u524d\u6321\u6ce5\u677f","barcode":"","position":1,"option1":"Y6 ","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22","retail_price":"0","available":true,"url":"\/products\/y-model-universal-accessory-front-fender?variant=00a0bbfd-4ed2-4a5e-8e09-0aa34dfcd01a","available_quantity":999999999,"options":[{"name":"style","value":"Y6 "}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}