3-in-1 Multi-function shovel
${function() {
const variantData = data.variant || {"id":"85b0f440-263e-4f41-a2cd-5907a1594f87","product_id":"8c0c575d-48d0-4fb7-8367-4d1ed956edca","title":"","weight_unit":"lb","inventory_quantity":998,"sku":"25SHOVELPICKAXE","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":49.9,"min_quantity":1}],"weight":"0","compare_at_price":"99.9","price":"49.9","retail_price":"99.9","available":true,"url":"\/products\/pelle-multi-fonctions-3-en-1f788f02d-0f03-4ed2-95f5-414a908e29d6?variant=85b0f440-263e-4f41-a2cd-5907a1594f87","available_quantity":999999999,"options":[],"off_ratio":50,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Add to cart
$49.90
${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":"85b0f440-263e-4f41-a2cd-5907a1594f87","product_id":"8c0c575d-48d0-4fb7-8367-4d1ed956edca","title":"","weight_unit":"lb","inventory_quantity":998,"sku":"25SHOVELPICKAXE","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":49.9,"min_quantity":1}],"weight":"0","compare_at_price":"99.9","price":"49.9","retail_price":"99.9","available":true,"url":"\/products\/pelle-multi-fonctions-3-en-1f788f02d-0f03-4ed2-95f5-414a908e29d6?variant=85b0f440-263e-4f41-a2cd-5907a1594f87","available_quantity":999999999,"options":[],"off_ratio":50,"flashsale_info":[],"sales":1};
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":"85b0f440-263e-4f41-a2cd-5907a1594f87","product_id":"8c0c575d-48d0-4fb7-8367-4d1ed956edca","title":"","weight_unit":"lb","inventory_quantity":998,"sku":"25SHOVELPICKAXE","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":49.9,"min_quantity":1}],"weight":"0","compare_at_price":"99.9","price":"49.9","retail_price":"99.9","available":true,"url":"\/products\/pelle-multi-fonctions-3-en-1f788f02d-0f03-4ed2-95f5-414a908e29d6?variant=85b0f440-263e-4f41-a2cd-5907a1594f87","available_quantity":999999999,"options":[],"off_ratio":50,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
`
}()}