MeWaii® Crochet Original Designed Animal Crochet Kit for Beginners with Easy Peasy Yarn
${function() {
const variantData = data.variant || {"id":"1f6c3e94-6bb7-4023-818c-9f0321ed7471","product_id":"0f1ebfd0-dca9-4f01-930e-1a1d02d57d0a","title":"Christmas Dog","weight_unit":"kg","inventory_quantity":0,"sku":"2309363-Dog","barcode":"","position":26,"option1":"Christmas Dog","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ec724834ab51e025e11f856fe167b2bc.jpg","path":"ec724834ab51e025e11f856fe167b2bc.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"15.99","retail_price":"0","available":false,"url":"\/products\/mewaii\u00ae-crochet-original-designed-animal-crochet-kit-for-beginners-with-easy-peasy-yarn-oukj?variant=1f6c3e94-6bb7-4023-818c-9f0321ed7471","available_quantity":0,"options":[{"name":"Style","value":"Christmas Dog"}],"off_ratio":0,"flashsale_info":[],"sales":500};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
les gens regardent ça en ce moment
Style:
Christmas Dog
${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}
`
}()}
Solder
€15.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":"1f6c3e94-6bb7-4023-818c-9f0321ed7471","product_id":"0f1ebfd0-dca9-4f01-930e-1a1d02d57d0a","title":"Christmas Dog","weight_unit":"kg","inventory_quantity":0,"sku":"2309363-Dog","barcode":"","position":26,"option1":"Christmas Dog","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ec724834ab51e025e11f856fe167b2bc.jpg","path":"ec724834ab51e025e11f856fe167b2bc.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"15.99","retail_price":"0","available":false,"url":"\/products\/mewaii\u00ae-crochet-original-designed-animal-crochet-kit-for-beginners-with-easy-peasy-yarn-oukj?variant=1f6c3e94-6bb7-4023-818c-9f0321ed7471","available_quantity":0,"options":[{"name":"Style","value":"Christmas Dog"}],"off_ratio":0,"flashsale_info":[],"sales":500};
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":"1f6c3e94-6bb7-4023-818c-9f0321ed7471","product_id":"0f1ebfd0-dca9-4f01-930e-1a1d02d57d0a","title":"Christmas Dog","weight_unit":"kg","inventory_quantity":0,"sku":"2309363-Dog","barcode":"","position":26,"option1":"Christmas Dog","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ec724834ab51e025e11f856fe167b2bc.jpg","path":"ec724834ab51e025e11f856fe167b2bc.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"15.99","retail_price":"0","available":false,"url":"\/products\/mewaii\u00ae-crochet-original-designed-animal-crochet-kit-for-beginners-with-easy-peasy-yarn-oukj?variant=1f6c3e94-6bb7-4023-818c-9f0321ed7471","available_quantity":0,"options":[{"name":"Style","value":"Christmas Dog"}],"off_ratio":0,"flashsale_info":[],"sales":500};
return `
Inventaire : ${variantData && variantData.available_quantity}
`
}()}