window.addEventListener('AddItemToCart', function(event) {
const productVariantId = event.detail;
// Perform AJAX request to add item to cart
fetch('/cart/add.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
items: [{
id: productVariantId,
quantity: 1,
}],
sections: 'cart-drawer,cart-icon-bubble'
})
})
.then(response => response.json())
.then(data => {
console.log('Item added to cart:', data);
document.documentElement.dispatchEvent(new CustomEvent('cart:refresh', {
bubbles: true
}));
})
.catch((error) => {
console.error('Error adding item to cart:', error);
});
});
$(document).ready(function() {
// Cache the main add to cart area and sticky add to cart button elements
var $mainAddToCart = $('.Product__Info'); // Replace with your actual selector for the main add to cart area
var $stickyAddToCart = $('#stickycart'); // Replace with your actual selector for the sticky add to cart button
// Initially hide the sticky add to cart button
$stickyAddToCart.hide();
// Function to check visibility of main add to cart area
function checkAddToCartVisibility() {
// Check if the main add to cart area is visible in the viewport
var isVisible = $mainAddToCart.is(':visible') &&
$mainAddToCart.offset().top < $(window).scrollTop() + $(window).height() &&
$mainAddToCart.offset().top + $mainAddToCart.outerHeight() > $(window).scrollTop();
// Toggle sticky add to cart button based on visibility
if (isVisible) {
$stickyAddToCart.hide();
} else {
$stickyAddToCart.show();
}
}
// Run the check on scroll and on load
$(window).on('scroll resize', checkAddToCartVisibility);
checkAddToCartVisibility(); // Initial check
});
$(document).ready(function() {
// Show the first tab content by default
$(".tab-content .tab").hide();
$(".tab-content .tab:first").show();
// Handle click on tab link
$(".tab-links li").click(function(event) {
event.preventDefault();
// Remove active class from all tabs and content
$(".tab-links li").removeClass("active");
$(".tab-content .tab").removeClass("active").hide();
// Add active class to clicked tab and show the corresponding content
$(this).addClass("active");
var target = $(this).find("a").attr("href");
$(target).addClass("active").show();
});
$('.recrecenttab a').on('click', function(){
$('.recrecenttab a').removeClass('active');
$(this).addClass('active');
var isssss = $(this).attr('data_title');
$('.producttab').each(function(){
var isssssss = $(this).attr('data_title');
if(isssssss == isssss){
$(this).show();
// alert(isssss);
}else{
$(this).hide();
}
});
});
});
Get the app now
🎉Save 5% on your first order📱
Looks like you don't have the app installed
DOWNLOAD APP
Get our app now!
Scan the QR code below!
{"id":9655746298160,"title":"Naomi Slimming Premium Fleece Lined Pants","handle":"naomi-slimming-premium-fleece-lined-pants","description":"\u003cp\u003e\u003cstrong\u003eMaterial: : Cotton - Fleece Lined\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e","published_at":"2024-11-19T08:52:23+05:30","created_at":"2024-11-16T17:48:31+05:30","vendor":"Alamode By Akanksha","type":"Bottomwear","tags":["Bottomwear","Christmas Collection for women","FAST","Featured","Fleece leggings","Fleece leggings for women","Fleece outfit for women","HIGH INVENTORY","india75","Ready to ship","Western wear for women","winter 2024","Winter Collection","Work wear for women"],"price":229900,"price_min":229900,"price_max":229900,"available":true,"price_varies":false,"compare_at_price":309900,"compare_at_price_min":309900,"compare_at_price_max":309900,"compare_at_price_varies":false,"variants":[{"id":49257164177712,"title":"Black \/ 24","option1":"Black","option2":"24","option3":null,"sku":"BT_NAOM_BL_24","requires_shipping":true,"taxable":true,"featured_image":{"id":47303248118064,"product_id":9655746298160,"position":1,"created_at":"2024-11-16T17:49:03+05:30","updated_at":"2024-12-29T13:50:13+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","variant_ids":[49257164177712,49257164210480,49257164243248,49257164276016,49257164308784]},"available":true,"name":"Naomi Slimming Premium Fleece Lined Pants - Black \/ 24","public_title":"Black \/ 24","options":["Black","24"],"price":229900,"weight":200,"compare_at_price":309900,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39314612388144,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49257164210480,"title":"Black \/ 26","option1":"Black","option2":"26","option3":null,"sku":"BT_NAOM_BL_26","requires_shipping":true,"taxable":true,"featured_image":{"id":47303248118064,"product_id":9655746298160,"position":1,"created_at":"2024-11-16T17:49:03+05:30","updated_at":"2024-12-29T13:50:13+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","variant_ids":[49257164177712,49257164210480,49257164243248,49257164276016,49257164308784]},"available":true,"name":"Naomi Slimming Premium Fleece Lined Pants - Black \/ 26","public_title":"Black \/ 26","options":["Black","26"],"price":229900,"weight":200,"compare_at_price":309900,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39314612388144,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49257164243248,"title":"Black \/ 28","option1":"Black","option2":"28","option3":null,"sku":"BT_NAOM_BL_28","requires_shipping":true,"taxable":true,"featured_image":{"id":47303248118064,"product_id":9655746298160,"position":1,"created_at":"2024-11-16T17:49:03+05:30","updated_at":"2024-12-29T13:50:13+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","variant_ids":[49257164177712,49257164210480,49257164243248,49257164276016,49257164308784]},"available":true,"name":"Naomi Slimming Premium Fleece Lined Pants - Black \/ 28","public_title":"Black \/ 28","options":["Black","28"],"price":229900,"weight":200,"compare_at_price":309900,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39314612388144,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49257164276016,"title":"Black \/ 30","option1":"Black","option2":"30","option3":null,"sku":"BT_NAOM_BL_30","requires_shipping":true,"taxable":true,"featured_image":{"id":47303248118064,"product_id":9655746298160,"position":1,"created_at":"2024-11-16T17:49:03+05:30","updated_at":"2024-12-29T13:50:13+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","variant_ids":[49257164177712,49257164210480,49257164243248,49257164276016,49257164308784]},"available":true,"name":"Naomi Slimming Premium Fleece Lined Pants - Black \/ 30","public_title":"Black \/ 30","options":["Black","30"],"price":229900,"weight":200,"compare_at_price":309900,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39314612388144,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49257164308784,"title":"Black \/ 32","option1":"Black","option2":"32","option3":null,"sku":"BT_NAOM_BL_32","requires_shipping":true,"taxable":true,"featured_image":{"id":47303248118064,"product_id":9655746298160,"position":1,"created_at":"2024-11-16T17:49:03+05:30","updated_at":"2024-12-29T13:50:13+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","variant_ids":[49257164177712,49257164210480,49257164243248,49257164276016,49257164308784]},"available":true,"name":"Naomi Slimming Premium Fleece Lined Pants - Black \/ 32","public_title":"Black \/ 32","options":["Black","32"],"price":229900,"weight":200,"compare_at_price":309900,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39314612388144,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","\/\/www.alamodelabel.in\/cdn\/shop\/files\/D067BF3A-69CD-41A8-ABCA-14FECF35F81E.jpg?v=1735460414","\/\/www.alamodelabel.in\/cdn\/shop\/files\/35A3DB11-2A6D-46F2-B0C1-C152E2411452.jpg?v=1735460414","\/\/www.alamodelabel.in\/cdn\/shop\/files\/A9B6E034-B601-4A24-9497-4064BFEA1A9B.jpg?v=1735460414"],"featured_image":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","options":["Color","Size"],"media":[{"alt":null,"id":39314612388144,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD41E678-B760-4C3D-A42D-63421D0A9A7F.jpg?v=1735460413","width":800},{"alt":null,"id":39314612420912,"position":2,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/D067BF3A-69CD-41A8-ABCA-14FECF35F81E.jpg?v=1735460414"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/D067BF3A-69CD-41A8-ABCA-14FECF35F81E.jpg?v=1735460414","width":800},{"alt":null,"id":39314612486448,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/35A3DB11-2A6D-46F2-B0C1-C152E2411452.jpg?v=1735460414"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/35A3DB11-2A6D-46F2-B0C1-C152E2411452.jpg?v=1735460414","width":800},{"alt":null,"id":39314612519216,"position":4,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/A9B6E034-B601-4A24-9497-4064BFEA1A9B.jpg?v=1735460414"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/A9B6E034-B601-4A24-9497-4064BFEA1A9B.jpg?v=1735460414","width":800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eMaterial: : Cotton - Fleece Lined\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e"}