Pilates Ring Circle
${function() {
const variantData = data.variant || {"id":"9dbd6f8f-e34b-461f-9ff4-5c4009e625d7","product_id":"9e8bd27a-9a66-4829-805a-f8c89e633046","title":"Pink","weight_unit":"kg","inventory_quantity":999,"sku":"B074CGTGTJ","barcode":"","position":1,"option1":"Pink","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7bf0ee5f03749b47104591ea9b0757bb.jpeg","path":"7bf0ee5f03749b47104591ea9b0757bb.jpeg","width":1433,"height":1500,"alt":"","aspect_ratio":0.9553333333333334},"wholesale_price":[{"price":1.88,"min_quantity":1}],"weight":"0","compare_at_price":"28","price":"1.88","retail_price":"28","available":true,"url":"\/products\/probody-pilates-ring-circle-magic-circle-pilates-ring-14-inch-for-thigh-workout-yoga-ring-thigh-toner-home-pilates-equipment-for-women-pilates-circle-fitness-equipment-thigh-master-b00sy0te6o?variant=9dbd6f8f-e34b-461f-9ff4-5c4009e625d7","available_quantity":999999999,"options":[{"name":"Color","value":"Pink"}],"off_ratio":93,"flashsale_info":[],"sales":126};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('88');
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 `
`;
}()}
Color:
Pink
${function(){
const optName = "Color";
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
$1.88
${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":"9dbd6f8f-e34b-461f-9ff4-5c4009e625d7","product_id":"9e8bd27a-9a66-4829-805a-f8c89e633046","title":"Pink","weight_unit":"kg","inventory_quantity":999,"sku":"B074CGTGTJ","barcode":"","position":1,"option1":"Pink","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7bf0ee5f03749b47104591ea9b0757bb.jpeg","path":"7bf0ee5f03749b47104591ea9b0757bb.jpeg","width":1433,"height":1500,"alt":"","aspect_ratio":0.9553333333333334},"wholesale_price":[{"price":1.88,"min_quantity":1}],"weight":"0","compare_at_price":"28","price":"1.88","retail_price":"28","available":true,"url":"\/products\/probody-pilates-ring-circle-magic-circle-pilates-ring-14-inch-for-thigh-workout-yoga-ring-thigh-toner-home-pilates-equipment-for-women-pilates-circle-fitness-equipment-thigh-master-b00sy0te6o?variant=9dbd6f8f-e34b-461f-9ff4-5c4009e625d7","available_quantity":999999999,"options":[{"name":"Color","value":"Pink"}],"off_ratio":93,"flashsale_info":[],"sales":126};
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":"9dbd6f8f-e34b-461f-9ff4-5c4009e625d7","product_id":"9e8bd27a-9a66-4829-805a-f8c89e633046","title":"Pink","weight_unit":"kg","inventory_quantity":999,"sku":"B074CGTGTJ","barcode":"","position":1,"option1":"Pink","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7bf0ee5f03749b47104591ea9b0757bb.jpeg","path":"7bf0ee5f03749b47104591ea9b0757bb.jpeg","width":1433,"height":1500,"alt":"","aspect_ratio":0.9553333333333334},"wholesale_price":[{"price":1.88,"min_quantity":1}],"weight":"0","compare_at_price":"28","price":"1.88","retail_price":"28","available":true,"url":"\/products\/probody-pilates-ring-circle-magic-circle-pilates-ring-14-inch-for-thigh-workout-yoga-ring-thigh-toner-home-pilates-equipment-for-women-pilates-circle-fitness-equipment-thigh-master-b00sy0te6o?variant=9dbd6f8f-e34b-461f-9ff4-5c4009e625d7","available_quantity":999999999,"options":[{"name":"Color","value":"Pink"}],"off_ratio":93,"flashsale_info":[],"sales":126};
return `
`
}()}