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":8820161904944,"title":"Over the Knee Patent Leather Black Boots","handle":"over-the-knee-patent-leather-black-boots","description":"\u003cp\u003e\u003cstrong\u003eMaterial: PU\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e","published_at":"2023-11-08T17:41:36+05:30","created_at":"2023-11-07T18:17:32+05:30","vendor":"Alamode By Akanksha","type":"Shoes","tags":["Birthday theme","Boots for women","concert theme","FAST","Footwear","india75","Ready to ship","Winter boots for women","Winter Collection","winter collection 2023"],"price":429900,"price_min":429900,"price_max":429900,"available":true,"price_varies":false,"compare_at_price":525000,"compare_at_price_min":525000,"compare_at_price_max":525000,"compare_at_price_varies":false,"variants":[{"id":47086284767536,"title":"37","option1":"37","option2":null,"option3":null,"sku":"SH_OVTK_37","requires_shipping":true,"taxable":true,"featured_image":{"id":43274123182384,"product_id":8820161904944,"position":1,"created_at":"2023-11-07T18:18:12+05:30","updated_at":"2024-12-29T14:19:01+05:30","alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","variant_ids":[47086284767536,47086284800304,47086284833072,47086284865840]},"available":true,"name":"Over the Knee Patent Leather Black Boots - 37","public_title":"37","options":["37"],"price":429900,"weight":200,"compare_at_price":525000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076700464,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":47086284800304,"title":"38","option1":"38","option2":null,"option3":null,"sku":"SH_OVTK_38","requires_shipping":true,"taxable":true,"featured_image":{"id":43274123182384,"product_id":8820161904944,"position":1,"created_at":"2023-11-07T18:18:12+05:30","updated_at":"2024-12-29T14:19:01+05:30","alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","variant_ids":[47086284767536,47086284800304,47086284833072,47086284865840]},"available":false,"name":"Over the Knee Patent Leather Black Boots - 38","public_title":"38","options":["38"],"price":429900,"weight":200,"compare_at_price":525000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076700464,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":47086284833072,"title":"39","option1":"39","option2":null,"option3":null,"sku":"SH_OVTK_39","requires_shipping":true,"taxable":true,"featured_image":{"id":43274123182384,"product_id":8820161904944,"position":1,"created_at":"2023-11-07T18:18:12+05:30","updated_at":"2024-12-29T14:19:01+05:30","alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","variant_ids":[47086284767536,47086284800304,47086284833072,47086284865840]},"available":true,"name":"Over the Knee Patent Leather Black Boots - 39","public_title":"39","options":["39"],"price":429900,"weight":200,"compare_at_price":525000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076700464,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":47086284865840,"title":"40","option1":"40","option2":null,"option3":null,"sku":"SH_OVTK_40","requires_shipping":true,"taxable":true,"featured_image":{"id":43274123182384,"product_id":8820161904944,"position":1,"created_at":"2023-11-07T18:18:12+05:30","updated_at":"2024-12-29T14:19:01+05:30","alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","width":800,"height":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","variant_ids":[47086284767536,47086284800304,47086284833072,47086284865840]},"available":false,"name":"Over the Knee Patent Leather Black Boots - 40","public_title":"40","options":["40"],"price":429900,"weight":200,"compare_at_price":525000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076700464,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","\/\/www.alamodelabel.in\/cdn\/shop\/files\/0C9B0B22-B2B5-46F7-88A2-88B3E8521533.jpg?v=1735462141","\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD801BF3-EC45-47C3-8E47-D576DE77750C.jpg?v=1735462141"],"featured_image":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","options":["Size"],"media":[{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076700464,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/658D999D-7BA6-4961-A9A0-802158994C1D.jpg?v=1735462141","width":800},{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076733232,"position":2,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/0C9B0B22-B2B5-46F7-88A2-88B3E8521533.jpg?v=1735462141"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/0C9B0B22-B2B5-46F7-88A2-88B3E8521533.jpg?v=1735462141","width":800},{"alt":"Over the Knee Patent Leather Black Boots - Alamode By Akanksha","id":35671076766000,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD801BF3-EC45-47C3-8E47-D576DE77750C.jpg?v=1735462141"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/BD801BF3-EC45-47C3-8E47-D576DE77750C.jpg?v=1735462141","width":800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eMaterial: PU\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e"}