LLavero de muñeco de ganchillo con capucha roja
${function() {
const variantData = data.variant || {"id":"6b8e787e-b2c8-42ee-a342-319ae5aae045","product_id":"d60ab86f-6138-41ba-b400-5a05581ecd3c","title":"Una oveja 35.-1 pieza","weight_unit":"kg","inventory_quantity":0,"sku":"CY-!136668-C1538N4171","barcode":"","position":1,"option1":"Una oveja 35.","option2":"1 pieza","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/448a42535459d8f1c79a89872c434589.jpeg","path":"448a42535459d8f1c79a89872c434589.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":187.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"21.16","price":"187.99","retail_price":"21.16","available":true,"url":"\/products\/llavero-de-muneco-de-ganchillo-con-capucha-roja?variant=6b8e787e-b2c8-42ee-a342-319ae5aae045","available_quantity":999999999,"options":[{"name":"Color","value":"Una oveja 35."},{"name":"Cifra","value":"1 pieza"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Una oveja 35.
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Por favor seleccione un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Cifra:
1 pieza
${function(){
const optName = "Cifra";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Por favor seleccione un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Añadir a la cesta
MXN$187.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":"6b8e787e-b2c8-42ee-a342-319ae5aae045","product_id":"d60ab86f-6138-41ba-b400-5a05581ecd3c","title":"Una oveja 35.-1 pieza","weight_unit":"kg","inventory_quantity":0,"sku":"CY-!136668-C1538N4171","barcode":"","position":1,"option1":"Una oveja 35.","option2":"1 pieza","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/448a42535459d8f1c79a89872c434589.jpeg","path":"448a42535459d8f1c79a89872c434589.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":187.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"21.16","price":"187.99","retail_price":"21.16","available":true,"url":"\/products\/llavero-de-muneco-de-ganchillo-con-capucha-roja?variant=6b8e787e-b2c8-42ee-a342-319ae5aae045","available_quantity":999999999,"options":[{"name":"Color","value":"Una oveja 35."},{"name":"Cifra","value":"1 pieza"}],"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 ? `
` : ' ';
}
}()}
Compra ahora
El producto estaba agotado.
El producto no está disponible.
Sku : CY-!136668-C1538N4171
Peso : 0.1kg
${function(){
const variantData = data.variant || {"id":"6b8e787e-b2c8-42ee-a342-319ae5aae045","product_id":"d60ab86f-6138-41ba-b400-5a05581ecd3c","title":"Una oveja 35.-1 pieza","weight_unit":"kg","inventory_quantity":0,"sku":"CY-!136668-C1538N4171","barcode":"","position":1,"option1":"Una oveja 35.","option2":"1 pieza","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/448a42535459d8f1c79a89872c434589.jpeg","path":"448a42535459d8f1c79a89872c434589.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":187.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"21.16","price":"187.99","retail_price":"21.16","available":true,"url":"\/products\/llavero-de-muneco-de-ganchillo-con-capucha-roja?variant=6b8e787e-b2c8-42ee-a342-319ae5aae045","available_quantity":999999999,"options":[{"name":"Color","value":"Una oveja 35."},{"name":"Cifra","value":"1 pieza"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Peso : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Código de barras : ${variantData && variantData.barcode}
`
}()}