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":9639413809456,"title":"Alaine Statement Woolen Sweater with Cherry Detail","handle":"alaine-statement-woolen-sweater-with-cherry-detail","description":"\u003cmeta charset=\"UTF-8\"\u003e\n\u003cp\u003e\u003cstrong\u003eMaterial : Soft Knitted\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e","published_at":"2024-10-30T19:45:02+05:30","created_at":"2024-10-30T13:39:11+05:30","vendor":"Alamode By Akanksha","type":"Sweaters","tags":["Christmas Collection for women","concert theme","Cropped sweaters for women","FAST","full sleeve tops","Full sleeves tops for women","india75","Knitted warm","party collection","ready","Ready to ship","Sweaters","Top","Western wear for women","winter 2024","Winter Collection","Winter sweaters for women","woolen sweaters"],"price":219900,"price_min":219900,"price_max":219900,"available":true,"price_varies":false,"compare_at_price":285000,"compare_at_price_min":285000,"compare_at_price_max":285000,"compare_at_price_varies":false,"variants":[{"id":49204485325104,"title":"Beige \/ XS","option1":"Beige","option2":"XS","option3":null,"sku":"SW_AlAINE_BG_XS","requires_shipping":true,"taxable":true,"featured_image":{"id":47000810225968,"product_id":9639413809456,"position":1,"created_at":"2024-10-30T13:39:30+05:30","updated_at":"2024-12-29T13:53:03+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","variant_ids":[49204485325104,49204485357872,49204485390640,49204485423408,49204485456176]},"available":true,"name":"Alaine Statement Woolen Sweater with Cherry Detail - Beige \/ XS","public_title":"Beige \/ XS","options":["Beige","XS"],"price":219900,"weight":200,"compare_at_price":285000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39098971717936,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49204485357872,"title":"Beige \/ S","option1":"Beige","option2":"S","option3":null,"sku":"SW_AlAINE_BG_S","requires_shipping":true,"taxable":true,"featured_image":{"id":47000810225968,"product_id":9639413809456,"position":1,"created_at":"2024-10-30T13:39:30+05:30","updated_at":"2024-12-29T13:53:03+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","variant_ids":[49204485325104,49204485357872,49204485390640,49204485423408,49204485456176]},"available":true,"name":"Alaine Statement Woolen Sweater with Cherry Detail - Beige \/ S","public_title":"Beige \/ S","options":["Beige","S"],"price":219900,"weight":200,"compare_at_price":285000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39098971717936,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49204485390640,"title":"Beige \/ M","option1":"Beige","option2":"M","option3":null,"sku":"SW_AlAINE_BG_M","requires_shipping":true,"taxable":true,"featured_image":{"id":47000810225968,"product_id":9639413809456,"position":1,"created_at":"2024-10-30T13:39:30+05:30","updated_at":"2024-12-29T13:53:03+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","variant_ids":[49204485325104,49204485357872,49204485390640,49204485423408,49204485456176]},"available":true,"name":"Alaine Statement Woolen Sweater with Cherry Detail - Beige \/ M","public_title":"Beige \/ M","options":["Beige","M"],"price":219900,"weight":200,"compare_at_price":285000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39098971717936,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49204485423408,"title":"Beige \/ L","option1":"Beige","option2":"L","option3":null,"sku":"SW_AlAINE_BG_L","requires_shipping":true,"taxable":true,"featured_image":{"id":47000810225968,"product_id":9639413809456,"position":1,"created_at":"2024-10-30T13:39:30+05:30","updated_at":"2024-12-29T13:53:03+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","variant_ids":[49204485325104,49204485357872,49204485390640,49204485423408,49204485456176]},"available":true,"name":"Alaine Statement Woolen Sweater with Cherry Detail - Beige \/ L","public_title":"Beige \/ L","options":["Beige","L"],"price":219900,"weight":200,"compare_at_price":285000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39098971717936,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":49204485456176,"title":"Beige \/ XL","option1":"Beige","option2":"XL","option3":null,"sku":"SW_AlAINE_BG_XL","requires_shipping":true,"taxable":true,"featured_image":{"id":47000810225968,"product_id":9639413809456,"position":1,"created_at":"2024-10-30T13:39:30+05:30","updated_at":"2024-12-29T13:53:03+05:30","alt":null,"width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","variant_ids":[49204485325104,49204485357872,49204485390640,49204485423408,49204485456176]},"available":true,"name":"Alaine Statement Woolen Sweater with Cherry Detail - Beige \/ XL","public_title":"Beige \/ XL","options":["Beige","XL"],"price":219900,"weight":200,"compare_at_price":285000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":39098971717936,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","\/\/www.alamodelabel.in\/cdn\/shop\/files\/7093C514-4512-4733-9247-6D2147ECE24E.jpg?v=1735460583","\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F25A981-C08A-47E4-8D27-D6EEE20CA713.jpg?v=1735460583","\/\/www.alamodelabel.in\/cdn\/shop\/files\/8FF4EC09-A89D-4B3C-BB55-668C778B45ED.jpg?v=1735460583","\/\/www.alamodelabel.in\/cdn\/shop\/files\/731F06CB-C73F-48F6-901D-DF1A6EF8A0C2.jpg?v=1735460584"],"featured_image":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","options":["Color","Size"],"media":[{"alt":null,"id":39098971717936,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/24CF1F9E-4352-4290-8BD6-DED1C8B3DD11.jpg?v=1735460583","width":800},{"alt":null,"id":39098971816240,"position":2,"preview_image":{"aspect_ratio":0.966,"height":1553,"width":1500,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/7093C514-4512-4733-9247-6D2147ECE24E.jpg?v=1735460583"},"aspect_ratio":0.966,"height":1553,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/7093C514-4512-4733-9247-6D2147ECE24E.jpg?v=1735460583","width":1500},{"alt":null,"id":39098971849008,"position":3,"preview_image":{"aspect_ratio":0.966,"height":1553,"width":1500,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F25A981-C08A-47E4-8D27-D6EEE20CA713.jpg?v=1735460583"},"aspect_ratio":0.966,"height":1553,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F25A981-C08A-47E4-8D27-D6EEE20CA713.jpg?v=1735460583","width":1500},{"alt":null,"id":39098971914544,"position":4,"preview_image":{"aspect_ratio":0.966,"height":1553,"width":1500,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/8FF4EC09-A89D-4B3C-BB55-668C778B45ED.jpg?v=1735460583"},"aspect_ratio":0.966,"height":1553,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/8FF4EC09-A89D-4B3C-BB55-668C778B45ED.jpg?v=1735460583","width":1500},{"alt":null,"id":39098971947312,"position":5,"preview_image":{"aspect_ratio":0.966,"height":1553,"width":1500,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/731F06CB-C73F-48F6-901D-DF1A6EF8A0C2.jpg?v=1735460584"},"aspect_ratio":0.966,"height":1553,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/731F06CB-C73F-48F6-901D-DF1A6EF8A0C2.jpg?v=1735460584","width":1500}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cmeta charset=\"UTF-8\"\u003e\n\u003cp\u003e\u003cstrong\u003eMaterial : Soft Knitted\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e"}