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

During Checkout, Howto check Payment Method?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-04-2005, 03:48 PM
 
Jeremy.Freeman Jeremy.Freeman is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 79
 

Default During Checkout, Howto check Payment Method?

I'd like to customize the Checkout Process, and would like to echo some HTML based upon an if statement.. I want to do something along the lines of after the customer selects their payment method, on the following page.. if the payment method is credit card, echo this.. if check, echo this.. How would this if statement look, and whats the variable for payment method? Thanks
__________________
Jeremy Freeman
EZWatch Store
X-Cart v4.1.5
Reply With Quote
  #2  
Old 04-04-2005, 03:55 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

You can't echo, you'd need to edit the smarty tpl files.

You can edit your skin1/customer/main/checkout.tpl to use an if statement such as:

Code:
{if $payment_data.payment_method eq "1"}Show this text{/if}

You can view the radio select buttons in your source pages to find out what numbers are what.
Reply With Quote
  #3  
Old 04-05-2005, 03:01 PM
 
Jeremy.Freeman Jeremy.Freeman is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 79
 

Default

Thank you for your time, I was able to complete what I was needing to do with the information you provided.


Just a fyi for anyone reading, $payment_data.payment_method in 3.5.14 of X-Cart actually returns the name of the payment method.. "Check" or "Credit Card".. not the number.
__________________
Jeremy Freeman
EZWatch Store
X-Cart v4.1.5
Reply With Quote
  #4  
Old 04-05-2005, 04:25 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Good to know. You aren't by any chance from Abby are you?
Reply With Quote
  #5  
Old 04-06-2005, 07:32 AM
 
Jeremy.Freeman Jeremy.Freeman is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 79
 

Default

Quote:
Originally Posted by Jon
Good to know. You aren't by any chance from Abby are you?

Abby? Cant say I am.. What or Where is Abby?
__________________
Jeremy Freeman
EZWatch Store
X-Cart v4.1.5
Reply With Quote
  #6  
Old 04-06-2005, 07:40 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

If you don't know then your not Just used to go to school with a Jeremy Freeman.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:50 PM.

   

 
X-Cart forums © 2001-2020