How to fetch manual flate rate token on replacement pattern How to fetch manual flate rate token on replacement pattern

I added Flate Rate cost manually on orders, but I don't find this token on REPLACEMENT PATTERNS. How to fetch this token for my invoice? 

here screenshot that I did
You would need to two things to make this happen:


How to programmatically create a custom token. And you'll definitely want to read the API docs on the relevant hook function.
How to get at the line item given an order.


Let's assume your token has an $order object inside the $data variable. The next step would be to use entity metadata wrappers to pull in all the information, including line items.

&lt;?php
$order_wrapper = entity_metadata_wrapper('commerce_order', $order);
foreach ($order_wrapper-&gt;commerce_line_items as $delta =&gt; $line_item_wrapper) {
  $line_item = $line_item_wrapper-&gt;value();
}
?&gt;


Your shipping line item is in there. dpm($line_item); to find it and then construct your token output.