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":8769172275504,"title":"Kemberly Wide Leg Leather Pants","handle":"kemberly-wide-leg-leather-pants","description":"\u003cp\u003e\u003cstrong\u003eMaterial: : PU Leather\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eFree Size- Fits 26-32 Waist Size\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e","published_at":"2024-12-03T00:40:01+05:30","created_at":"2023-10-16T18:30:09+05:30","vendor":"Alamode By Akanksha","type":"Bottomwear","tags":["Black trousers for women","Bottomwear","concert theme","EOSSBO","EOSSMO","Featured","india75","Leather pants","Leather pants for women","pants for women","Ready to ship","Western wear for women","Winter Collection"],"price":192500,"price_min":192500,"price_max":192500,"available":false,"price_varies":false,"compare_at_price":265000,"compare_at_price_min":265000,"compare_at_price_max":265000,"compare_at_price_varies":false,"variants":[{"id":46961121526064,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"BT_KEMB_BL","requires_shipping":true,"taxable":true,"featured_image":{"id":43076160913712,"product_id":8769172275504,"position":1,"created_at":"2023-10-16T18:32:39+05:30","updated_at":"2024-12-29T14:20:48+05:30","alt":"Kemberly Wide Leg Leather Pants - Alamode By Akanksha","width":750,"height":1000,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F48B5C7-A44B-4148-9A9B-F03E266470ED.jpg?v=1735462248","variant_ids":[46961121526064]},"available":false,"name":"Kemberly Wide Leg Leather Pants - Black","public_title":"Black","options":["Black"],"price":192500,"weight":200,"compare_at_price":265000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":"Kemberly Wide Leg Leather Pants - Alamode By Akanksha","id":35469238174000,"position":1,"preview_image":{"aspect_ratio":0.75,"height":1000,"width":750,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F48B5C7-A44B-4148-9A9B-F03E266470ED.jpg?v=1735462248"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":46961121689904,"title":"Brown","option1":"Brown","option2":null,"option3":null,"sku":"BT_KEMB_BR","requires_shipping":true,"taxable":true,"featured_image":{"id":43076161012016,"product_id":8769172275504,"position":2,"created_at":"2023-10-16T18:32:39+05:30","updated_at":"2024-12-29T14:20:48+05:30","alt":"Kemberly Wide Leg Leather Pants - Alamode By Akanksha","width":750,"height":1000,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/11A6A8C1-A20E-41B2-8CE3-7E57A46EFB90.jpg?v=1735462248","variant_ids":[46961121689904]},"available":false,"name":"Kemberly Wide Leg Leather Pants - Brown","public_title":"Brown","options":["Brown"],"price":192500,"weight":200,"compare_at_price":265000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":"Kemberly Wide Leg Leather Pants - Alamode By Akanksha","id":35469238141232,"position":2,"preview_image":{"aspect_ratio":0.75,"height":1000,"width":750,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/11A6A8C1-A20E-41B2-8CE3-7E57A46EFB90.jpg?v=1735462248"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F48B5C7-A44B-4148-9A9B-F03E266470ED.jpg?v=1735462248","\/\/www.alamodelabel.in\/cdn\/shop\/files\/11A6A8C1-A20E-41B2-8CE3-7E57A46EFB90.jpg?v=1735462248"],"featured_image":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F48B5C7-A44B-4148-9A9B-F03E266470ED.jpg?v=1735462248","options":["Color"],"media":[{"alt":"Kemberly Wide Leg Leather Pants - Alamode By Akanksha","id":35469238174000,"position":1,"preview_image":{"aspect_ratio":0.75,"height":1000,"width":750,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F48B5C7-A44B-4148-9A9B-F03E266470ED.jpg?v=1735462248"},"aspect_ratio":0.75,"height":1000,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/3F48B5C7-A44B-4148-9A9B-F03E266470ED.jpg?v=1735462248","width":750},{"alt":"Kemberly Wide Leg Leather Pants - Alamode By Akanksha","id":35469238141232,"position":2,"preview_image":{"aspect_ratio":0.75,"height":1000,"width":750,"src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/11A6A8C1-A20E-41B2-8CE3-7E57A46EFB90.jpg?v=1735462248"},"aspect_ratio":0.75,"height":1000,"media_type":"image","src":"\/\/www.alamodelabel.in\/cdn\/shop\/files\/11A6A8C1-A20E-41B2-8CE3-7E57A46EFB90.jpg?v=1735462248","width":750}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eMaterial: : PU Leather\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eFree Size- Fits 26-32 Waist Size\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e"}