cancel
Showing results for 
Search instead for 
Did you mean: 

Shipment confirmation email : use wrong theme for two templates

Shipment confirmation email : use wrong theme for two templates

Hello !

 

First, thanks in advance for your support.

 

Our client has two ways to create a shipment :

 

Magento way

Here, it simply consists to use the Magento admin to create the shipments. When creating a shipment, the email confirmation is sent with the good display. I mean it take templates at the good place, in our custom theme and not in base/default.

 

ShipStation way

We have connected our client Magento store to ShipStation. The problem we have is that when our client create a shipment form ShipStation, apparently it fires Magento to send the shipment confirmation email (I don't know where this code is), this is good. But the email display that we receive is wrong.

 

I give you the code of the shipment confirmation email template that we have putted in the admin, in System > Transactionnal Emails :

 

 

<body style="background:#F2F2F2;color:#5e5e5e;font-size:12px;line-height:16px;letter-spacing:0.02em;font-family:Arial, Helvetica, sans-serif;margin:0;padding:0;-webkit-font-smoothing:antialiased;">
    <div style="background:#F2F2F2;font-family:Arial, Helvetica, sans-serif;font-size:12px;margin:0;padding:0;">
        <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
            <tr>
                <td width="20">&nbsp;</td>
                <td align="center" valign="top">

                    <table bgcolor="FFFFFF" cellspacing="0" cellpadding="0" border="0" width="550">
                        <tr><td height="20" style="line-height:20px;background:#F2F2F2;">&nbsp;</td></tr>
                        <tr>
                            <td valign="top">
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr><td height="50" colspan="3" style="line-height:50px;">&nbsp;</td></tr>
                                    <tr>
                                        <td width="81">&nbsp;</td>
                                        <td width="195">
                                            <a href="https://www.jeanpaulfortin.com/en/?__brand=jpf" target="_blank"><img src="{{skin url='images/email-logo-jpf-en.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="Jean-Paul Fortin" width="195" height="52" style="display:block;border:none;" border="0"/></a>
                                        </td>
                                    </tr>
                                    <tr><td height="35" colspan="3" style="line-height:35px;">&nbsp;</td></tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                            <!-- [ content starts here ] -->

                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr>
                                        <td width="105">&nbsp;</td>
                                        <td width="340">
                                            <img src="{{skin url='images/email-order-shipped.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="Order shipped" width="340" height="79" style="display:block;border:none;"/>
                                        </td>
                                        <td width="105">&nbsp;</td>
                                    </tr>
                                    <tr><td height="40" colspan="3" style="line-height:40px;">&nbsp;</td></tr>
                                </table>

                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr>
                                        <td width="35">&nbsp;</td>
                                        <td width="480" style="color:#5e5e5e;font-size:12px;line-height:16px;font-family:Arial;letter-spacing:0.02em;">

                                            <h1 style="font-size:12px;margin: 0 0 1em;">Hi {{htmlescape var=$order.getCustomerName()}},</h1>
                                            <p>Good news! Your order is on its way.</p>
                                            <p>All the details of your order are below, along with a tracking number to track your order. If you do not see your tracking information straight away, please don't worry as it may take up to 48 hours to update.</p>
                                            <p>Thank you for shopping with us! <br/><b>The team at JP Fortin</b></p>

                                        </td>
                                        <td width="35">&nbsp;</td>
                                    </tr>
                                    <tr><td height="35" colspan="3" style="line-height:35px;">&nbsp;</td></tr>
                                    <tr>
                                        <td width="35">&nbsp;</td>
                                        <td width="480" style="color:#5e5e5e;font-size:12px;line-height:16px;font-family:Arial;letter-spacing:0.02em;text-align:center;">

                                            <h2 style="font-size:15px;line-height:20px;font-weight:normal;text-transform:uppercase;margin:0;">Order N&deg; {{var order.increment_id}}</h2>
                                            <p style="margin:0;">Dated {{var order.getCreatedAtFormated('long')}}</p>

                                        </td>
                                        <td width="35">&nbsp;</td>
                                    </tr>
                                    <tr><td height="10" colspan="3" style="line-height:10px;">&nbsp;</td></tr>
                                </table>

                                <table cellspacing="0" cellpadding="10" border="0" width="100%" style="color:#5e5e5e;font-size:12px;line-height:16px;font-family:Arial;letter-spacing:0.02em;table-layout:fixed;">
                                    <thead>
                                        <tr>
                                            <td width="5" style="border-bottom:1px solid #676767">&nbsp;</td>
                                            <td width="150" style="font-weight:bold;text-transform:uppercase;border-bottom:1px solid #676767">Billing information</td>
                                            <td width="160" style="font-weight:bold;text-transform:uppercase;border-bottom:1px solid #676767">Shipping information</td>
                                            <td width="155" style="font-weight:bold;text-transform:uppercase;border-bottom:1px solid #676767">Tracking number</td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td></td>
                                            <td valign="top">{{var order.billing_address.format('html')}}</td>
                                            <td valign="top">{{var order.shipping_address.format('html')}}</td>
                                            <td valign="top">{{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}</td>
                                        </tr>
                                        <tr><td height="20" colspan="4" style="line-height:20px;padding:0;">&nbsp;</td></tr>
                                    </tbody>
                                </table>

                                {{layout handle="sales_email_order_shipment_items" shipment=$shipment order=$order}}

                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr><td height="20" colspan="5" style="line-height:20px;border-top:1px solid #676767;">&nbsp;</td></tr>
                                    <tr>
                                        <td width="40">&nbsp;</td>
                                        <td width="215" valign="top" style="color:#5e5e5e;font-size:12px;line-height:16px;font-family:Arial;letter-spacing:0.02em;text-align:right;">
                                            <a href="https://www.jeanpaulfortin.com/en/faq/" target="_blank"><img src="{{skin url='images/email-icon-faq.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="FAQ" width="60" height="58" style="border:none;" /></a>
                                            <p><strong>GOT QUESTIONS?</strong><br/>
                                            We've gathered the answers to<br/> your most frequently asked<br/> questions.</p>
                                        </td>
                                        <td width="40">&nbsp;</td>
                                        <td width="215" valign="top" style="color:#5e5e5e;font-size:12px;line-height:16px;font-family:Arial;letter-spacing:0.02em;">
                                            <a href="https://www.jeanpaulfortin.com/en/returns" target="_blank"><img src="{{skin url='images/email-icon-return.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="Return" width="60" height="58" style="border:none;" /></a>
                                            <p><strong>EASY RETURNS</strong><br/>
                                            You can return or exchange <br/>your purchase within 30 days, <br/>in stores or by mail.</p>
                                        </td>
                                        <td width="40">&nbsp;</td>
                                    </tr>
                                    <tr><td height="20" colspan="5" style="line-height:20px;">&nbsp;</td></tr>
                                </table>

                            <!-- [ content ends here ] -->
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <table bgcolor="F2F2F2" cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr><td height="22" colspan="3" style="line-height:22px;">&nbsp;</td></tr>
                                    <tr>
                                        <td align="center" colspan="3">
                                            <table cellspacing="0" cellpadding="0" border="0" width="126">
                                                <tr>
                                                    <td width="32"><a href="https://www.facebook.com/jeanpaulfortinchaussures" target="_blank"><img src="{{skin url='images/email-icon-facebook.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="Facebook" width="32" height="32" border="0" /></a></td>
                                                    <td width="15">&nbsp;</td>
                                                    <td width="32"><a href="https://www.instagram.com/jeanpaulfortin/" target="_blank"><img src="{{skin url='images/email-icon-instagram.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="Instagram" width="32" height="32" border="0" /></a></td>
                                                    <td width="15">&nbsp;</td>
                                                    <td width="32"><a href="https://www.pinterest.com/jeanpaulfortin/" target="_blank"><img src="{{skin url='images/email-icon-pinterest.png' _area='frontend' _theme='jpfortin' _package='jpfortin'}}" alt="Pinterest" width="32" height="32" border="0" /></a></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr><td height="15" colspan="3" style="line-height:15px;">&nbsp;</td></tr>
                                    <tr>
                                        <td width="35">&nbsp;</td>
                                        <td width="480" style="color:#5e5e5e;font-size:12px;line-height:16px;font-family:Arial;text-align:center;letter-spacing:0.02em;">
                                            <strong>Jean-Paul Fortin</strong><br/>
                                            {{config path="general/store_information/address"}}<br/>
                                            {{config path='general/store_information/phone'}} <a href="..." style="color:#5e5e5e;text-decoration:none;">{{config path='trans_email/ident_support/email'}}</a><br />
                                            <a href="{{store url=''}}" style="color:#5e5e5e;text-decoration:none;" target="_blank">jeanpaulfortin.com</a>
                                        </td>
                                        <td width="35">&nbsp;</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr><td height="25" style="line-height:25px;background:#F2F2F2;">&nbsp;</td></tr>
                    </table>
                </td>
                <td width="20">&nbsp;</td>
            </tr>
        </table>
    </div>
</body>

You can remark two templates included in it :

 

{{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}

And

 

{{layout handle="sales_email_order_shipment_items" shipment=$shipment order=$order}}

That I guess correspond to path_to_theme/template/email/order/shipment/items.phtml.

 

The problem we have is that when we create a shipment from ShipStation, the email is sent but the two templates mentionned just above are taken from base/default and not our custom theme.

 

Have you an idea why ?

 

Thanks a lot.

 

FYI : Magento 1.8.1.0

 

1 REPLY

Re: Shipment confirmation email : use wrong theme for two templates

Hi @nague,

 

Are you using an official module?

If the answer is yes, did you reported?

If the answer is not, which module are you using?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"