Направляющие для выравнивания, эксцентриковые зажимы для крепления и поддержки на ЧПУ
${function() {
const variantData = data.variant || {"id":"d49bad09-a5c1-4714-a78e-63820c7b3544","product_id":"9f74e53d-e51c-4cd2-9640-a26c26565ad4","title":"","weight_unit":"kg","inventory_quantity":95,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.39,"min_quantity":1}],"weight":"0","compare_at_price":"3.66","price":"4.39","retail_price":"3.66","available":true,"url":"\/products\/alignment-guides-cam-clamps-for-cnc-mounting-and-support?variant=d49bad09-a5c1-4714-a78e-63820c7b3544","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":3};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Добавить в корзину
$4.39
${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":"d49bad09-a5c1-4714-a78e-63820c7b3544","product_id":"9f74e53d-e51c-4cd2-9640-a26c26565ad4","title":"","weight_unit":"kg","inventory_quantity":95,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.39,"min_quantity":1}],"weight":"0","compare_at_price":"3.66","price":"4.39","retail_price":"3.66","available":true,"url":"\/products\/alignment-guides-cam-clamps-for-cnc-mounting-and-support?variant=d49bad09-a5c1-4714-a78e-63820c7b3544","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":3};
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 ? `
` : ' ';
}
}()}
Купи сейчас
Товара не было в наличии.
Продукт недоступен.
${function(){
const variantData = data.variant || {"id":"d49bad09-a5c1-4714-a78e-63820c7b3544","product_id":"9f74e53d-e51c-4cd2-9640-a26c26565ad4","title":"","weight_unit":"kg","inventory_quantity":95,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.39,"min_quantity":1}],"weight":"0","compare_at_price":"3.66","price":"4.39","retail_price":"3.66","available":true,"url":"\/products\/alignment-guides-cam-clamps-for-cnc-mounting-and-support?variant=d49bad09-a5c1-4714-a78e-63820c7b3544","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":3};
return `
`
}()}