Announcement

Collapse
No announcement yet.

Displaying shipper name in shipment confirmation email.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Displaying shipper name in shipment confirmation email.

    I'd like to display the shipper name in the shipment confirmation email.

    Currently Displayed: Tracking #: 6XXX9741816

    Ideal: FedEx Tracking #: 6XXX9741816 or USPS Tracking #: 6XXX9741816
    DiVino Theme

    #2
    You might try getting the shipper from the s01_OrderCharges table using the following in the shipping confirmation email:
    <mvt:comment> get the shipper name </mvt:comment>
    <mvt:foreach iterator="charge" array="order:charges">
    <mvt:if expr="'Shipping' CIN l.settings:charge:descrip">
    <mvt:assign name="l.settings:carrier" value="trim(glosub(l.settings:charge:descrip, 'Shipping: ' , ''))" />
    </mvt:if>
    </mvt:foreach>

    Then display it:
    <br>Your order has shipped and we have attached a copy of your invoice with tracking.
    <br>The trucking company, &mvt:carrier;, should be contacting you on or around &mvt:delivery_date; to schedule delivery of your items.


    delivery_date is a custom order field where we enter the estimated delivery date for the order when we ship it.
    (we do this thru the custom field link on the order processing edit page)

    The following in our shipping confirmation template gets the date.
    <mvt:item name="customfields" param="Read_Order(l.settings:order:id, 'invoiceETA',l.settings:delivery_date )" />
    <mvt:comment> must trim variable to make it null if nothing entered in it. a bug it appears </mvt:comment>
    <mvt:assign name="l.settings:delivery_date" value="trim(l.settings:delivery_date)" />

    Larry
    Last edited by wajake41; 09-25-16, 03:44 PM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment

    Working...
    X