Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Define / display unique message depending on payment method

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-01-2005, 05:56 AM
 
mycomac mycomac is offline
 

Member
  
Join Date: Jan 2005
Posts: 19
 

Default Define / display unique message depending on payment method

I want to display a unique message in "order_message.tpl" (at the top of the order invoice) that will be determined by the payment method that the person chose during checkout.

Specifically, if the customer chooses "Fax Ordering" during checkout, I want to display a message on the invoice that instructs the person to print out the invoice, complete the section with their preferred payment information (credit card info), and to fax the form to our fax number.

If the customer chooses some other type of payment method (like "Phone order" or "Purchase order"), then the cart should show a different message and instructions unique to that payment method.

I know how to set up variales in "Languages", but I don't know how to call them depending on the checkout method that was used, or if it's necessary to define them in one of the PHP files.

Thanks in advance for any help!
Reply With Quote
  #2  
Old 09-01-2005, 07:50 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

{if $order.payment_method eq "Fax Ordering"}
message
{else}
message
{/if}

you can call the message if you define them at admin, for instance lbl_fax_order_message

then, it should be,

{$lng.lbl_fax_order_message}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:55 AM.

   

 
X-Cart forums © 2001-2020