Compact – Disposable plastic credit card-sized scoop/scraper combo can be stored with spill kits for easy access. Less Mess – No mop needed! Scraper tears away from the scoop for quick use when needed.
jQuery(document).ready(function($) {
$(document).on('found_variation', 'form.variations_form', function(event, variation) {
$.ajax({
url: myAjaxUrl, // Ensure this variable is defined in your environment
type: 'POST',
data: {
'action': 'get_product_variation_pricing',
'variation_id': variation.variation_id
},
success: function(response) {
if (response.success) {
// Update the pricing table with the new prices
$('#regular-price-notloggedin').html(response.data.regular_price_html);
//$('#role-price-loggedin').html(response.data.role_price_html);
} else {
// Reset the pricing table if no price found
$('#regular-price-loggedin').html('Price not available');
// $('#role-price-loggedin').html('Price not available');
}
},
error: function() {
// Handle errors, such as no response from the server
$('#regular-price-notloggedin').html('Error retrieving price');
//$('#role-price-loggedin').html('Error retrieving price');
}
});
});// Reset prices when the variation is reset
$(document).on('reset_data', function() {
$('#regular-price-notloggedin').html('Please select a variation');
// $('#role-price-loggedin').html('Please select a variation');
});
});
jQuery(document).ready(function($) {
$(document).on('found_variation', 'form.variations_form', function(event, variation) {
$.ajax({
url: myAjaxUrl, // Ensure this variable is defined in your environment
type: 'POST',
data: {
'action': 'get_product_variation_pricing',
'variation_id': variation.variation_id
},
success: function(response) {
if (response.success) {
// Update the pricing table with the new prices
$('#regular-price-loggedin').html(response.data.regular_price_html);
$('#role-price-loggedin').html(response.data.role_price_html);
} else {
// Reset the pricing table if no price found
$('#regular-price-loggedin').html('Price not available');
$('#role-price-loggedin').html('Price not available');
}
},
error: function() {
// Handle errors, such as no response from the server
$('#regular-price-loggedin').html('Error retrieving price');
$('#role-price-loggedin').html('Error retrieving price');
}
});
});// Reset prices when the variation is reset
$(document).on('reset_data', function() {
$('#regular-price-loggedin').html('Please select a variation');
$('#role-price-loggedin').html('Please select a variation');
});
});