How To Make Canna Oil In A Few Easy Steps (2024)

  • May 17, 2024

Share this post with your friends

How To Make Canna Oil In A Few Easy Steps (1)

Whether you are a seasoned cannabis connoisseur or just getting into marijuana, canna-oil is a versatile and convenient way to incorporate cannabis into your favorite culinary creations. In this guide, we’ll cover everything you need to know about making canna oil at home, how to use it in your cooking, and even answer some common questions along the way.

What is Canna-Oil?

Canna oil, also known as cannabis cooking oil, is an infused oil made by heating cannabis flower in a carrier oil to activate the cannabinoids. The resulting product can be used in a variety of recipes to add a medicinal or recreational kick to your dishes. This versatile and flavorful infusion can elevate a wide range of dishes into delicious cannabis-infused creations, adding a potent and enjoyable kick to your favorite snacks, meals, and desserts. While canna-oil is available for purchase at dispensaries, it can also be easily made at home by infusing a carrier oil with cannabis flower. This DIY process allows you to extract valuable compounds such as cannabinoids and terpenes from the plant material and suspend them in the oil. Because it comes from the marijuana plant, canna-oil is vegan and gluten-free, making it friendly to many dietary restrictions. Whether you prefer to purchase it or create it yourself, canna-oil offers a convenient and enjoyable way to incorporate the benefits of cannabis into your culinary creations

How to Choose Your Carrier Oil

When making canna-oil, selecting the appropriate carrier oil is crucial to achieving the desired flavor and consistency in your infused creations. Popular options such as coconut oil, olive oil, and vegetable oil offer unique tastes and textures that can enhance your recipes. Many cannabis enthusiasts choose their oil based on factors like flavor profile and smoke point – for example, olive oil adds a distinct taste but has a lower smoke point compared to avocado oil. High-fat oils like olive oil and coconut oil are ideal for creating canna oil as they effectively bind with cannabinoids like THC and CBD, making them more bioavailable for the body to absorb. The fat-soluble nature of cannabinoids means they need to be paired with lipid-rich oils to maximize their potency and effects. Without sufficient fats, the cannabis compounds may not be properly absorbed by the body, diminishing the overall experience. So, when crafting your canna oil, be mindful of selecting high-fat oils to ensure optimal infusion and enjoyment in your culinary endeavors.

What You Need to Make Cannabis Oil

  • Gather 1/4 ounce of cannabis flower and 1 cup of carrier oil like coconut, olive, or vegetable oil.
  • Use a double boiler or slow cooker to infuse the cannabis flower with the oil.
  • Strain the mixture using a cheesecloth or fine-mesh strainer to separate the plant material from the oil.
  • Store the finished cannabis oil in a glass jar or airtight container.
  • For optimal potency, start with a 1:1 ratio of decarboxylated cannabis flower to cooking oil.
  • Utilize cooking tools such as a non-stick baking sheet, double boiler, mixing bowl, and cheesecloth for the extraction process.
  • Monitor the temperature using a cooking or candy thermometer to ensure proper infusion.
  • Transfer the infused oil to a glass bowl and store it in an airtight container for future use.

DIY Cannabis Cooking Oil Recipe in Few Steps

  1. Step 1: Decarboxylate the Flower
  • To start making your own cannabis cooking oil, begin by decarboxylating the flower. Preheat your oven to 240°F and spread the ground cannabis on a baking sheet. Bake for 40-50 minutes, stirring occasionally for even heating.
  1. Step 2: Prepare the Double Boiler
  • In a double boiler, heat the carrier oil on low heat. Make sure the oil does not boil or burn.
  1. Step 3: Add Cannabis
  • Add the decarboxylated cannabis to the heated oil and stir to combine. Simmer the mixture on low heat for 2-4 hours, stirring occasionally.
  1. Step 4: Heat
  • Keep the mixture at a low heat to infuse the cannabis into the oil. The longer you simmer, the more potent the oil will be.
  1. Step 5: Strain & Store the Oil
  • After the infusion process is complete, strain the oil using a cheesecloth or fine-mesh strainer, ensuring that no plant material remains in the final product. This step is crucial for achieving a smooth and clear cannabis cooking oil. Once strained, transfer the finished canna-oil into a glass jar or airtight container. Store it in a cool, dark place to preserve its potency and flavor for future use.

How to Use Cannabis Cooking Oil

Cannabis cooking oil opens up a world of possibilities in the kitchen. From adding a teaspoon to your morning smoothie for a medicated boost to using it as a base for salad dressings or sautés, the options are endless. Whether you’re baking sweet treats or cooking savory dishes, incorporating canna-oil adds a unique twist to your recipes. And if you’re feeling adventurous, you can even use it as a massage oil or lubricant. With cannabis cooking oil, you can elevate your culinary creations and explore the many ways to enjoy the benefits of this versatile ingredient.

How to Store Your Cannabis Oil

To preserve the potency of your canna-oil, store it in a cool, dark place away from sunlight and heat. It can be kept for several months, so make a batch ahead of time to have on hand for all your cooking needs.

Answering FAQs about Cannabis Cooking Oil

  1. Can I freeze canna oil?
  • Yes, you can freeze canna oil without compromising its quality or potency. Freezing cannabis oil helps prevent the fats from going rancid, ensuring its longevity and effectiveness.
  1. Should I use cannabutter or canna oil?
  • The decision between using cannabutter or canna oil depends on personal preference and the specific recipe you are preparing. Cannabutter is best for recipes that require butter, while canna oil is ideal for dishes that call for oil. Feel free to experiment to find the option that works best for your culinary needs.
  1. Do I need to decarb the flower before adding it to the oil?
  • Yes, decarboxylation is a crucial step in making canna oil. By decarbing the cannabis flower, you activate the cannabinoids, ensuring that the oil will have the desired effects when consumed.
  1. Is canna oil the same as CBD oil?
  • No, canna oil is not the same as CBD oil. Canna oil contains a full spectrum of cannabinoids, including THC, while CBD oil is derived from hemp and primarily contains cannabidiol (CBD). To experience the psychoactive effects associated with marijuana, you will need a canna oil that contains THC.

In conclusion

Making canna-oil at home is a simple and enjoyable process that opens up a world of culinary possibilities. By infusing your favorite dishes with your preferred strain of cannabis, you can elevate your cooking and enjoy the benefits of this versatile ingredient. If you prefer not to make your own canna-oil, you can always find it or pre-made marijuana edibles at your local dispensary. Don’t want to wait to start trying cannabis cooking oil in your recipes? Chat with your budtender to learn more and find the best cannabis oil for you. Why not give it a try and enjoy the flavors and benefits that canna-oil has to offer.

Company

' );}if (jQuery('.loader-d').length === 0) {jQuery('#mini-cart-div').replaceWith( '

' );}jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'get_cart_ajax_action', }, success: function(response) {jQuery( ".cc-ppop" ).remove( '.loader-d' );jQuery('.my-mini-cart').find('#mini-cart-div').replaceWith(response); }, error: function(response) { //console.log(response) } })}); jQuery(document).on('click', '.item-qty-add .minusC', function() {console.log('.item-qty-add .minusC');jQuery('.plp-item-footer').find('.cart-mini').not(this).addClass('disabled_cart_mini'); var prod_kind = jQuery(this).parents('.plp-item').attr('data-item-kind');var product_weight = jQuery(this).parents('.item-wrap').attr('data-weight');var quantity;console.log('product_weight: ' + product_weight);if(product_weight) {switch(product_weight) {case 'one_gram':quantity = 1break;case 'two_gram':quantity = 2break;case 'four_gram':quantity = 4break;case 'eight_gram':quantity = 8break;default:quantity = 1}}else {quantity = 1} var product_data = { prod_id: jQuery(this).parents('.item-wrap').find('.prod_id').val(), store_id: jQuery(this).parents('.item-wrap').find('.store_id').val(), price_type: jQuery(this).parents('.item-wrap').find('.price_type').val(), } // console.log('test data:', product_data); jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'decrease_cart_ajax_action', 'prod_id': product_data.prod_id, 'price_type': product_data.price_type,'quantity': quantity, }, success: function(response) { //jQuery('#mini-cart-div').replaceWith(response); badge_update(); if(badge_update() == 'badge updated') { jQuery('.plp-item-footer').find('.cart-mini').removeClass('disabled_cart_mini'); } jQuery('.plp-item.prod-id-'+product_data.prod_id).find('.item-qty-add.'+product_data.price_type).find('.quantity').show(); jQuery('.plp-item.prod-id-'+product_data.prod_id).find('.item-qty-add.'+product_data.price_type).find('.slider-cart-loader').hide(); if(badge_update() == 'badge updated') { } // console.log(response); }, error: function(response) { // console.log(response) } }) }); function addfxn(selector) { console.log('addfxn'); jQuery('.plp-item-footer').find('.cart-mini').not(selector).addClass('disabled_cart_mini'); jQuery('.plp-item-footer').find('.minusC').addClass('stop'); jQuery('.plp-item-footer').find('.minusC').addClass('prod-in-cart'); jQuery('.plp-item-footer').find('.plusC').addClass('stop'); jQuery('.plp-item-footer').find('.plusC').addClass('prod-in-cart'); var notThis = $(selector).parents('.plp-item'); jQuery('.plp-item').not(selector).addClass('disabled_cart_mini'); selector.css('display', 'none') selector.parents('.plp-item-footer').find('.minusC').addClass('stop') selector.parents('.plp-item-footer').find('.minusC').addClass('prod-in-cart') selector.parents('.plp-item-footer').find('.plusC').addClass('stop') selector.parents('.plp-item-footer').find('.plusC').addClass('prod-in-cart') selector.siblings('.add-cart-loader').show() var prod_id = selector.parents('.plp-item-footer').find('.prod_id').val() var price_type = selector.parents('.plp-item-footer').find('.price_type').val() var quantity = selector.parents('.plp-item-footer').find('.quantity').val() var store_id = selector.parents('.plp-item-footer').find('.store_id').val() if (selector.hasClass('product_in_cart')) { var action_type = 'save'; } else { var action_type = 'add'; } jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'add_to_cart_ajax_action', 'prod_id': prod_id, 'quantity': quantity, 'store_id': store_id, 'price_type': price_type, 'action_type': action_type, }, success: function(response) { //jQuery('#mini-cart-div').replaceWith(response); badge_update(); jQuery('.addCart-btn').each(function() { jQuery(this).removeClass('cart_btn_disabled'); }); if(badge_update() == 'badge updated') { jQuery('.plp-item-footer').find('.cart-mini').not(this).removeClass('disabled_cart_mini'); } // selector.parents('.plp-item-footer').find('.minusC').removeClass('prod-in-cart'); // selector.parents('.plp-item-footer').find('.plusC').removeClass('prod-in-cart'); selector.siblings('.cart-added').removeClass('added-cart-inactive'); // } if(jQuery('.plp-item').hasClass('disabled_cart_mini')) { jQuery('.plp-item').removeClass('disabled_cart_mini'); } if (selector.parents('.my_flower_category').length > 0) { setTimeout(() => { selector.parent('.plp-item-footer').css('display', 'none') selector.parent().siblings('.item-view').removeClass('hide1') var btn_text = selector.parent().siblings('.product-btn').find('a').text() == 'select options' ? 'Details' : 'select options'; selector.parent().siblings('.product-btn').find('a').text(btn_text).attr('class', 'proceed_to_next') }, 1000); } jQuery('.plp-item-footer').find('.minusC').removeClass('prod-in-cart'); jQuery('.plp-item-footer').find('.plusC').removeClass('prod-in-cart'); selector.parents('.plp-item-footer').find('.minusC').removeClass('prod-in-cart'); selector.parents('.plp-item-footer').find('.plusC').removeClass('prod-in-cart'); setTimeout(() => { // jQuery('.plp-item-footer').find('.minusC').addClass('prod-in-cart'); // jQuery('.plp-item-footer').find('.plusC').addClass('prod-in-cart'); selector.parents('.plp-item-footer').find('.minusC').removeClass('stop'); selector.parents('.plp-item-footer').find('.plusC').removeClass('stop'); jQuery('.plp-item-footer').find('.minusC').removeClass('stop'); jQuery('.plp-item-footer').find('.plusC').removeClass('stop'); }, 800); // console.log(response) selector.siblings('.add-cart-loader').hide(); }, error: function(response) { jQuery('.addCart-btn').each(function() { jQuery(this).removeClass('cart_btn_disabled'); }); selector.siblings('.add-cart-loader').hide() selector.parents('.plp-item-footer').find('.minusC').removeClass('stop') selector.parents('.plp-item-footer').find('.plusC').removeClass('stop') jQuery('.plp-item-footer').find('.minusC').removeClass('stop'); jQuery('.plp-item-footer').find('.minusC').removeClass('prod-in-cart'); jQuery('.plp-item-footer').find('.plusC').removeClass('stop'); jQuery('.plp-item-footer').find('.plusC').removeClass('prod-in-cart'); // console.log(response) } }) } function badge_update() { console.log("rocket"); if(!jQuery('html').hasClass('w3_js') && jQuery('html').hasClass('w3_start')){setTimeout(function(){badge_update();},500); } jQuery.ajax({ type: "POST", async: false, url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'update_cart_badge_ajax_action', }, success: function(response) { jQuery('.cart-badge').replaceWith(response); console.log("rocket1",response); } }) return 'badge updated'; } jQuery(document).on('click', '.edit-cart', function() { jQuery(this).siblings('.edit-cart-div').show(); }) jQuery(document).on('click', '.save-cart', function() { console.log('.save-cart'); // jQuery(this).siblings('.edit-cart-div').show(); var prod_id = jQuery(this).siblings('.edit-cart-id').val() var store_id = jQuery(this).siblings('.edit-cart-store-id').val() var price_type = jQuery(this).siblings('.edit-cart-price-type').val() var prod_kind = jQuery(this).siblings('.edit-cart-kind').val() var quantity = jQuery(this).siblings('.edit-cart-input').val()var max_cart_quantity = jQuery(this).siblings('.max_cart_quantity').val(); if(prod_kind == 'concentrates' || prod_kind == 'extract') { if(quantity.trim() > 8) { jQuery(this).parents('.my-cart-item').find('.error-span').text('Concentrates have maximum daily purchase limit of 8 grams.').show() return false; } } if (quantity.trim() == null || quantity.trim() == '') { jQuery(this).parents('.my-cart-item').find('.error-span').text('Quantity is required').show() return false; } else { jQuery(this).parents('.my-cart-item').find('.error-span').text('').hide() jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'add_to_cart_ajax_action_for_mini', 'prod_id': prod_id, 'quantity': quantity, 'store_id': store_id, 'price_type': price_type, 'action_type': 'save', }, success: function(response) { jQuery('#mini-cart-div').replaceWith(response); if (jQuery(document).find('.plp-item-body').length > 0) { jQuery('.plp-item-body').find('.prod_id').each(function() { if (jQuery(this).val() == prod_id) { jQuery(this).parents('.plp-item-footer').find('.quantity.'+price_type).val(quantity); } }); } if (jQuery(document).find('.one-product-details').length > 0) { jQuery('.one-product-details').find('.quantity').val(quantity); } if (jQuery(document).find('.product_box_ui').length > 0) {jQuery('.prod-id-'+prod_id).find('.quantity').val(quantity);} jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'update_cart_badge_ajax_action', }, success: function(response) { jQuery('.cart-badge').replaceWith(response); } }) // console.log(response) }, error: function(response) { console.log(response) } }) } }) // local cart sess jQuery(document).on('click', '.remove-cart', function() { console.log('.remove-cart'); var id = jQuery(this).parents('.my-cart-item').find('.rate').attr('id'); var prod_id = jQuery(this).parents('.my-cart-item').find('.rate').attr('data-obj-id'); var price_type = jQuery(this).parents('.my-cart-item').find('.rate').attr('data-obj-price-type'); var product_name = jQuery(this).parents('.my-cart-item').find('.rate').attr('data-obj-prod-name'); jQuery(this).parents('.cart-wrapper').hide(); jQuery(this).parents('#mini-cart-div').find('#nav-tabContent').find('#nav-home').hide() jQuery(this).parents('#mini-cart-div').find('#nav-tabContent').css("padding", "3em 0"); jQuery(this).parents('#mini-cart-div').find('#nav-tabContent').append('

'); //jQuery(this).parents('#mini-cart-div').addClass('loader-d'); jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'remove_from_cart_ajax_action', 'id': id, 'price_type': price_type, }, success: function(response) { jQuery(this).parents('.my-cart-item').remove(); jQuery(this).parents('.cart-wrapper').show(); jQuery('#mini-cart-div').replaceWith(response); jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'update_cart_badge_ajax_action', }, success: function(response) { jQuery('.cart-badge').replaceWith(response); } })if (window.location.pathname == '/checkout/') { location.reload(); } //janeroots cart sess if (jQuery(document).find('.filter_whats_hot').length > 0) { if (jQuery('.filter_whats_hot').parent().hasClass('pdp-section')) {var selector = jQuery('.filter_whats_hot:first')var filter_type = selector.val();var filter_data = selector.attr('data-value');var filter_prod_category = selector.attr('data-prod-category');selector.trigger('click', [filter_type, 'toggle-button1', filter_data, filter_prod_category]);// jQuery('.filter_whats_hot:first').trigger('click', ['related', 'toggle-button1']); } else if (jQuery('.filter_whats_hot').parent().hasClass('homepage-section')) { var selector = jQuery('.filter_whats_hot:first') var filter_type = selector.val(); var filter_data = selector.attr('data-value'); selector.trigger('click', [filter_type, 'toggle-button1', filter_data]); } } // console.log(prod_id); if (jQuery(document).find('.plp-item-wrapper').length > 0) { jQuery('.plp-item-wrapper').find('.prod_id').each(function() { if (jQuery(this).val() == prod_id) { // console.log(jQuery(this).parents('.plp-item-footer').find('.item-qty-add.'+price_type)); //console.log(jQuery(this).parents('.plp-item-footer').find('.quantity').val()); jQuery(this).parents('.plp-item-footer').find('.quantity').val('1'); // jQuery(this).parents('.plp-item-footer').find('.quantity').val('1'); jQuery(this).siblings('.cart-added').addClass('added-cart-inactive'); jQuery(this).parents('.plp-item-footer').find('.update-cart').show(); jQuery(this).parents('.plp-item-footer').find('.item-qty-add.'+price_type).removeClass('added'); jQuery(this).parents('.plp-item-footer').find('button.addCart-btn').show(); jQuery(this).parents('.plp-item-footer').find('.cart-added').hide(); } }); } if (jQuery(document).find('.one-product-details').length > 0) { jQuery('.one-product-details').children('.prod_id_' + prod_id).find('.quantity').val('1'); jQuery('.one-product-details').children('.prod_id_' + prod_id).find('.cart-added').addClass('added-cart-inactive'); jQuery('.one-product-details').children('.prod_id_' + prod_id).find('.addcart-btn').show(); } // console.log(response) }, error: function(response) { console.log(response) } }) }) jQuery(document).on('click', '.filter_whats_hot', function(event, arg1 = null, arg2 = null, arg3 = null, arg4 = null) { console.log('arg1:' + arg1 + ' arg2:' + arg2 + ' arg3:' + arg3 + ' arg4:' + arg4); if (arg1 == null) { var filter_type = jQuery(this).val(); var filter_data = jQuery(this).attr('data-value');var filter_prod_category = jQuery(this).attr('data-prod-category'); var id = jQuery(this).attr('id'); } else { var filter_type = arg1; var filter_data = arg3;var filter_prod_category = arg4; // used in PDP var id = arg2; } console.log('filter_type:' + filter_type + ' filter_data:' + filter_data + ' filter_prod_category:' + filter_prod_category + ' id:' + id); var janeStoreId = JSON.parse('"4280"') if (typeof(janeStoreId) == undefined || janeStoreId == null || janeStoreId == '') { janeStoreId = 1766; }// console.log(filter_data); // if (filter_type == 'best_selling') {// var filter = '(root_types:"' + filter_data + '")';// } if (filter_type == 'best_selling') { var filter = filter_data; }else if (filter_type == 'new') { var filter = filter_data; }else if (filter_type == 'sale') { var filter = '(root_types:sale OR applicable_special_types:bulk OR applicable_special_types:bundle)'; } else if (filter_type == 'staff_picks') { var filter = '(root_types:"' + filter_data + '")'; // var filter = '(root_types:"staff_picks-' + janeStoreId + '")'; } // else if (filter_type == 'new') {// var filter = '(root_types:"' + filter_data + '")';// } else if (filter_type == 'popular') { var filter = '(root_types:"best_selling")'; } else if (filter_type == 'related') { var filter = '(category:"' + filter_data + '")'; } else if (filter_type == 'surprise') { var filter = '(root_types:sale OR applicable_special_types:bulk OR applicable_special_types:bundle)'; } else { var filter = ''; } jQuery('.whats-hot-loader').show(); jQuery('.plp-item-body').html(''); if (jQuery('#pagename').length > 0) { var path = '/'; } else { var path = 'pdp'; } jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'custom_filter_ajax_action', 'section': 'homepage-whats-hot', 'filter': filter, 'path': path, 'filter_prod_category': filter_prod_category, }, success: function(response) { jQuery('#filter_result').replaceWith(response) jQuery('#filter_result').find('.filter_whats_hot').removeClass('active') jQuery('#filter_result').find('#' + id).addClass('active') // product-single-main // jQuery(".add-slick-slider").each(function() { if (jQuery(this).find('.no-product-search').length < 1) { jQuery('.slide-footer').show(); jQuery(this).not('.slick-initialized').slick({ rows: 2, swipeToSlide: true, dots: true, infinite: false, // cssEase: 'linear', // slidesToShow: 4, // infinite: true, // slidesToScroll: 1, // // autoplay: true, // autoplaySpeed: 2000, // dots: true, arrows: true, responsive: [{ breakpoint: 2400, settings: { rows: 2,slidesPerRow: 4,swipeToSlide: true, } }, { breakpoint: 1500, settings: { rows: 2,slidesPerRow: 4,swipeToSlide: true, } }, { breakpoint: 1200, settings: { rows: 2,slidesPerRow: 4,swipeToSlide: true, } }, { breakpoint: 900, settings: { rows: 2,slidesPerRow: 1,swipeToSlide: true, } }, // { // breakpoint: 780, // settings: { // slidesToShow: 2, // slidesToScroll: 1, // arrows: false, // dots: true, // } // }, { breakpoint: 600, settings: { rows: 2,slidesPerRow: 1,swipeToSlide: true, arrows: false, dots: true, variableWidth: true, infinite: true, } } ] }); } })var $swiperSelector1 = jQuery('.plp-swiper-home');$swiperSelector1.each(function(index) { var $this = $(this); $this.addClass('swiper-slider-' + index); var swiper1 = new Swiper('.swiper-slider-' + index, { direction: 'horizontal', loop: false, freeMode: false, spaceBetween: 0, breakpoints: { 1920: { slidesPerView: 3, }, 992: { slidesPerView: 3,// spaceBetween: 13, }, 320: { slidesPerView: 2.7,spaceBetween: 0, } }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }, scrollbar: { el: '.swiper-scrollbar', draggable: true, dragSize: 50 } });}); if (!response.includes("no-product-search")) { jQuery(".plp-item-body").not('.slick-initialized').slick({ rows: 2, infinite: false, // autoplay: true, autoplaySpeed: 2000, dots: true, arrows: true, responsive: [{ breakpoint: 2400, settings: { rows: 2,slidesPerRow: 4, } }, { breakpoint: 1500, settings: { rows: 2,slidesPerRow: 4, } }, { breakpoint: 1200, settings: { rows: 2,slidesPerRow: 3, } }, { breakpoint: 900, settings: { rows: 2,slidesPerRow: 1, } }, { breakpoint: 770, settings: { rows: 2,slidesPerRow: 1, } }, { breakpoint: 767, settings: { rows: 2,slidesPerRow: 1, variableWidth: true, infinite: true, } } ] }); } jQuery('.whats-hot-loader').hide(); }, error: function(response) { jQuery('.whats-hot-loader').hide(); } }) }) jQuery(document).on('click', '.filter_deals_promos', function() { var filter_type = jQuery(this).attr('data_type'); jQuery('.deals-promos-loader').show() jQuery('#deals-promos-filter-result').html('') jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'custom_filter_ajax_action', 'section': 'homepage-deals-promos', 'filter': filter_type, }, success: function(response) { // console.log(response) jQuery('.deals-slides').slick('unslick'); jQuery('#deals-promos-filter-result').replaceWith(response) jQuery('#deals-promos-filter-result').find('.filter_deals_promos').removeClass('toggle-btn') jQuery('#deals-promos-filter-result').find('#' + filter_type).addClass('toggle-btn') jQuery(".deals-slides").slick({rows: 2, infinite: false,swipeToSlide: true,waitForAnimate: false, // autoplay: true, autoplaySpeed: 2000, dots: true, arrows: true, responsive: [{ breakpoint: 2400, settings: { slidesPerRow: 4,rows: 2,swipeToSlide: true,waitForAnimate: false, } }, { breakpoint: 1500, settings: { slidesPerRow: 4,rows: 2,swipeToSlide: true,waitForAnimate: false, } }, { breakpoint: 1200, settings: { slidesPerRow: 4,rows: 2,swipeToSlide: true,waitForAnimate: false, } }, { breakpoint: 900, settings: { rows: 2,slidesPerRow: 1,swipeToSlide: true,waitForAnimate: false, dots: true, } }, { breakpoint: 770, settings: { rows: 2,slidesPerRow: 1,swipeToSlide: true,waitForAnimate: false, arrows: false, dots: true, variableWidth: true, } }, { breakpoint: 600, settings: { rows: 2,slidesPerRow: 1,swipeToSlide: true,waitForAnimate: false, arrows: false, dots: true, infinite: false, variableWidth: true, // centerMode: true, } } ] }); jQuery('.deals-promos-loader').hide() }, error: function(response) { jQuery('.deals-promos-loader').hide() } }) }) // header shop menu start jQuery('.panel').hide(); jQuery(document).on('click', '.accordion', function() { var accordion_siblings = jQuery(this).parents('.shop-accordn').siblings('.shop-accordn') accordion_siblings.each(function() { jQuery(this).find('.accordion').removeClass('active') }) jQuery(this).toggleClass("active"); jQuery('.panel').slideUp(); jQuery(this).next('.panel').show(); }); jQuery(document).on('click', '.cate', function() { if (!jQuery(this).hasClass('toggle-btn')) { jQuery('.cate').removeClass('toggle-btn') jQuery(this).addClass('toggle-btn'); } }) jQuery(document).on('click', '.shop_menu_filter', function() { var menu_filter = jQuery(this).attr('data-value'); var id = jQuery(this).attr('id'); jQuery('.shop-menu-loader').show(); jQuery('#header_shop_filter_div').find('.shop-accordn').html(''); jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'custom_filter_ajax_action', 'section': 'header-shop-filter', 'filter': menu_filter, }, success: function(response) { jQuery('#header_shop_filter_div').replaceWith(response) if (menu_filter == 'brand') { jQuery('.brand-submit').show() } else { jQuery('.brand-submit').hide() } jQuery('.panel').hide(); jQuery('#header_shop_filter_div').find('.cate').removeClass('toggle-btn') jQuery('#header_shop_filter_div').find('#' + id).addClass('toggle-btn') jQuery('.shop-menu-loader').hide(); }, error: function(response) { jQuery('.shop-menu-loader').hide(); } }) }) // header shop menu end function plp_filters() { var filter_array = []; // var featured=[]; var featured = ''; var special_filter = decodeURIComponent(jQuery('#special_filter').val()); special_filter=special_filter.replace(/\+/g,' '); if (special_filter) { filter_array.push(special_filter); } var featured_counter = jQuery('.featured_checkbox:checked').length; if (featured_counter > 0) { var featured = '('; jQuery('.featured_checkbox:checked').each(function() { if(jQuery(this).val() == 'sale') { featured += 'root_types:sale OR applicable_special_types:bulk OR applicable_special_types:bundle'; } else { // featured.push('"root_types:' + $(this).val() + '"'); if (featured_counter > 1) { featured += 'root_types:"' + jQuery(this).val() + '" OR '; } else { featured += 'root_types:"' + jQuery(this).val() + '"'; } } featured_counter--; }); featured += ')'; // console.log(featured) filter_array.push(featured); } var dominance = ''; var dominance_counter = jQuery('.dominance_filter:checked').length; if (dominance_counter > 0) { var dominance = '('; jQuery('.dominance_filter:checked').each(function() { // dominance.push('"category:' + $(this).val() + '"'); if (dominance_counter > 1) { dominance += 'category:"' + jQuery(this).val() + '" OR '; } else { dominance += 'category:"' + jQuery(this).val() + '"'; } dominance_counter--; }); dominance += ')'; // console.log(dominance) filter_array.push(dominance); } var filter_sub_category = ''; var filter_sub_category_counter = jQuery('.filter_sub_category:checked').length; if (filter_sub_category_counter > 0) { var filter_sub_category = '('; jQuery('.filter_sub_category:checked').each(function() { if (filter_sub_category_counter > 1) { filter_sub_category += 'root_types:"' + jQuery(this).val() + '" OR '; } else { filter_sub_category += 'root_types:"' + jQuery(this).val() + '"'; } filter_sub_category_counter--; }); filter_sub_category += ')'; filter_array.push(filter_sub_category); } var filter_brand_subtypes = ''; var filter_brand_subtypes_counter = jQuery('.filter_brand_subtypes:checked').length; if (filter_brand_subtypes_counter > 0) { var filter_brand_subtypes = '('; jQuery('.filter_brand_subtypes:checked').each(function() { if (filter_brand_subtypes_counter > 1) { filter_brand_subtypes += 'brand_subtype:"' + jQuery(this).val() + '" OR '; } else { filter_brand_subtypes += 'brand_subtype:"' + jQuery(this).val() + '"'; } filter_brand_subtypes_counter--; }); filter_brand_subtypes += ')'; filter_array.push(filter_brand_subtypes); } var filter_weight = ''; var filter_weight_counter = jQuery('.filter_weight:checked').length; if (filter_weight_counter > 0) { var filter_weight = '('; jQuery('.filter_weight:checked').each(function() { if (filter_weight_counter > 1) { filter_weight += 'available_weights:"' + jQuery(this).val() + '" OR '; } else { filter_weight += 'available_weights:"' + jQuery(this).val() + '"'; } filter_weight_counter--; }); filter_weight += ')'; filter_array.push(filter_weight); } var filter_states = ''; var filter_states_counter = jQuery('.filter_states:checked').length; if (filter_states_counter > 0) { var filter_states = '('; jQuery('.filter_states:checked').each(function() { if (filter_states_counter > 1) { filter_states += 'feelings:"' + jQuery(this).val() + '" OR '; } else { filter_states += 'feelings:"' + jQuery(this).val() + '"'; } filter_states_counter--; }); filter_states += ')'; filter_array.push(filter_states); } if (jQuery('.thc_max_price').length > 0) { var thc_actual_max = jQuery('.thc_max_price').attr('data-max'); var thc_actual_min = jQuery('.thc_min_price').attr('data-max'); var thc_min_price = jQuery('.thc_min_price').text().trim() var thc_max_price = jQuery('.thc_max_price').text().trim() if (thc_min_price != thc_actual_min || thc_max_price != thc_actual_max) { var thc = '(percent_thc:' + thc_min_price + ' TO ' + thc_max_price + ')' filter_array.push(thc); } } if (jQuery('.cbd_max_price').length > 0) { var cbd_actual_max = jQuery('.cbd_max_price').attr('data-max'); var cbd_actual_min = jQuery('.cbd_min_price').attr('data-max'); var cbd_min_price = jQuery('.cbd_min_price').text().trim() var cbd_max_price = jQuery('.cbd_max_price').text().trim() if (cbd_min_price != cbd_actual_min || cbd_max_price != cbd_actual_max) { var cbd = '(percent_cbd:' + cbd_min_price + ' TO ' + cbd_max_price + ')' filter_array.push(cbd); } } var filter_brands = ''; var filter_brands_counter = jQuery('.filter_brands:checked').length; if (filter_brands_counter > 0) { var filter_brands = '('; jQuery('.filter_brands:checked').each(function() { if (filter_brands_counter > 1) { filter_brands += 'brand:"' + jQuery(this).val() + '" OR '; } else { filter_brands += 'brand:"' + jQuery(this).val() + '"'; } filter_brands_counter--; }); filter_brands += ')'; filter_array.push(filter_brands); } var filter = ""; var filter_counter = filter_array.length; if (filter_counter > 0) { jQuery('.filter-badge').text(filter_counter).show() } else { jQuery('.filter-badge').text(filter_counter).hide() } filter_array.forEach(function(value, index, array) { if (filter_counter > 1) { filter += value + ' AND '; } else { filter += value; } filter_counter--; }) return filter; console.log(filter); } function plp_sortBy_index() { var indexSuffix = '-production' var sortby = jQuery('.sortby-filter:checked').val() if (sortby == 'rating') { var indexName = 'menu-products-by-rating' + indexSuffix; } else if (sortby == 'popularity') { var indexName = 'menu-products-by-upvote' + indexSuffix; } else if (sortby == 'price_low_to_high') { var indexName = 'menu-products-by-price' + indexSuffix; } else if (sortby == 'price_high_to_low') { var indexName = 'menu-products-by-price-desc' + indexSuffix; } else if (sortby == 'thc_high_to_low') { var indexName = 'menu-products-by-thc-potency-desc' + indexSuffix; }else if (sortby == 'thc_low_to_high') { var indexName = 'menu-products-by-thc-potency-asc' + indexSuffix; } else { var indexName = 'menu-products-by-category-and-name-asc' + indexSuffix; } return indexName; } // plp filter menu start jQuery(document).on('click', '.filter-btn-apply, .sortby-filter', function(event) { var eent = jQuery(this); // console.log('event- ',eent, event.target) if (event.target.className == 'filter-btn-apply') { jQuery('.my-filter-shortcode').hide() } var filter = plp_filters(); const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const searchQuery = urlParams.get('search') var page = 0 var indexName = plp_sortBy_index(); // startLoader(); jQuery('.plp-loader').show(); if (page == 0) { jQuery('.plp-item-wrapper').find('.product-single-main').remove(); } jQuery('#no_more_prod_heading').remove(); jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php ', data: { 'action': 'custom_filter_ajax_action', 'section': 'shortcode-algolia-product-category-page', 'filters': filter, 'indexName': indexName, 'search': searchQuery, 'page': page, }, success: function(response) { //console.log(response); if (response.includes("no-product-search")) { jQuery('#plp-load-more-btn').css('display', 'none') } else { jQuery('#plp-load-more-btn').css('display', 'inline-block');console.log('load slick'); jQuery('.added-text').hide(); jQuery('.added-counter').show();jQuery('.slide-footer').show(); var $swiperSelector = jQuery('.plp-swiper');$swiperSelector.each(function(index) { var $this = $(this); $this.addClass('swiper-slider-' + index); var dragSize = $this.data('drag-size') ? $this.data('drag-size') : 50; var freeMode = $this.data('free-mode') ? $this.data('free-mode') : false; var loop = $this.data('loop') ? $this.data('loop') : false; var slidesDesktop = $this.data('slides-desktop') ? $this.data('slides-desktop') : 3; var slidesTablet = $this.data('slides-tablet') ? $this.data('slides-tablet') : 3; var slidesMobile = $this.data('slides-mobile') ? $this.data('slides-mobile') : 2.5; var spaceBetween = $this.data('space-between') ? $this.data('space-between'): 0; var swiper = new Swiper('.swiper-slider-' + index, { direction: 'horizontal', loop: loop, freeMode: freeMode, spaceBetween: spaceBetween, breakpoints: { 1920: { slidesPerView: slidesDesktop, }, 992: { slidesPerView: slidesTablet, }, 320: { slidesPerView: slidesMobile, spaceBetween: 20, } }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }, scrollbar: { el: '.swiper-scrollbar', draggable: true, dragSize: dragSize } });}); jQuery('.swiper-wrapper').each(function() { var swipeLenth = jQuery(this).find(".item-wrap").length; if(swipeLenth <= 1){jQuery(this).css({"display":"flex", "justify-content":"center"});jQuery(this).siblings('.swiper-button-prev').hide();jQuery(this).siblings('.swiper-button-next').hide(); }}); } if (page > 0) { jQuery('.plp-item-wrapper').find('.plp-item-body').append(response); var $swiperSelector = jQuery('.plp-swiper');$swiperSelector.each(function(index) { var $this = $(this); $this.addClass('swiper-slider-' + index); var dragSize = $this.data('drag-size') ? $this.data('drag-size') : 50; var freeMode = $this.data('free-mode') ? $this.data('free-mode') : false; var loop = $this.data('loop') ? $this.data('loop') : false; var slidesDesktop = $this.data('slides-desktop') ? $this.data('slides-desktop') : 3; var slidesTablet = $this.data('slides-tablet') ? $this.data('slides-tablet') : 3; var slidesMobile = $this.data('slides-mobile') ? $this.data('slides-mobile') : 2.5; var spaceBetween = $this.data('space-between') ? $this.data('space-between'): 0; var swiper = new Swiper('.swiper-slider-' + index, { direction: 'horizontal', loop: loop, freeMode: freeMode, spaceBetween: spaceBetween, breakpoints: { 1920: { slidesPerView: slidesDesktop, }, 992: { slidesPerView: slidesTablet, }, 320: { slidesPerView: slidesMobile, spaceBetween: 20, } }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }, scrollbar: { el: '.swiper-scrollbar', draggable: true, dragSize: dragSize } });}); jQuery('#currentpage').val(page); } else { jQuery('.plp-item-wrapper').replaceWith(response); var $swiperSelector = jQuery('.plp-swiper');$swiperSelector.each(function(index) { var $this = $(this); $this.addClass('swiper-slider-' + index); var dragSize = $this.data('drag-size') ? $this.data('drag-size') : 50; var freeMode = $this.data('free-mode') ? $this.data('free-mode') : false; var loop = $this.data('loop') ? $this.data('loop') : false; var slidesDesktop = $this.data('slides-desktop') ? $this.data('slides-desktop') : 3; var slidesTablet = $this.data('slides-tablet') ? $this.data('slides-tablet') : 3; var slidesMobile = $this.data('slides-mobile') ? $this.data('slides-mobile') : 2.5; var spaceBetween = $this.data('space-between') ? $this.data('space-between'): 0; var swiper = new Swiper('.swiper-slider-' + index, { direction: 'horizontal', loop: loop, freeMode: freeMode, spaceBetween: spaceBetween, breakpoints: { 1920: { slidesPerView: slidesDesktop, }, 992: { slidesPerView: slidesTablet, }, 320: { slidesPerView: slidesMobile, spaceBetween: 20, } }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }, scrollbar: { el: '.swiper-scrollbar', draggable: true, dragSize: dragSize } });}); jQuery('.swiper-wrapper').each(function() { var swipeLenth = jQuery(this).find(".item-wrap").length; if(swipeLenth <= 1){jQuery(this).css({"display":"flex", "justify-content":"center"});jQuery(this).siblings('.swiper-button-prev').hide();jQuery(this).siblings('.swiper-button-next').hide(); }}); } // stopLoader(); jQuery('.plp-loader').hide(); }, error: function(response) { // stopLoader(); jQuery('.plp-loader').hide(); } }) }) // plp filter menu end jQuery(document).on('click', '#plp-load-more-btn', function(event) { const params = new URLSearchParams(window.location.search) const urlFilter = params.get('special_filter') if (urlFilter) { var filter = urlFilter; } else {var eent = jQuery(this)// console.log('event- ',eent, event.target)if (event.target.className == 'filter-btn-apply') { jQuery('.my-filter-shortcode').hide()} var filter = plp_filters(); } var page = parseInt(jQuery('#currentpage').val()) + 1;var indexName = plp_sortBy_index(); const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const searchQuery = urlParams.get('search') jQuery('.plp-loader').show(); jQuery('#no_more_prod_heading').remove() jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php ', data: { 'action': 'custom_filter_ajax_action', 'section': 'shortcode-algolia-product-category-page', 'filters': filter, 'indexName': indexName, 'page': page, 'search': searchQuery, }, success: function(response) {//jQuery(window).bind('scroll', onScroll); if (response.includes("no-product-search")) { jQuery('#plp-load-more-btn').css('display', 'none') } else { jQuery('#plp-load-more-btn').css('display', 'inline-block') } if (page > 0) { if (response.includes("no_more_products")) { if (jQuery('#no_more_prod_heading').length == 0) { jQuery('.plp-item-wrapper').find('.plp-item-body').after('

');jQuery('#plp-load-more-btn').remove(); } } else { jQuery('.plp-item-wrapper').find('.plp-item-body').append(response); jQuery('.added-text').hide(); jQuery('.added-counter').show();jQuery('.slide-footer').show(); var $swiperSelector = jQuery('.plp-swiper');$swiperSelector.each(function(index) { var $this = $(this); $this.addClass('swiper-slider-' + index); var dragSize = $this.data('drag-size') ? $this.data('drag-size') : 50; var freeMode = $this.data('free-mode') ? $this.data('free-mode') : false; var loop = $this.data('loop') ? $this.data('loop') : false; var slidesDesktop = $this.data('slides-desktop') ? $this.data('slides-desktop') : 3; var slidesTablet = $this.data('slides-tablet') ? $this.data('slides-tablet') : 3; var slidesMobile = $this.data('slides-mobile') ? $this.data('slides-mobile') : 2.5; var spaceBetween = $this.data('space-between') ? $this.data('space-between'): 0; var swiper = new Swiper('.swiper-slider-' + index, { direction: 'horizontal', loop: loop, freeMode: freeMode, spaceBetween: spaceBetween, breakpoints: { 1920: { slidesPerView: slidesDesktop, }, 992: { slidesPerView: slidesTablet, }, 320: { slidesPerView: slidesMobile, spaceBetween: 20, } }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }, scrollbar: { el: '.swiper-scrollbar', draggable: true, dragSize: dragSize } });});jQuery('.swiper-wrapper').each(function() { var swipeLenth = jQuery(this).find(".item-wrap").length; if(swipeLenth <= 1){jQuery(this).css({"display":"flex", "justify-content":"center"});jQuery(this).siblings('.swiper-button-prev').hide();jQuery(this).siblings('.swiper-button-next').hide(); }}); } jQuery('#currentpage').val(page); } else { jQuery('.plp-item-wrapper').replaceWith(response); }jQuery('.filter-sale span').hover( function() { var $this = $(this); // caching $(this)var link = jQuery(this).parents('.plp-item').children('.plp-item-header').find('a').attr('href'); $this.data('defaultText', $this.text()); $this.html("Click to see offer details"); }, function() { var $this = $(this); // caching $(this) $this.html($this.data('defaultText')); });jQuery('.filter-sale span').on('click touchstart', function(){ var $this = $(this); // caching $(this)var link = jQuery(this).parents('.plp-item').children('.plp-item-header').find('a').attr('href'); $this.data('defaultText', $this.text()); $this.html("Click to see offer details");}); jQuery('.plp-loader').hide(); }, error: function(response) { jQuery('.plp-loader').hide(); } }) }) // order history filter start jQuery(document).on('click', '.order-filter-apply', function() { var order_date = jQuery('input[name="order-date"]:checked').val(); jQuery('.history-filter-popup').css('display', 'none') jQuery('.order-history-result').find('.history-order-single').remove() jQuery('.order-history-loader').show() jQuery.ajax({ type: "POST", url: 'https://everestnm.com/wp-admin/admin-ajax.php', data: { 'action': 'order_history_filter_ajax', 'order_date': order_date, }, success: function(response) { jQuery('.order-history-result').replaceWith(response) // if (menu_filter == 'brand') { // jQuery('.brand-submit').show() // } else { // jQuery('.brand-submit').hide() // } // jQuery('.panel').hide(); // jQuery('#header_shop_filter_div').find('.cate').removeClass('toggle-btn') // jQuery('#header_shop_filter_div').find('#' + id).addClass('toggle-btn') jQuery('.order-history-loader').hide(); }, error: function(response) { jQuery('.order-history-loader').hide(); } }) }) // order history filter end }); jQuery('.edit-cart-close').click(function() { console.log(jQuery(this).parents('.edit-cart-div')); jQuery(this).parents('.edit-cart-div').hide(); jQuery('.edit-cart-div, .error-span').hide(); })

How To Make Canna Oil In A Few Easy Steps (2024)

References

Top Articles
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 6016

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.