MeWaii® Kit de crochet de crochet crochet pour les débutants avec un fil de poisson facile
${function() {
const variantData = data.variant || {"id":"8a78c3d4-2ef8-4f79-a721-c55ca78640b2","product_id":"8ffb3ae4-dccc-4b6a-8a74-118258fdfc7d","title":"Panda","weight_unit":"kg","inventory_quantity":3,"sku":"MEDO000CRO0679M0","barcode":"","position":1,"option1":"Panda","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/35f4b8085ab8f0ecf82c8a62cb697403.jpg","path":"35f4b8085ab8f0ecf82c8a62cb697403.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/mewaii\u00ae-crochet-panda-crochet-kit-for-beginners-with-easy-peasy-yarn-zkss?variant=8a78c3d4-2ef8-4f79-a721-c55ca78640b2","available_quantity":999999999,"options":[{"name":"Style","value":"Panda"}],"off_ratio":0,"flashsale_info":[],"sales":502};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
les gens regardent ça en ce moment
Style:
Panda
${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 = "Veuillez s\u00e9lectionner un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Ajouter au panier
€25.99
${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":"8a78c3d4-2ef8-4f79-a721-c55ca78640b2","product_id":"8ffb3ae4-dccc-4b6a-8a74-118258fdfc7d","title":"Panda","weight_unit":"kg","inventory_quantity":3,"sku":"MEDO000CRO0679M0","barcode":"","position":1,"option1":"Panda","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/35f4b8085ab8f0ecf82c8a62cb697403.jpg","path":"35f4b8085ab8f0ecf82c8a62cb697403.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/mewaii\u00ae-crochet-panda-crochet-kit-for-beginners-with-easy-peasy-yarn-zkss?variant=8a78c3d4-2ef8-4f79-a721-c55ca78640b2","available_quantity":999999999,"options":[{"name":"Style","value":"Panda"}],"off_ratio":0,"flashsale_info":[],"sales":502};
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 ? `
` : ' ';
}
}()}
Le produit était en rupture de stock.
Le produit n'est pas disponible.
${function(){
const variantData = data.variant || {"id":"8a78c3d4-2ef8-4f79-a721-c55ca78640b2","product_id":"8ffb3ae4-dccc-4b6a-8a74-118258fdfc7d","title":"Panda","weight_unit":"kg","inventory_quantity":3,"sku":"MEDO000CRO0679M0","barcode":"","position":1,"option1":"Panda","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/35f4b8085ab8f0ecf82c8a62cb697403.jpg","path":"35f4b8085ab8f0ecf82c8a62cb697403.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/mewaii\u00ae-crochet-panda-crochet-kit-for-beginners-with-easy-peasy-yarn-zkss?variant=8a78c3d4-2ef8-4f79-a721-c55ca78640b2","available_quantity":999999999,"options":[{"name":"Style","value":"Panda"}],"off_ratio":0,"flashsale_info":[],"sales":502};
return `
Inventaire : ${variantData && variantData.available_quantity}
`
}()}