Status Email If Statements

I’m trying to add a few custom bits to the status emails so they are different depending on the status but I need to do this in the template rather than the usual box on the status itself.



Should the following code work, I only want this template file displaying on the ‘Received Payment’ status email?


<br />
{if $status_settings.appearance_type == "P"}<br />
{include file="custom_template1.tpl"}<br />
{/if}<br />

```<br />
<br />
Am I on the right track with this or way off?<br />
<br />
Thanks

Yes, you are on the right track. Note that it will be required to change 2 templates: one for the admin are and another one for the store-front

I've tried my code in [color=#000000][font=Tahoma][size=3]/[/size][/font][/color]basic[color=#000000][font=Tahoma][size=3]/[/size][/font][/color]orders / order_notification.tpl but it doesn't seem to have the desired effect



My actual code is



{include file="letter_header.tpl"}
{$lang.dear} {$order_info.firstname},


{if $status_settings.appearance_type == "P"}
{$lang.email_thankyou}


{include file="email_order_number.tpl"}
{/if}
{$order_status.email_header|unescape}


{assign var="order_header" value=$lang.invoice}
{if $status_settings.appearance_type == "C" && $order_info.doc_ids[$status_settings.appearance_type]}
{assign var="order_header" value=$lang.credit_memo}
{elseif $status_settings.appearance_type == "O"}
{assign var="order_header" value=$lang.order_details}
{/if}
{include file="letter_footer.tpl"}
{$order_header}:

{include file="orders/invoice.tpl"}




'P' being the status of 'Received payment!



What would the 2nd template be?



Cart Ver: 3.0.6

In v 3.0.6 version only one template should be changed. Please try to add {$status_settings|fn_print_r}, clear cache and send test e-mail

[quote name='eComLabs' timestamp='1438097367' post='224618']

In v 3.0.6 version only one template should be changed. Please try to add {$status_settings|fn_print_r}, clear cache and send test e-mail

[/quote]



Results were useful

Array

(

[status] => P

[description] => Received Payment

[allow_return] => N

[appearance_type] => I

[color] => f40cd6

[gift_cert_status] => P

[inventory] => D

[notify] => Y

[notify_department] => N

[remove_cc_info] => Y

[repay] => N

)



Thank eComLabs… i've changed to


{if $status_settings.status == "P"}


{if $status_settings.appearance_type == “P”} I assume is the prreceeding status 'I' being Cancelled which is what the status was before I changed it on my test order.

hi,


[quote]Yes, you are on the right track. Note that it will be required to change 2 templates: one for the admin are and another one for the store-front [/quote]

[quote]

[color=#282828][font=arial, verdana, tahoma, sans-serif]What would the 2nd template be?[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Cart Ver: 3.0.6 [/font][/color]

[/quote]



there are 2 templates for version 4.x but if you use Basic skin in version 3.0.6, the template “[color=#282828][font=arial, verdana, tahoma, sans-serif]basic[/font][/color][color=#000000][font=arial, verdana, tahoma, sans-serif][font=Tahoma][size=3]/[/size][/font][/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]orders / order_notification.tpl” is used for both frontend/backend notifications.[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]best regards,[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]WSA team[/font][/color]

[quote name='jacksonsnurseries' timestamp='1438100286' post='224629']

Results were useful

[/quote]



We are glad to hear that the issue is solved. Have a good day!