From 3b566e303fd1fe2d53837bcb97ee22ff94a07704 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Fri, 25 Mar 2022 06:56:18 +0000 Subject: [PATCH] v 3.6.0 released --- inc/mep_extra_price.php | 2 +- js/filter_pagination.js | 2 +- templates/single/ticket_type_list.php | 2 +- woocommerce-event-press.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/mep_extra_price.php b/inc/mep_extra_price.php index 517292a..0009d7e 100644 --- a/inc/mep_extra_price.php +++ b/inc/mep_extra_price.php @@ -96,7 +96,7 @@ add_filter('woocommerce_add_cart_item_data', 'mep_add_custom_fields_text_to_cart /** * Now need to update the cart price according to user selection, the below function is doing this part, Its getting the new parice and update the cart price to new */ -add_action('woocommerce_before_calculate_totals', 'mep_add_custom_price', 90, 1); +add_action('woocommerce_before_calculate_totals', 'mep_add_custom_price', 10000, 1); function mep_add_custom_price($cart_object) { foreach ($cart_object->cart_contents as $key => $value) { diff --git a/js/filter_pagination.js b/js/filter_pagination.js index e021b73..dee8786 100644 --- a/js/filter_pagination.js +++ b/js/filter_pagination.js @@ -184,7 +184,7 @@ function mpwem_page_scroll_to(target) { let pagination_page = parseInt($(this).attr('data-load-more')); let parent = $(this).closest('.list_with_filter_section'); let item_class = get_item_class(parent); - if (parent.find(item_class + ':hidden').size() > 0) { + if (parent.find(item_class + ':hidden').length > 0) { pagination_page = pagination_page + 1; } else { pagination_page = 0; diff --git a/templates/single/ticket_type_list.php b/templates/single/ticket_type_list.php index 450d4c7..147a8d7 100644 --- a/templates/single/ticket_type_list.php +++ b/templates/single/ticket_type_list.php @@ -31,7 +31,7 @@
- +