function update
This commit is contained in:
parent
56a93a1145
commit
e048c9a98b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue