Custom order data (email) error
Hope someone can help me with this.
I am trying to create a custom order_data.tpl to be included in the provider order_notification.tpl template.
Here is what I did.
Created a new template called order_data_provider.tpl
{* $Id: order_data.tpl,v 1.23 2002/11/22 06:26:07 svowl Exp $ *}
{$lng.lbl_products_ordered}:
------------------------------------------------
{section name=prod_num loop=$products}
{$lng.lbl_sku}: {$products[prod_num].productcode}
{$lng.lbl_product}: {$products[prod_num].product}
{$lng.lbl_quantity}: {$products[prod_num].amount}
{if $products[prod_num].product_options ne ""}
{$lng.lbl_selected_options}:
{$products[prod_num].product_options|replace:"\n":"\n "}
{/if}
Then altered the order_notification.tpl
{* $Id: order_notification.tpl,v 1.16 2002/10/25 12:40:11 alfiya Exp $ *}
{config_load file="$skin_config"}
{$lng.eml_this_is_order} {$order.orderid} {$lng.eml_notification}.
{$lng.lbl_order_id}: #{$order.orderid}
{$lng.lbl_order_date}: {$order.date|date_format:"%d.%m.%Y %H:%M"}
{$lng.lbl_order_status}: {$order.status}
-------------------------------------------------
{$lng.lbl_shipping_address}:
-------------------------------------------------
{$order.firstname} {$order.lastname}
{$order.s_address}
{$order.s_city}
{$order.s_statename}
{$order.s_countryname}
{$order.s_zipcode}
{$order.phone}
-------------------------------------------------
{include file="mail/order_data_provider.tpl"}
{include file="mail/signature.tpl"}
The error I get in the provider email is
Parse error: parse error, unexpected $ in /home/mas/public_html/shop/templates_c/%%538/%%538954996/order_data_provider.tpl.php on line 47
Where the order data should be.
Any ideas
I have acheived this on a previous install of X-Cart but I can't see what I'm doing wrong.
Thanks in advance
Terry
__________________
X-Cart 4.0
Windoze XP Pro
Sick and tired of figuring out code just wanna get on with my life and selling my goods, it\'s raining here too
|