The store will not work correctly when cookies are disabled.
Quiet One
We can't find products matching the selection.
');
} else {
$('#product-id-' + product_id + ' .stock').removeClass('available').removeClass('unavailable').addClass('unavailable').html('Out of stock');
}
if (value.customuom) {
$('.customuom_plp_' + product_id).html(value.customuom);
$('.customuom_plp_' + product_id+' select').removeClass('custom_uom').addClass('custom_uom_select');
}
if(uom) {
$('#product-id-' + product_id + ' .custom_uom').val(uom);
}
/* UOM select change event */
$('.customuom_plp_'+product_id+' .custom_uom_select').on('change', function (e) {
var proId = $(this).attr('data-product-id');
$('#product-price-' + proId + ' .price').html($(this).children(":selected").attr("data-price"));
$('#product-id-' + proId +' .custom_uom').val($(this).children(":selected").val());
});
$('.products-list .qty').css('display', 'block');
$('.products-list .price-box').css('display', 'block');
$('.products-list .price-box.price-final_price').css('display', 'block');
$('.products-list button.action.tocart.primary').css('display', 'block');
$('.products-grid .qty').css('display', 'block');
$('.products-list .stock, ' +
'.products-grid .stock').show().css('visibility', 'visible');
$('.products-list .availability, ' +
'.products-grid .availability').show().css('visibility', 'visible');
$('.products-grid .price-box').css('display', 'block');
$('.products-grid .price-box.price-final_price').css('display', 'block');
$('.products-grid button.action.tocart.primary').css('display', 'block');
}
});
}
});
}
clearInterval(interval5);
}
}, 1000);
}
if (productIds.length > 0) {
var customurl = "https://jomardist.com/Catalog/index/price/";
$.ajax({
url: customurl,
type: 'POST',
global: false,
dataType: 'json',
data: {
productIds: productIds.toString()
},
success: function (response) {
$.each(response, function (key, value) {
var product_id = value.id;
var price = value.price;
var qty = value.qty;
var uom = value.uom;
var uomDesc;
if(typeof value.uom_desc !== null){
uomDesc = value.uom_desc.toLowerCase();
}
if (product_id) {
if (price != 0) {
$('#product-price-' + product_id + ' .price').html(price);
$('#product-id-' + product_id + ' .price').html(price);
$('#old-price-' + product_id + '-widget-product-grid .price').html(price);
$('#old-price-' + product_id + '-widget-product-grid').css('display', 'none');
}
$(".product-items.widget-product-grid [data-product-id="+ product_id +"]" ).after('');
if (qty >= 1) {
$('#product-id-' + product_id + ' .stock').removeClass('available').removeClass('unavailable').addClass('available').html('Available In-Stock');
$('#product-id-' + product_id + ' .stock').after('Only ' + qty + ' '+ uomDesc +' Left
');
} else {
$('#product-id-' + product_id + ' .stock').removeClass('available').removeClass('unavailable').addClass('unavailable').html('Out of stock');
}
if (value.customuom) {
$('.customuom_plp_' + product_id).html(value.customuom);
$('.customuom_plp_' + product_id+' select').removeClass('custom_uom').addClass('custom_uom_select');
}
if(uom) {
$('#product-id-' + product_id + ' .custom_uom').val(uom);
}
/* UOM select change event */
$('.customuom_plp_'+product_id+' .custom_uom_select').on('change', function (e) {
var proId = $(this).attr('data-product-id');
$('#product-price-' + proId + ' .price').html($(this).children(":selected").attr("data-price"));
$('#old-price-' + proId + '-final_price .price').html($(this).children(":selected").attr("data-price"));
$('#product-id-' + proId +' .custom_uom').val($(this).children(":selected").val());
});
$('#product-id-' + product_id + ' .erp_qty').val(qty);
}
});
/* Common display changes for all products */
$('.products-list .price-box.price-final_price .price, ' +
'.products-grid .price-box.price-final_price .price').show();
$('.products-list .price-box.price-final_price, ' +
'.products-grid .price-box.price-final_price').css('background-image', 'none');
$('.products-list .stock, ' +
'.products-grid .stock').show().css('visibility', 'visible');
$('.products-list .availability, ' +
'.products-grid .availability').show().css('visibility', 'visible');
$('.products-list .product .actions-primary, ' +
'.products-grid .product .actions-primary').css('background-image', 'none').css('display', 'block');
$('.products-list button.action.tocart.primary, ' +
'.products-list .qty, ' +
'.products-grid button.action.tocart.primary, ' +
'.products-grid .qty').show();
$('.grid.products-grid .product .actions-primary').css('padding', '0').css('width', '100%');
$('.products-grid .price-box.price-final_price').show();
}
});
}
/* Display alert message if 'orderPadOnly' is 'yes' for add to cart button */
/* Display current company in header */
/**
* PDP Page Scripts
*/
/**
* Cart page scripts
*/
/**
* Checkout page scripts
*/
/**
* Register page scripts
*/
});
}); Copyright © Jomar Distributors Inc. All rights reserved.