Check out our collections of bright handcrafted home accents
Carnibelle Gift Card
- Regular Price
- Rs. 10.00
- Sale Price
- Rs. 10.00
- Regular Price
Sold Out
- Unit Price
- per
Tax included.
Shipping calculated at checkout.
document.addEventListener('DOMContentLoaded', function() {
var formBlock = document.querySelector('.product__block--product-form');
if (!formBlock) return;
// Build variant data from Liquid (prices are already formatted with money filter)
var variantsData = [
{
id: "40830599626838",
title: "₹10.00",
price: "Rs. 10.00",
compare_at: "",
available: true
},
{
id: "40830599659606",
title: "₹25.00",
price: "Rs. 25.00",
compare_at: "",
available: true
},
{
id: "40830599692374",
title: "₹50.00",
price: "Rs. 50.00",
compare_at: "",
available: true
},
{
id: "40830599725142",
title: "₹100.00",
price: "Rs. 100.00",
compare_at: "",
available: true
},
{
id: "40830599757910",
title: "₹2,150.00",
price: "Rs. 2,150.00",
compare_at: "",
available: true
}
].reduce(function(a, v){ a[v.id] = v; return a; }, {});
function makeLabel(v){
if (!v) return null;
var t = v.title;
if (v.available) {
t += ' — ' + v.price;
if (v.compare_at && v.compare_at !== v.price) t += ' (' + v.compare_at + ')';
} else {
t += ' — ' + ((window.theme && window.theme.strings && window.theme.strings.soldOut) || 'Sold out');
}
return t;
}
function relabel(){
var select = formBlock.querySelector('select[name="id"]');
if (!select) return;
for (var i = 0; i < select.options.length; i++) {
var opt = select.options[i];
var v = variantsData[opt.value];
var lbl = makeLabel(v);
if (lbl) opt.textContent = lbl;
}
}
// Run after theme initializes the picker
setTimeout(relabel, 0);
// Re-run on common re-renders
var mo = new MutationObserver(function(){ setTimeout(relabel, 0); });
mo.observe(formBlock, { childList: true, subtree: true });
// Some themes fire these custom events; hook them just in case
document.addEventListener('variant:change', relabel);
document.addEventListener('shopify:section:load', relabel);
});