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();
}
});
});
});
{"id":9473599766832,"title":"Tropez Crochet Holiday Coord - Resortwear","handle":"tropez-crochet-holiday-coord-resortwear","description":"\u003cp\u003e\u003cstrong\u003eMaterial : Crochet\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eStep up your beach game with Alamode by Akanksha swimwear and resort wear collection, designed for the fashion-forward and fun-loving!\u003c\/span\u003e \u003cstrong\u003e\u003cbr\u003e\u003c\/strong\u003e\u003c\/p\u003e","published_at":"2024-06-18T12:54:50+05:30","created_at":"2024-06-12T04:21:45+05:30","vendor":"Alamode By Akanksha","type":"Summer Co-ords","tags":["Beach coord sets for women","beachwear for women","Beige Coord","Co-ord","Crochet coord sets for women","FAST","Holiday Collection","Holiday coord sets for women","india75","Ready to ship","resort wear for women","Sleeveless coord","summer 24","Summer Collection","Summer coords for women","Summer outfits for women","Vacation coord set","Western wear for women"],"price":289900,"price_min":289900,"price_max":289900,"available":true,"price_varies":false,"compare_at_price":345000,"compare_at_price_min":345000,"compare_at_price_max":345000,"compare_at_price_varies":false,"variants":[{"id":48692468384048,"title":"XS","option1":"XS","option2":null,"option3":null,"sku":"SC_TROPE_XS","requires_shipping":true,"taxable":true,"featured_image":{"id":48649325379888,"product_id":9473599766832,"position":2,"created_at":"2025-02-25T22:26:27+05:30","updated_at":"2025-02-25T22:26:27+05:30","alt":null,"width":720,"height":960,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","variant_ids":[48692468384048,48692468416816,48692468449584,48692468515120,48692468547888]},"available":true,"name":"Tropez Crochet Holiday Coord - Resortwear - XS","public_title":"XS","options":["XS"],"price":289900,"weight":200,"compare_at_price":345000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":40247913283888,"position":2,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":48692468449584,"title":"S","option1":"S","option2":null,"option3":null,"sku":"SC_TROPE_S","requires_shipping":true,"taxable":true,"featured_image":{"id":48649325379888,"product_id":9473599766832,"position":2,"created_at":"2025-02-25T22:26:27+05:30","updated_at":"2025-02-25T22:26:27+05:30","alt":null,"width":720,"height":960,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","variant_ids":[48692468384048,48692468416816,48692468449584,48692468515120,48692468547888]},"available":true,"name":"Tropez Crochet Holiday Coord - Resortwear - S","public_title":"S","options":["S"],"price":289900,"weight":200,"compare_at_price":345000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":40247913283888,"position":2,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":48692468515120,"title":"M","option1":"M","option2":null,"option3":null,"sku":"SC_TROPE_M","requires_shipping":true,"taxable":true,"featured_image":{"id":48649325379888,"product_id":9473599766832,"position":2,"created_at":"2025-02-25T22:26:27+05:30","updated_at":"2025-02-25T22:26:27+05:30","alt":null,"width":720,"height":960,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","variant_ids":[48692468384048,48692468416816,48692468449584,48692468515120,48692468547888]},"available":true,"name":"Tropez Crochet Holiday Coord - Resortwear - M","public_title":"M","options":["M"],"price":289900,"weight":200,"compare_at_price":345000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":40247913283888,"position":2,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":48692468547888,"title":"L","option1":"L","option2":null,"option3":null,"sku":"SC_TROPE_L","requires_shipping":true,"taxable":true,"featured_image":{"id":48649325379888,"product_id":9473599766832,"position":2,"created_at":"2025-02-25T22:26:27+05:30","updated_at":"2025-02-25T22:26:27+05:30","alt":null,"width":720,"height":960,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","variant_ids":[48692468384048,48692468416816,48692468449584,48692468515120,48692468547888]},"available":true,"name":"Tropez Crochet Holiday Coord - Resortwear - L","public_title":"L","options":["L"],"price":289900,"weight":200,"compare_at_price":345000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":40247913283888,"position":2,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":48692468416816,"title":"XL","option1":"XL","option2":null,"option3":null,"sku":"SC_TROPE_XL","requires_shipping":true,"taxable":true,"featured_image":{"id":48649325379888,"product_id":9473599766832,"position":2,"created_at":"2025-02-25T22:26:27+05:30","updated_at":"2025-02-25T22:26:27+05:30","alt":null,"width":720,"height":960,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","variant_ids":[48692468384048,48692468416816,48692468449584,48692468515120,48692468547888]},"available":true,"name":"Tropez Crochet Holiday Coord - Resortwear - XL","public_title":"XL","options":["XL"],"price":289900,"weight":200,"compare_at_price":345000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":40247913283888,"position":2,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.alamodelabel.in\/cdn\/shop\/files\/67E979CD-2D52-4FEB-AF60-8CA3069C211C.jpg?v=1740502587","\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","\/\/www.alamodelabel.in\/cdn\/shop\/files\/C2CA454B-04A1-4698-9BD7-F124C9F93588.jpg?v=1740502588","\/\/www.alamodelabel.in\/cdn\/shop\/files\/BB56C2B1-185C-459A-8705-EBBFB944DD2F.jpg?v=1740502588","\/\/www.alamodelabel.in\/cdn\/shop\/files\/7BF08093-9556-412A-BD0B-2C50FF3B5A06.jpg?v=1740502588","\/\/www.alamodelabel.in\/cdn\/shop\/files\/57AE13E9-C0C8-4FB2-8AF3-421FDFA5FB46_7b7f12d3-8c35-437e-a7e0-5f262873c0ed.jpg?v=1740502587","\/\/www.alamodelabel.in\/cdn\/shop\/files\/F81550BC-0465-4DDE-BBEA-B5336D57E3AF_4aeacac3-67fd-4daf-909e-d282409ed09b.jpg?v=1740502587","\/\/www.alamodelabel.in\/cdn\/shop\/files\/1AAFEAE1-DC99-41FD-A375-517C6D7E031D.jpg?v=1740502588","\/\/www.alamodelabel.in\/cdn\/shop\/files\/79F0D7CC-3B4F-4311-9C0B-5DEFF0C08AF0.jpg?v=1740502588","\/\/www.alamodelabel.in\/cdn\/shop\/files\/35C3C112-E8FE-4383-AE8C-C59C593098E9.jpg?v=1740502589"],"featured_image":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/67E979CD-2D52-4FEB-AF60-8CA3069C211C.jpg?v=1740502587","options":["Size"],"media":[{"alt":null,"id":39000620695856,"position":1,"preview_image":{"aspect_ratio":0.8,"height":831,"width":665,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/67E979CD-2D52-4FEB-AF60-8CA3069C211C.jpg?v=1740502587"},"aspect_ratio":0.8,"height":831,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/67E979CD-2D52-4FEB-AF60-8CA3069C211C.jpg?v=1740502587","width":665},{"alt":null,"id":40247913283888,"position":2,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587"},"aspect_ratio":0.75,"height":960,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/E665A760-6421-4271-B5C9-B4A20793C97E_5d6e4ae7-503c-495f-ada3-6086f435e97f.jpg?v=1740502587","width":720},{"alt":null,"id":39000620892464,"position":3,"preview_image":{"aspect_ratio":0.8,"height":986,"width":789,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/C2CA454B-04A1-4698-9BD7-F124C9F93588.jpg?v=1740502588"},"aspect_ratio":0.8,"height":986,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/C2CA454B-04A1-4698-9BD7-F124C9F93588.jpg?v=1740502588","width":789},{"alt":null,"id":38649745998128,"position":4,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BB56C2B1-185C-459A-8705-EBBFB944DD2F.jpg?v=1740502588"},"aspect_ratio":0.75,"height":960,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BB56C2B1-185C-459A-8705-EBBFB944DD2F.jpg?v=1740502588","width":720},{"alt":null,"id":38035841974576,"position":5,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/7BF08093-9556-412A-BD0B-2C50FF3B5A06.jpg?v=1740502588"},"aspect_ratio":0.75,"height":960,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/7BF08093-9556-412A-BD0B-2C50FF3B5A06.jpg?v=1740502588","width":720},{"alt":null,"id":40247913316656,"position":6,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/57AE13E9-C0C8-4FB2-8AF3-421FDFA5FB46_7b7f12d3-8c35-437e-a7e0-5f262873c0ed.jpg?v=1740502587"},"aspect_ratio":0.75,"height":960,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/57AE13E9-C0C8-4FB2-8AF3-421FDFA5FB46_7b7f12d3-8c35-437e-a7e0-5f262873c0ed.jpg?v=1740502587","width":720},{"alt":null,"id":40247913349424,"position":7,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/F81550BC-0465-4DDE-BBEA-B5336D57E3AF_4aeacac3-67fd-4daf-909e-d282409ed09b.jpg?v=1740502587"},"aspect_ratio":0.75,"height":960,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/F81550BC-0465-4DDE-BBEA-B5336D57E3AF_4aeacac3-67fd-4daf-909e-d282409ed09b.jpg?v=1740502587","width":720},{"alt":null,"id":38035842072880,"position":8,"preview_image":{"aspect_ratio":0.75,"height":960,"width":720,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/1AAFEAE1-DC99-41FD-A375-517C6D7E031D.jpg?v=1740502588"},"aspect_ratio":0.75,"height":960,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/1AAFEAE1-DC99-41FD-A375-517C6D7E031D.jpg?v=1740502588","width":720},{"alt":null,"id":39000620990768,"position":9,"preview_image":{"aspect_ratio":0.8,"height":1350,"width":1080,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/79F0D7CC-3B4F-4311-9C0B-5DEFF0C08AF0.jpg?v=1740502588"},"aspect_ratio":0.8,"height":1350,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/79F0D7CC-3B4F-4311-9C0B-5DEFF0C08AF0.jpg?v=1740502588","width":1080},{"alt":null,"id":39000621023536,"position":10,"preview_image":{"aspect_ratio":0.801,"height":1108,"width":887,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/35C3C112-E8FE-4383-AE8C-C59C593098E9.jpg?v=1740502589"},"aspect_ratio":0.801,"height":1108,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/35C3C112-E8FE-4383-AE8C-C59C593098E9.jpg?v=1740502589","width":887}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eMaterial : Crochet\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eStep up your beach game with Alamode by Akanksha swimwear and resort wear collection, designed for the fashion-forward and fun-loving!\u003c\/span\u003e \u003cstrong\u003e\u003cbr\u003e\u003c\/strong\u003e\u003c\/p\u003e"}