Magento – Remove payment details and shipping Method Name in the invoice template

emailemail-templatesmagento-1.8sales

I need to remove some of the details under Payment Method in my Invoice emails:

Country of IP
xxx

Debit type
xxx

Card numbers
xxx

Validity date
xxx

and I also need to remove the shipping Method Name from my invoice as well, from

Shipping Method:
Standard Delivery (free if 12+ bottles) - bestway 

to

Shipping Method:
Standard Delivery (free if 12+ bottles)

in my invoice template, I can see these codes,

payment methods,

<td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #f4f1ea; border-bottom:1px solid #f4f1ea; border-right:1px solid #f4f1ea;">
                                {{var payment_html}}
 </td>

shipping,

  <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #f4f1ea; border-bottom:1px solid #f4f1ea; border-right:1px solid #f4f1ea;">
                                {{var order.shipping_description}}
                                &nbsp;
 </td>

But where are {{var payment_html}} and {{var order.shipping_description}} located?

Best Answer

If you don't want the payment information, just remove {{var payment_html}} and its parent element from the template. You may also need to remove other <td> elements to make it look good, but for starters try it like that.

As for the shipping method name, that is shown as it is shown in the checkout process.
If you want it without - bestway then you should change the name of the shipping method.
I don't know how you can do that. I guess it's different from method to method (but I could be wrong).