PDA

View Full Version : Checking Payment Type during check out


crazypc
08-08-06, 10:34 PM
Hi,

I'd like to be able to display payment specific instructions after the customers selects the payment type. Is there a variable that can be checked that will give the payment type that was selected? I'm assuming that I can then use the payment type in a conditional block to display the appropriate instructions.

I searched these forums but can't find anything like this...

Thanks for any help.

Vic - WolfPaw Computers
08-08-06, 11:29 PM
If you have OpenUI installed, you can test against the %VAR(g.PaymentMethod)% variable.

jason - jmh web services
08-09-06, 12:47 AM
Hi,

I'd like to be able to display payment specific instructions after the customers selects the payment type. Is there a variable that can be checked that will give the payment type that was selected? I'm assuming that I can then use the payment type in a conditional block to display the appropriate instructions.

I searched these forums but can't find anything like this...

Thanks for any help.
Assuming you are using OpenUI, put %OUI% at the very start of your Payment information page header (OPAY) and then use the following code:

%IF(g.PaymentMethod EQ 'check:check')%
You paid by check, little pig!
%IFEND%

To find the value of the payment method, view the source of the previous screen and look at the values of the payment options.

crazypc
08-09-06, 03:42 PM
Thanks for the information! Is there a resource that lists the variables? This would be so helpful

Vic - WolfPaw Computers
08-09-06, 03:54 PM
Have you read the OpenUI OpenToken Usage documentation (http://www.openui.org/docs/html/OPEN_TOKENS/index.html)? That would be a good start.

A thorough understanding of the MIVA Database structure (http://smallbusiness.miva.com/support/docs/api/db_HTML/MMdb4x.html) also helps.

However, many of the variables you can find by viewing source code of various screens. Any form input tag value can be referenced as a global variable.

crazypc
08-17-06, 04:33 PM
Thanks for the references.