38% OFF

Podcast Studio Microphone Mic w/ Tripod Stand

Rs. 3,999 Rs. 2,495

', limit: 20 }; $("#slider-range").slider({ range: true, min: minAmount, max: maxAmount, values: [minAmount, maxAmount], slide: function (event, ui) { $('#min-amount').text(nepaliPrice(ui.values[0])); $('#max-amount').text(nepaliPrice(ui.values[1])); }, stop: function () { filterParams.min_amount = $(this).slider("values", 0); filterParams.max_amount = $(this).slider("values", 1); filterProducts(filterParams); } }); $('.js-short-product').change(function () { var value = $(this).val(); value = value.trim(); if (value.length < 1) return false; filterParams.short = true; filterParams.short_order = value; filterProducts(filterParams) }) $('.search-form').submit(function (e) { e.preventDefault(); var searchKeyword = $(this).find('.search-input').val(); if (searchKeyword.trim().length < 1) return false; filterParams.search_keyword = searchKeyword; filterProducts(filterParams); $('.search-input').addClass('searched'); }); //function for pagination $(document).on('click','.js-pagination-link', function (e){ e.preventDefault(); if($(this).parent().hasClass('disabled') || $(this).parent().hasClass('active')){ return false; } var page = $(this).data().page; if(isNaN(page)) { return false } filterParams.page = page; filterProducts(filterParams); }); function filterProducts(filter) { var url = base_url + 'category/filter-products'; $.ajax({ type: 'post', url: url, data: filter, global: false, beforeSend: function () { $('#loading-model').modal('show'); }, success: function (response) { var pagination = generatePagination(response.totalPage,filter.page,5,baseUrl); $('#pagination').html(pagination); if (response.table) { $('.js-product-div').html(response.table); } else { $('.js-product-div').html('

No Products Found

'); } $('#loading-model').modal('hide'); } }) } })