Developer zone
Hook for before_calculate_totals function:
yaye_cart_line_total
yaye_cart_line_regular_total
$cost_total = apply_filters('yaye_cart_line_total', Utils::get_price_from_yaycurrency( $cost_total ), $cart_value);
$cost_regular_total = apply_filters('yaye_cart_line_regular_total', Utils::get_price_from_yaycurrency( $cost_regular_total ), $cart_value);
$cart_value['data']->set_price( $cost_total );
$cart_value['data']->set_regular_price( $cost_regular_total );
Last updated
Was this helpful?