Many Caribbean fruit and vegetables are naturally gluten-free. At BIBI's in Barbados, they are turned into delicious, healthy gluten-free crisps. Now available in the UK
UIkit.util.ready(function () {
// 1. Correct the misspelled HTML attribute on-change to a native browser event
jQuery('body').on('change', 'select.uk-select[data-product-id]', function() {
var $select = jQuery(this);
var productId = $select.attr('data-product-id');
var optionId = $select.attr('data-option-id');
var selectedValue = $select.val();
// J2Commerce 6 list targets look for this wrapper form
var formTarget = '#j2commerce-addtocart-form-' + productId;
// 2. Safely trigger the core filter engine
if (typeof doAjaxFilter === 'function') {
doAjaxFilter(selectedValue, productId, optionId, formTarget);
}
});