1. Home
  2. Docs
  3. Custom Code Samples
  4. Misc
  5. Change >= in shipping price label for Cost by Distance Range feature

Change >= in shipping price label for Cost by Distance Range feature

If you create a list of ranges in LPAC, and leave the last row’s End Range blank, LPAC will show >= <range> in the shipping method name (if you have the option turned on).



You can replace this >= by using a filter:

PHP
function lpac_cc_change_distance_range_exceeded_prefix(){
  return "more than";
}
add_filter('lpac_distance_range_exceeded_prefix', 'lpac_cc_change_distance_range_exceeded_prefix');
Was this article helpful to you? Yes No