View Single Post
  #1  
Old 02-23-2003, 08:22 AM
 
cloud9 cloud9 is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 43
 

Default Add Payment Address to Invoice

One thing that seems to be left out of the X Cart is when the user selects a type of payment that needs to be sent to your company via regular mail, like a Money Order, there doesn't seem to be any special attempt to inform the buyer of where to send the payment.

One easy way I found to deal with this is to add some code to the Invoice template to display the mailing address for the payment. The Invoice template seems to be displayed after the user completes a purchase and is also sent to them via email.

Here is an example of how this can be done for Mail Orders. Just add the following code to the very end of the mail/order_data.tpl, this winds up at the end of the invoice...


/mail/order_data.tpl


Code:
{if $order.payment_method eq "Money Order"} Payment Address: ------------------------ {$config.Company.company_name} {$config.Company.location_address} {$config.Company.location_city}, {$config.Company.location_state} {$config.Company.location_zipcode} {/if}


You may need to play with the spaces and returns after pasting this in to get the layout you want.

Hope this is useful...
Reply With Quote