| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The Customer_Notes field, and XML in notification emails | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
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. ![]() Thanks, M |
|||||||
#2
|
|||||||
|
|||||||
![]() 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.
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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:
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:
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|