-
play_circle_filled
NekroDj – Annoying Track
faceNekroDjlabel_outlineNekroDj, Newstyle, U.S. Hardhouse
jQuery(document).ready(function($) {
// Handle click on add-to-cart button for instant UI update
$(document).on('click', '.add_to_cart_button', function(e) {
var $button = $(this);
var productId = $button.data('product_id');
if (productId) {
// Find the product list item
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Hide the add-to-cart button immediately
$productListItem.find('.add_to_cart_button').closest('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') + // Preserve More Info button
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML') // Preserve Wishlist button
);
}
}
});
// Handle WooCommerce AJAX added_to_cart event for consistency
$(document.body).on('added_to_cart', function(event, fragments, cart_hash, $button) {
var productId = $button.data('product_id');
if (productId) {
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Ensure the add-to-cart button is replaced with the tick icon
$productListItem.find('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') +
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML')
);
}
}
});
});
-
play_circle_filled
NekroDj – Mr Beat
faceNekroDjlabel_outlineNekroDj, Newstyle
jQuery(document).ready(function($) {
// Handle click on add-to-cart button for instant UI update
$(document).on('click', '.add_to_cart_button', function(e) {
var $button = $(this);
var productId = $button.data('product_id');
if (productId) {
// Find the product list item
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Hide the add-to-cart button immediately
$productListItem.find('.add_to_cart_button').closest('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') + // Preserve More Info button
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML') // Preserve Wishlist button
);
}
}
});
// Handle WooCommerce AJAX added_to_cart event for consistency
$(document.body).on('added_to_cart', function(event, fragments, cart_hash, $button) {
var productId = $button.data('product_id');
if (productId) {
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Ensure the add-to-cart button is replaced with the tick icon
$productListItem.find('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') +
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML')
);
}
}
});
});
-
play_circle_filled
NekroDj – Da Booten
faceNekroDjlabel_outlineNekroDj, Newstyle
jQuery(document).ready(function($) {
// Handle click on add-to-cart button for instant UI update
$(document).on('click', '.add_to_cart_button', function(e) {
var $button = $(this);
var productId = $button.data('product_id');
if (productId) {
// Find the product list item
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Hide the add-to-cart button immediately
$productListItem.find('.add_to_cart_button').closest('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') + // Preserve More Info button
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML') // Preserve Wishlist button
);
}
}
});
// Handle WooCommerce AJAX added_to_cart event for consistency
$(document.body).on('added_to_cart', function(event, fragments, cart_hash, $button) {
var productId = $button.data('product_id');
if (productId) {
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Ensure the add-to-cart button is replaced with the tick icon
$productListItem.find('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') +
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML')
);
}
}
});
});
-
play_circle_filled
NekroDj – Louder
faceNekroDjlabel_outlineNekroDj, Newstyle, U.S. Hardhouse
jQuery(document).ready(function($) {
// Handle click on add-to-cart button for instant UI update
$(document).on('click', '.add_to_cart_button', function(e) {
var $button = $(this);
var productId = $button.data('product_id');
if (productId) {
// Find the product list item
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Hide the add-to-cart button immediately
$productListItem.find('.add_to_cart_button').closest('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') + // Preserve More Info button
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML') // Preserve Wishlist button
);
}
}
});
// Handle WooCommerce AJAX added_to_cart event for consistency
$(document.body).on('added_to_cart', function(event, fragments, cart_hash, $button) {
var productId = $button.data('product_id');
if (productId) {
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Ensure the add-to-cart button is replaced with the tick icon
$productListItem.find('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') +
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML')
);
}
}
});
});
-
play_circle_filled
NekroDj – Cage Of Crickets
faceNekroDjlabel_outlineNekroDj, Newstyle
jQuery(document).ready(function($) {
// Handle click on add-to-cart button for instant UI update
$(document).on('click', '.add_to_cart_button', function(e) {
var $button = $(this);
var productId = $button.data('product_id');
if (productId) {
// Find the product list item
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Hide the add-to-cart button immediately
$productListItem.find('.add_to_cart_button').closest('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') + // Preserve More Info button
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML') // Preserve Wishlist button
);
}
}
});
// Handle WooCommerce AJAX added_to_cart event for consistency
$(document.body).on('added_to_cart', function(event, fragments, cart_hash, $button) {
var productId = $button.data('product_id');
if (productId) {
var $productListItem = $('.qtmusicplayer-trackitem[data-product-id="' + productId + '"]');
if ($productListItem.length) {
// Ensure the add-to-cart button is replaced with the tick icon
$productListItem.find('.qt-addtocart > span').html(
'check' +
$productListItem.find('.qt-btn-moreinfo').prop('outerHTML') +
$productListItem.find('.tinv-wraper').closest('span').prop('outerHTML')
);
}
}
});
});