Jump to content

Customizing Admin: Order Received Email template to show USPS shipping method


Recommended Posts

Posted

Hello,

The email template 'Order Received Email' has some macros including 

{$DATA.ship_method}    Shipping method.

 

But on our templates it only shows 'Shipping: (USPS)    $<price>' but we can ship Media Mail and Priority via USPS. I have tried search in the forums, if someone could point me to a post or help for the email macros, I'd love to add 'Shipping: (USPS - Priority)' or 'Shipping: (USPS - Media Mail)' if possible?

 

Any pointers appreciated!

Posted

Please try using {$DATA.ship_product}.

The statement in the editor would be:

<td>Shipping: {if $DATA.ship_method}({$DATA.ship_method}{if $DATA.ship_product} - {$DATA.ship_product}{/if}){/if}</td>

 

Posted

That worked great, thank you! 

 

It might be nice to add that to the list of macros in the admin form at some point. 

 

Thanks again, really helped!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...