Ingredients
$(document).ready(function(){ function getChecked(){ return $(document).find('[id^="ingredientCheck"]:checked'); } function atLeastOneIsChecked() { let checked = getChecked(); return (checked.length > 0); } $(document).on('click', '.form-check-input', function(){ if(atLeastOneIsChecked()){ $(document).find('.js-add-recipe-to-cart').removeAttr("disabled"); } else { $(document).find('.js-add-recipe-to-cart').attr("disabled", "disabled"); } }); $(document).on('click', '.js-add-recipe-to-cart', function(){ if(atLeastOneIsChecked()){ // get all items let items = getChecked(); let i = 0, itemLen = items.length; for(i;i<itemLen;i++){ let item = $(items[i]).data("product"); pacecore_add_to_cart(item); } } }); });
Directions
- Combine the pepper corns and dried mushrooms in a spice grinder. Pulse until finely ground
- Combine all the ingredients together and use as inspired
- Excellent on any egg preparations as well as creamy pasta sauces and French fries
Ingredient availability varies by location*