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"}
{assign var=where value="A"}
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE b2b_pop3_order_ship SYSTEM "http://www.wdgcorp.com/dtd/b2b_pop3_order_ship.dtd">
<b2b_pop3_order_ship>
<xtn>{$order.orderid}</xtn>
<vendor_acct>AMB ENTERPRISES</vendor_acct>
<whse>MCKNIGHT</whse>
<order_number>{$order.tracking}</order_number>
<po_number></po_number>
<special_instructions>
!! $comments
</special_instructions>
<shipper_description>{$order.firstname} {$order.lastname}</shipper_description>
<shipper_addr1>{$order.b_address}</shipper_addr1>
<shipper_addr2></shipper_addr2>
<shipper_city>{$order.b_city}</shipper_city>
<shipper_state>{$order.b_statename}</shipper_state>
<shipper_postalcode>{$order.b_zipcode}</shipper_postalcode>
<shipper_country>{$order.b_countryname}</shipper_country>
<consignee_description>{$order.s_firstname} {$order.s_lastname}</consignee_description>
<consignee_addr1>{$order.s_address}</consignee_addr1>
<consignee_addr2></consignee_addr2>
<consignee_city>{$order.s_city}</consignee_city>
<consignee_state>{$order.s_statename}</consignee_state>
<consignee_postalcode>{$order.s_zipcode}</consignee_postalcode>
<consignee_country>{$order.s_countryname}</consignee_country>
<ship_date>{$order.date|date_format:$config.Appearance.date_format}</ship_date>
<ship_email>{$order.email}</ship_email>
<ship_method>{$order.shipping}</ship_method>
<ship_instructions>
!! $comments
</ship_instructions>
<ship_billto_description></ship_billto_description>
<ship_billto_addr1></ship_billto_addr1>
<ship_billto_addr2></ship_billto_addr2>
<ship_billto_city></ship_billto_city>
<ship_billto_state></ship_billto_state>
<ship_billto_postalcode></ship_billto_postalcode>
<ship_billto_telephone></ship_billto_telephone>
<ship_billterms>PREPAID</ship_billterms>
{section name=prod_num loop=$products}
<item_entry>
<sku>{$products[prod_num].productcode}</sku>
<quantity>{$products[prod_num].amount}</quantity>
<uom>Blankets</uom>
</item_entry>
{/section}
</b2b_pop3_order_ship>
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