Mirogord Posted August 23, 2021 Share Posted August 23, 2021 Hello, I imported an email template using the Email Templates Manager module. I would like to add some custom text to the shipped mail. Inside the Email Templates Manager module I found two files that refer to the aforementioned email: /modules/ps_emailsmanager/imports/minimalist-pro/shipped.tpl And /modules/ps_emailsmanager/compile/minimalist-pro/en/shipped.html Here are the changes I made. Original shipped.tpl code part: <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap:break-word;font-size:0px;padding:15px;" align="center"><div style="cursor:auto;color:{{$title_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_16}}px;font-weight:700;line-height:22px;text-align:center;">${{ lang.order_order_name }}$ - ${{ lang.shipped }}$</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px;" align="center"><div style="cursor:auto;color:{{$font_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_14}}px;line-height:22px;text-align:center;">${{ lang.your_order_with_the_reference_order_name_has_been_shipped }}$</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;"><div style="font-size:1px;line-height:20px;white-space:nowrap;"> </div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:{{$font_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_14}}px;line-height:22px;text-align:center;">${{ lang.thank_you_for_shopping_with_shop_name }}$</div></td></tr></tbody></table></div><!--[if mso | IE]> Modified shipped.tpl code part: <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap:break-word;font-size:0px;padding:15px;" align="center"><div style="cursor:auto;color:{{$title_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_16}}px;font-weight:700;line-height:22px;text-align:center;">${{ lang.order_order_name }}$ - ${{ lang.shipped }}$</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px;" align="center"><div style="cursor:auto;color:{{$font_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_14}}px;line-height:22px;text-align:center;">${{ lang.your_order_with_the_reference_order_name_has_been_shipped }}$</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;"><div style="font-size:1px;line-height:20px;white-space:nowrap;">.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px;" align="center"><div style="cursor:auto;color:{{$font_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_14}}px;line-height:22px;text-align:center;">${{ lang.our_products_are_shipped_directly_from_our_manufacturer_in_order_to_cut_warehouse_costs_and_guarantee_the_best_price_and_quality_to_the_end_customer }}$</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;"><div style="font-size:1px;line-height:20px;white-space:nowrap;">.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px;" align="center"><div style="cursor:auto;color:{{$font_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_14}}px;line-height:22px;text-align:center;">${{ lang.transit_time }}$: 15 ${{ lang.business_days }}$</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;"><div style="font-size:1px;line-height:20px;white-space:nowrap;">.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:{{$font_color}};font-family:{{if !empty($web_font)}}'{{$web_font}}', {{/if}}{{if !empty($fallback_font)}}{{$fallback_font}},{{/if}}sans-serif;font-size:{{$font_size_14}}px;line-height:22px;text-align:center;">${{ lang.thank_you_for_shopping_with_shop_name }}$</div></td></tr></tbody></table></div><!--[if mso | IE]> Original shipped.html code part: <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap:break-word;font-size:0px;padding:15px;" align="center"><div style="cursor:auto;color:#52565b;font-family:'Lato', Arial,sans-serif;font-size:16px;font-weight:700;line-height:22px;text-align:center;">Order {order_name} - Shipped</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:#828890;font-family:'Lato', Arial,sans-serif;font-size:14px;line-height:22px;text-align:center;">Your order with the reference <span><strong>{order_name}</strong></span> has been shipped.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;"><div style="font-size:1px;line-height:20px;white-space:nowrap;"> </div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:#828890;font-family:'Lato', Arial,sans-serif;font-size:14px;line-height:22px;text-align:center;">Thank you for shopping with {shop_name}!</div></td></tr></tbody></table></div><!--[if mso | IE]> Modified shipped.html code part: <![endif]--><div class="mj-column-per-100 outlook-group-fix" style="vertical-align:top;display:inline-block;direction:ltr;font-size:13px;text-align:left;width:100%;"><table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"><tbody><tr><td style="word-wrap:break-word;font-size:0px;padding:15px;" align="center"><div style="cursor:auto;color:#52565b;font-family:'Lato', Arial,sans-serif;font-size:16px;font-weight:700;line-height:22px;text-align:center;">Order {order_name} - Shipped</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:#828890;font-family:'Lato', Arial,sans-serif;font-size:14px;line-height:22px;text-align:center;">Your order with the reference <span><strong>{order_name}</strong></span> has been shipped.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:#828890;font-family:'Lato', Arial,sans-serif;font-size:14px;line-height:22px;text-align:center;">Our products are shipped directly from our manufacturer in order to cut warehouse costs and guarantee the best price and quality to the end customer.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px;" align="center"><div style="cursor:auto;color:#828890;font-family:'Lato', Arial,sans-serif;font-size:14px;line-height:22px;text-align:center;">Transit time: 15 business days.</div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;"><div style="font-size:1px;line-height:20px;white-space:nowrap;"> </div></td></tr><tr><td style="word-wrap:break-word;font-size:0px;padding:2px 15px 15px;" align="center"><div style="cursor:auto;color:#828890;font-family:'Lato', Arial,sans-serif;font-size:14px;line-height:22px;text-align:center;">Thank you for shopping with {shop_name}!</div></td></tr></tbody></table></div><!--[if mso | IE]> This is the result: I think I need to add the following pieces of code somewhere: lang.transit_time lang.business_days So that I can call them in the templates. Some help will really be appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now