![]() |
The Customer_Notes field, and XML in notification emails
I'm editing my /mail/order_notification_admin.tpl file to fit the specifications of a system used by my distributor for automated shipping.
One of the fields I need to include is Customer_Notes (taken from the payment screen field), but I can't figure out what the variable name is that I need to use. Also, am I going to run into any snags embedding XML into the notification email? As it stands, my /mail/order_notification_admin.tpl file looks like this: Code:
{config_load file="$skin_config"} The two lines starting with !! are the ones that I need to replace with the proper variable. (Same variable, both places.) Once I complete this and try to make it work, do you see any reasons that XCart might choke on the XML? I'm a complete newbie when it comes to XCart and SmartyTags, so please try to avoid sailing over my head. :wink: Thanks, M |
Oooh. Not good.
It just dawned on me that the /mail/order_notification_admin.tpl email is sent when the order is initially placed, regardless of the outcome of the charge attempt.
#-o This won't work, because my shipping house should only receive orders that are approved. Is there a way to send a notification after credit card approval? If a card is declined, or there is some other error keeping a charge from being processed, the last thing I want to do is automatically instruct my shipping house to ship the order. Thanks, M |
On further tinkering...
On further tinkering, I've discovered the code in func.php which sends a notification to the customer when an order is completed, in the func_complete_order function:
Code:
func_send_mail($userinfo["email"], "mail/order_cust_complete_subj.tpl", "mail/order_customer_complete.tpl", $config["Company"]["orders_department"], false); It seems to me that I could create a new pair of .tpl files in the email directory called notification_shippinghouse.tpl and notification_shippinghouse_subj.tpl and add the following line just after the one above. Code:
func_send_mail(shippinghouse\@miracleblanket.com, "mail/notification_shippinghouse_subj.tpl", "mail/notification_shippinghouse.tpl", $config["Company"]["orders_department"], false); So, the question (other than "Would that work?") then becomes: Would a change to the func.php file be likely to survive a software upgrade? Would it void my customer support with X-Cart? Are there any other gotchyas I should be aware of? Most importantly, is there a better way to do this? Thanks, M |
All times are GMT -8. The time now is 02:16 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.