Puzzle Hidden Building Blocks Puzzle Toys To Cultivate Children's Spatial Imagination Ability Parent-Child Interactive BoardGame
people are viewing this right now
${function() {
const minInventory = parseInt('30');
const maxInventory = parseInt('80');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function() {
const variantData = data.variant || {"id":"3b65da25-1951-481e-b6c8-88848dba1b57","product_id":"1aaa2e0e-6803-442f-8bed-1967487a008a","title":"SET A (16 PCS Blocks + 40PCS Cards)","weight_unit":"kg","inventory_quantity":1000,"sku":"LP10268541-1","barcode":"","position":1,"option1":"SET A (16 PCS Blocks + 40PCS Cards)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b22fc58fc5265f91a24d3b32850f8481.jpeg","path":"b22fc58fc5265f91a24d3b32850f8481.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/cbu?variant=3b65da25-1951-481e-b6c8-88848dba1b57","available_quantity":999999999,"options":[{"name":"Type","value":"SET A (16 PCS Blocks + 40PCS Cards)"}],"off_ratio":40,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Type:
SET A (16 PCS Blocks + 40PCS Cards)
${function(){
const optName = "Type";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$29.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":"3b65da25-1951-481e-b6c8-88848dba1b57","product_id":"1aaa2e0e-6803-442f-8bed-1967487a008a","title":"SET A (16 PCS Blocks + 40PCS Cards)","weight_unit":"kg","inventory_quantity":1000,"sku":"LP10268541-1","barcode":"","position":1,"option1":"SET A (16 PCS Blocks + 40PCS Cards)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b22fc58fc5265f91a24d3b32850f8481.jpeg","path":"b22fc58fc5265f91a24d3b32850f8481.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/cbu?variant=3b65da25-1951-481e-b6c8-88848dba1b57","available_quantity":999999999,"options":[{"name":"Type","value":"SET A (16 PCS Blocks + 40PCS Cards)"}],"off_ratio":40,"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 ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"3b65da25-1951-481e-b6c8-88848dba1b57","product_id":"1aaa2e0e-6803-442f-8bed-1967487a008a","title":"SET A (16 PCS Blocks + 40PCS Cards)","weight_unit":"kg","inventory_quantity":1000,"sku":"LP10268541-1","barcode":"","position":1,"option1":"SET A (16 PCS Blocks + 40PCS Cards)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b22fc58fc5265f91a24d3b32850f8481.jpeg","path":"b22fc58fc5265f91a24d3b32850f8481.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/cbu?variant=3b65da25-1951-481e-b6c8-88848dba1b57","available_quantity":999999999,"options":[{"name":"Type","value":"SET A (16 PCS Blocks + 40PCS Cards)"}],"off_ratio":40,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}