diff --git a/inc/mep_extra_price.php b/inc/mep_extra_price.php index 0009d7e..517292a 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', 10000, 1); +add_action('woocommerce_before_calculate_totals', 'mep_add_custom_price', 90, 1); function mep_add_custom_price($cart_object) { foreach ($cart_object->cart_contents as $key => $value) {