function update

This commit is contained in:
magepeopleteam 2022-03-15 03:38:50 +00:00
parent 56a93a1145
commit e048c9a98b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {