![]()  | 
	
	
		
 Smarty variable for payment methods? 
		
		
		
		I want to add a block of text (address, etc.) that only appears when the payment method selected is a Personal Check or a Money Order. 
	I know *where* to put it in the checkout.tpl, but I need help sussing out the relevant Smarty variables and syntax: {if ? eq ? or ?}{/if} Please and thank you ...  | 
	
		
 I think you may want to look at payment_offline.tpl 
	 | 
	
		
 you know, i did ... and it consists of exactly this: 
	{* $Id: payment_offline.tpl,v 1.2.6.1 2003/11/21 07:09:23 mclap Exp $ *} ... no actual code. i restored the file just to be sure, and it didn't change. is there supposed to be something there?  | 
	
		
 If the paymentid is in the URI, you can do {$smarty.get.paymentid eq "1"} ... {/if} or else you'll need to $smarty->assign() the payment method if its not available. 
	 | 
	
		
 Boomer, could you spell that out for me a bit more?  I'm obviously not as fluent in smarty as you're assuming.  :} 
	I'm figuring there's a variable already assigned that contains the chosen payment method. I know I can print the type of payment method with {$payment_data.payment_method}. I'm looking for something like: {if $payment_data.payment_method eq "personal check"}[text here]{/if} ... except, you know, code that actually works. <wry> Remedial help appreciated.  | 
| All times are GMT -8. The time now is 10:30 PM. | 
	Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.