Telescopic Hundred Variations Toy
${function() {
const variantData = data.variant || {"id":"7fcf397b-c155-405c-a77d-2f6eb1bfbcb9","product_id":"fb8247a9-3646-4a50-b9cf-6100629b53cb","title":"Giraffe-1 PC (random color)","weight_unit":"kg","inventory_quantity":995,"sku":"JM1554402-","barcode":"","position":1,"option1":"Giraffe","option2":"1 PC (random color)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0115fd356b3b79b060b1bdafe983d3a9.jpeg","path":"0115fd356b3b79b060b1bdafe983d3a9.jpeg","width":540,"height":540,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/telescopic-suction-cup-giraffe-toys?variant=7fcf397b-c155-405c-a77d-2f6eb1bfbcb9","available_quantity":999999999,"options":[{"name":"Style","value":"Giraffe"},{"name":"\ud83d\udd25BUY MORE SAVE MORE\ud83d\udd25","value":"1 PC (random color)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
Giraffe
${function(){
const optName = "Style";
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}
`
}()}
🔥Buy More Save More🔥:
1 PC (random color)
${function(){
const optName = "🔥BUY MORE SAVE MORE🔥";
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}
`
}()}
Supports return and exchange within 30 days
Add to cart
$9.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":"7fcf397b-c155-405c-a77d-2f6eb1bfbcb9","product_id":"fb8247a9-3646-4a50-b9cf-6100629b53cb","title":"Giraffe-1 PC (random color)","weight_unit":"kg","inventory_quantity":995,"sku":"JM1554402-","barcode":"","position":1,"option1":"Giraffe","option2":"1 PC (random color)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0115fd356b3b79b060b1bdafe983d3a9.jpeg","path":"0115fd356b3b79b060b1bdafe983d3a9.jpeg","width":540,"height":540,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/telescopic-suction-cup-giraffe-toys?variant=7fcf397b-c155-405c-a77d-2f6eb1bfbcb9","available_quantity":999999999,"options":[{"name":"Style","value":"Giraffe"},{"name":"\ud83d\udd25BUY MORE SAVE MORE\ud83d\udd25","value":"1 PC (random color)"}],"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 ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.