I tried doing this by simply adding it to the flat rate service's description array, but then it shows up in the edit form. Can't have that! My next thought was to use hook_commerce_shipping_service_info_alter(), but I rolled it back when I realized I need to accommodate the possibility of admin/commerce/config/shipping/services being the URL used to view the flat rate services table (and not just ../services/flat-rate). Didn't have time to work it out from there.

#2 flat-rate-extra-description.png26.53 KBrszrama
Members fund testing for the Drupal project. Drupal Association Learn more


rszrama’s picture

Status: Active » Postponed

Looked at this again today. Pretty sure we'll just have to let the Shipping module add a hook to collect overview data from methods / services. This will be postponed until it gets such an update. Until then, if you need to show the rate on the overview table, you can just set it in the description manually.

rszrama’s picture

Issue summary: View changes
Status: Postponed » Fixed
26.53 KB

As a result of some recent work, I figured out how to show an "extra description" on the rate overview table. It's a bit hacky, but it works well enough for the back end.

Committed! Will spawn a follow-up for moving this into a theme function.

  • rszrama committed df63469 on 7.x-1.x
    Issue #1334816 by rszrama: add the base rate to a flat rate's extra...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.