Skip to content

Instantly share code, notes, and snippets.

@iamsathyaseelan
Created May 21, 2020 06:30
Show Gist options
  • Save iamsathyaseelan/4e30b32a75a4f81b13abef032e189439 to your computer and use it in GitHub Desktop.
Save iamsathyaseelan/4e30b32a75a4f81b13abef032e189439 to your computer and use it in GitHub Desktop.
line subtoal change
add_filter('retainful_get_line_item_total','retainful_get_line_item_total',10,5);
function retainful_get_line_item_total($total, $line_total, $line_total_tax, $item_details,$cart){
$line_total = (isset($item_details['line_subtotal']) && !empty($item_details['line_subtotal'])) ? $item_details['line_subtotal'] : $total;
return $line_total;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment