![]() |
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
|
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. |
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. |
Good to know. You aren't by any chance from Abby are you?
|
Quote:
Abby? Cant say I am.. What or Where is Abby? |
If you don't know then your not :) Just used to go to school with a Jeremy Freeman.
|
All times are GMT -8. The time now is 04:31 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.