X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Your order has been sucessfully processed email (https://forum.x-cart.com/showthread.php?t=2608)

lplayer@3darchitect.co.uk 05-08-2003 09:53 AM

Your order has been sucessfully processed email
 
As far as I can see order_notification_admin.tpl is responsible for sending the order department the order detail layout.

# Notify orders department by email / func_send_mail/ in func.php

What I do not understand is that this .tpl contains:

{$lng.lbl_customer_info}
{$lng.lbl_billing_address}
{$lng.lbl_shipping_address}

as well as the {include file="mail/order_data.tpl"}

but the email doesnt actually contain any address details, only the order details.

I was wanting to create a different layout for the order department and was intending to use order_notification_admin.tpl as the basis of my new layout.

So the question is: Why do I not see the Billing/Shipping details in the Your order has been sucessfully processed email?

funkydunk 05-12-2003 09:16 AM

The standard code for the order_notification_admin template:

Code:

{* $Id: order_notification_admin.tpl,v 1.7.2.1 2003/01/31 07:12:12 svowl Exp $ *}
{config_load file="$skin_config"}
{assign var=where value="A"}
{$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_customer_info}:
---------------------
{$lng.lbl_username}:    {$order.login}
{$lng.lbl_first_name}:  {$order.firstname}
{$lng.lbl_last_name}:    {$order.lastname}

{$lng.lbl_billing_address}:
----------------
  {$lng.lbl_address}:    {$order.b_address}
  {$lng.lbl_city}:      {$order.b_city}
  {$lng.lbl_state}:      {$order.b_statename}
  {$lng.lbl_country}:    {$order.b_countryname}
  {$lng.lbl_zip_code}:  {$order.b_zipcode}

{$lng.lbl_shipping_address}:
-----------------
  {$lng.lbl_address}:    {$order.s_address}
  {$lng.lbl_city}:      {$order.s_city}
  {$lng.lbl_state}:      {$order.s_statename}
  {$lng.lbl_country}:    {$order.s_countryname}
  {$lng.lbl_zip_code}:  {$order.s_zipcode}
{$lng.lbl_phone}:        {$order.phone}
{$lng.lbl_fax}:          {$order.fax}
{$lng.lbl_email}:        {$order.email}
{$lng.lbl_url}:          {$order.url}

{if $config.General.show_cc_info eq "Y"}
{$lng.lbl_credit_card_information}:
------------------------
{$order.details}
{/if}

{include file="mail/order_data.tpl"}

{include file="mail/signature.tpl"}



The $lng.lbl etc... are the labels for the address details from the languages area. the customner details are held in the {$order.b_address} bits.

hth

lplayer@3darchitect.co.uk 05-13-2003 08:04 AM

Sorry, I was not clear about the problem:

Here is the the email I get, I assume from order_notification_admin template, so why does it not contain the details listed in the stanard template which I have not edited? (specifically the address details)


Dear sarwar!

Your order has been successfully processed.

Order id: #63
Order date: 11.05.2003 03:44




Products ordered:
-----------------

Product Code: 100001
Product: ArCon+5
Quantity: 1
Item price: бё 153.18

Total:
-------
Payment method: Credit Card (Protx VSP Form)
Delivery: 1st Class Post
Subtotal: бё 153.18



Discount: бё 0.00
Coupon saving: бё 0.00 ()
Delivery cost: бё 2.50
VAT: бё 26.81

Total: бё 182.49



--
Thank you for using Online Warehouse

Phone: 44 (0) 1420 520023
Fax: 44 (0) 1420 22807
URL: www.online-warehouse.co.uk

adpboss 05-13-2003 09:22 AM

If I undertsand your question correctly, the processed notification template is order_customer_processed.tpl.

Here are the contents.

Code:

{* $Id: order_customer_processed.tpl,v 1.13 2002/10/22 05:45:16 alfiya Exp $ *}
{config_load file="$skin_config"}
{$lng.lbl_dear} {$customer.firstname}!

{$lng.eml_order_processed}

{$lng.lbl_order_id}:      #{$order.orderid}
{$lng.lbl_order_date}:    {$order.date|date_format:"%d.%m.%Y %H:%M"}
{if $order.tracking}
{$lng.lbl_tracking_number}:  {$order.tracking}
{/if}

{include file="mail/order_data.tpl"}

{include file="mail/signature.tpl"}


This should explain why you are not getting the address info. It is not in the template.

:)


All times are GMT -8. The time now is 01:42 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.