- Related search terms
- earrings of pink color of roses
- earrings in red rust color
- earrings of pink color of rose
- earrings white mehandi color
- earrings diva colors
' +
'' +
'' +
'
'
);
}
}
function openQuickView(productUrl) {
currentQuickViewUrl = productUrl;
var quickUrl = getQuickViewUrl(productUrl);
$('#page-loader').addClass('active');
createModal();
$.ajax({
url: quickUrl,
type: 'GET',
success: function(res) {
$('#mobile-quickview .mobile-quickview-content').html(res);
$('#mobile-quickview').addClass('active');
isQuickViewOpen = true;
// Magento JS re-init
require([
'Magento_Catalog/js/catalog-add-to-cart'
], function() {
$('[data-role=tocart-form]').catalogAddToCart();
});
// hash set (same as old behavior)
var encodedUrl = encodeURIComponent(productUrl);
window.location.hash = 'quickview=' + encodedUrl;
},
complete: function() {
$('#page-loader').removeClass('active');
}
});
}
function closeQuickView() {
$('#mobile-quickview').removeClass('active');
isQuickViewOpen = false;
currentQuickViewUrl = '';
history.replaceState(null, '', window.location.pathname + window.location.search);
}
// CLICK EVENT
$(document).on('click', '.quickview-trigger', function(e) {
e.preventDefault();
e.stopPropagation();
var productUrl = $(this).data('product-url');
// ab mobile + desktop dono pe modal open hoga
openQuickView(productUrl);
});
// CLOSE EVENTS
$(document).on('click', '.mobile-quickview-overlay', function() {
closeQuickView();
});
$(document).on('keydown', function(e) {
if (e.keyCode === 27 && isQuickViewOpen) {
closeQuickView();
}
});
// HASH CHANGE (keep old feature)
$(window).on('hashchange', function() {
var hash = window.location.hash;
if (hash.includes('quickview=')) {
var encodedUrl = hash.split('quickview=')[1];
var productUrl = decodeURIComponent(encodedUrl);
if (!isQuickViewOpen) {
openQuickView(productUrl);
}
} else if (!hash && isQuickViewOpen) {
closeQuickView();
}
});
// BACK BUTTON SUPPORT
$(window).on('popstate', function() {
if (!window.location.hash && isQuickViewOpen) {
closeQuickView();
}
});
// PAGE LOAD HASH SUPPORT
$(document).ready(function() {
var hash = window.location.hash;
if (hash.includes('quickview=')) {
var encodedUrl = hash.split('quickview=')[1];
var productUrl = decodeURIComponent(encodedUrl);
setTimeout(function() {
openQuickView(productUrl);
}, 300);
}
});
});

Sign In
Registered Customers
Create New Account
Sign In With OTP
Enter phone number.
We will send an otp on this number via SMS
Sign In with OTP
Enter OTP
Sign In With Otp
Sign In For Product Restock Notification
Enter phone number.
We will send an otp on this number via SMS
Verify Otp
Create New Account