View Single Post
  #9  
Old 12-12-2005, 06:21 PM
 
ultimatephysique ultimatephysique is offline
 

Advanced Member
  
Join Date: Dec 2005
Location: Victoria, Australia
Posts: 33
 

Default

Hey Boomer,

Thanks for your reply,

Can you help me getting it to work.

The code i have is as follows.

Code:
cart.php elseif ($mode=="order_message") { if($paymentid=='20') { $smarty->assign("paymentby","cc"); } elseif ($paymentid=='17') { $smarty->assign("paymentby","paypal"); } elseif ($paymentid=='10') { $smarty->assign("paymentby","bank"); } elseif ($paymentid=='7') { $smarty->assign("paymentby","cheque"); } elseif ($paymentid=='5') { $smarty->assign("paymentby","giftvoucher"); } $smarty->assign("main","order_message"); $location[] = array(func_get_langvar_by_name("lbl_order_processed"), ""); }

in /customer/main/order_message.tpl i added the following where i wanted the payment details displayed.
Code:
{ include file="mail/payment_method.tpl" }

i created a file called mail/payment_method.tpl
Code:
Called payment_method.tpl :) {$lng.lbl_order_id} {$order.orderid} {if $order.paymentby eq "cc"} {$lng.lbl_paymentby_cc} {/if} {if $paymentby eq "paypal"} {$lng.lbl_paymentby_paypal} {/if} {if $order.paymentby == "bank"} {$lng.lbl_paymentby_bank} {$orderid} {/if} {if $paymentby eq "cheque"} {$lng.lbl_paymentby_cheque} {/if} {if $paymentby eq "giftvoucher"} {$lng.lbl_paymentby_giftvoucher} {/if}

However, the if statements dont work in the last bit of code. What is returned on the screen is this

Quote:
Called payment_method.tpl
Order id

it doesnt return the orderid or the correct payment method.

where have i screwed up?
__________________
X-Cart 4.1.6
Reply With Quote