Customer support helped me quickly today.
I often edit orders and customer profiles and I do not want the customers to get email notifications:
I would like you to set as default:
A)No email to the customer on the following 3 pages
b)Note please show me the changes so that I can do it myself if needed in the future.
Also please make the changes so that they will work in future upgrades. Spasibo!
- Customer profile page
Example “Notify User” box will by default not be checked.
[url]https://www.samhober.com/adminsangdao.php?dispatch=profiles.update&user_id=1425[/url]
- Order Page on right drop down menu notify customers and notify orders will not be checked
example
[url]https://www.samhober.com/adminsangdao.php?dispatch=orders.details&order_id=18333[/url]
3)View orders page under status drop down menu notify customers and notify orders will not be checked
[url]https://www.samhober.com/adminsangdao.php?dispatch=orders.manage[/url]
*****
Thank you for your request.
I have done it for you.
I replaced the following part of code:
{$lang.notify_user}
with this one:
{*FORWARDBEGIN*}
{*FORWARDEND*}
{$lang.notify_user}
in the "update.tpl" file, located in the "skins/basic/admin/views/profiles" directory, replaced the following part of code:
{assign var="order_status_descr" value=$smarty.const.STATUSES_ORDER|fn_get_statuses:true}
{include file="common_templates/select_popup.tpl" suffix="o" id=$order_info.order_id status=$order_info.status items_status=$order_status_descr update_controller="orders" notify=true notify_department=true}
{include file="common_templates/select_popup.tpl" suffix="o" id=$order_info.order_id status=$order_info.status items_status=$order_status_descr update_controller="orders" notify=true notify_department=true}
{$lang.order} #{$order_info.order_id}
{$lang.by} {if $order_info.user_id}{/if}{$order_info.firstname} {$order_info.lastname}{if $order_info.user_id}{/if}
{$lang.on} {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`"}, {$order_info.timestamp|date_format:"`$settings.Appearance.time_format`"}
with this one:
{*FORWARDBEGIN*}
{assign var="order_status_descr" value=$smarty.const.STATUSES_ORDER|fn_get_statuses:true}
{include file="common_templates/select_popup.tpl" suffix="o" id=$order_info.order_id status=$order_info.status items_status=$order_status_descr update_controller="orders" checkflag=true notify=true notify_department=true}
{include file="common_templates/select_popup.tpl" suffix="o" id=$order_info.order_id status=$order_info.status items_status=$order_status_descr update_controller="orders" checkflag=true notify=true notify_department=true}
{*FORWARDEND*}
{$lang.order} #{$order_info.order_id}
{$lang.by} {if $order_info.user_id}{/if}{$order_info.firstname} {$order_info.lastname}{if $order_info.user_id}{/if}
{$lang.on} {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`"}, {$order_info.timestamp|date_format:"`$settings.Appearance.time_format`"}
in the "details.tpl" file, located in the "skins/basic/admin/views/orders" directory, replaced the following part of code:
#{$o.order_id}
{include file="common_templates/select_popup.tpl" suffix="o" id=$o.order_id status=$o.status items_status=$order_status_descr update_controller="orders" notify=true notify_department=true status_rev="orders_total" extra=$extra_status}
{if $o.user_id}{/if}{$o.firstname} {$o.lastname}{if $o.user_id}{/if}
{$o.email}
with this one:
#{$o.order_id}
{*FORWARDBEGIN*}
{include file="common_templates/select_popup.tpl" suffix="o" id=$o.order_id status=$o.status items_status=$order_status_descr update_controller="orders" checkflag=true notify=true notify_department=true status_rev="orders_total" extra=$extra_status}
{*FORWARDEND*}
{if $o.user_id}{/if}{$o.firstname} {$o.lastname}{if $o.user_id}{/if}
{$o.email}
in the "manage.tpl" file, located in the "skins/basic/admin/views/orders" directory and replaced the following part of code:
{if $notify}
{$notify_text|default:$lang.notify_customer}
{/if}
{if $notify_department}
{$lang.notify_orders_department}
{/if}
with this one:
{*FORWARDBEGIN*}
{if $notify}
{$notify_text|default:$lang.notify_customer}
{/if}
{if $notify_department}
{$lang.notify_orders_department}
{/if}
{*FORWARDEND*}
in the "select_popup.tpl" file, located in the "skins/basic/admin/common_templates/" directory.
But please note unfortunately there is no the hook tags for these parts of code.
So it is not possible to do it unchangeable for the upgrades.