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

Smarty variable for payment methods?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-01-2004, 01:15 PM
 
viridiancity viridiancity is offline
 

Newbie
  
Join Date: Mar 2004
Posts: 7
 

Default 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 ...
__________________
viridian city media

xcart v3.5.2 [win] (under development)
Reply With Quote
  #2  
Old 09-02-2004, 08:04 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

I think you may want to look at payment_offline.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 09-02-2004, 09:38 AM
 
viridiancity viridiancity is offline
 

Newbie
  
Join Date: Mar 2004
Posts: 7
 

Default

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?
__________________
viridian city media

xcart v3.5.2 [win] (under development)
Reply With Quote
  #4  
Old 09-02-2004, 12:07 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 09-03-2004, 03:04 AM
 
viridiancity viridiancity is offline
 

Newbie
  
Join Date: Mar 2004
Posts: 7
 

Default

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.
__________________
viridian city media

xcart v3.5.2 [win] (under development)
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 02:41 PM.

   

 
X-Cart forums © 2001-2020