Valentine's Day Rose Heart 3D Pop Up Greeting Card
${function() {
const variantData = data.variant || {"id":"54968635-c591-42e0-9362-9fadf75e8590","product_id":"bc8286b0-b680-47f5-9085-f52201d8b3de","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"\u5f69\u5370\u5fc3\u5fc3\u76f8\u5370","image":null,"wholesale_price":[{"price":9.9,"min_quantity":1}],"weight":"0.05","compare_at_price":"0","price":"9.9","retail_price":"0","available":true,"url":"\/products\/valentines-day-rose-heart-3d-pop-up-greeting-card?variant=54968635-c591-42e0-9362-9fadf75e8590","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
people are viewing this right now
${function() {
const postageFreeAmount = 80;
const custom_text = "Buy {amount} more to enjoy FREE\nShipping.Or buy any 2 products and get FREE shipping.";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}
Add to cart
$9.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":"54968635-c591-42e0-9362-9fadf75e8590","product_id":"bc8286b0-b680-47f5-9085-f52201d8b3de","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"\u5f69\u5370\u5fc3\u5fc3\u76f8\u5370","image":null,"wholesale_price":[{"price":9.9,"min_quantity":1}],"weight":"0.05","compare_at_price":"0","price":"9.9","retail_price":"0","available":true,"url":"\/products\/valentines-day-rose-heart-3d-pop-up-greeting-card?variant=54968635-c591-42e0-9362-9fadf75e8590","available_quantity":999999999,"options":[],"off_ratio":0,"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.
Free shipping on orders over $80
30 days no reason to return