Announcement

Collapse
No announcement yet.

PayPal Express and radio button payment selection.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PayPal Express and radio button payment selection.

    Jim at Miva Merchant support gave me a great snippet to use to replace the custom hard coded radio buttons for Payment methods. I'm trying to recall which statement is for PayPal Express and which was for the default PayPal.

    This is just the section of the snippet I need to convert - the site I'm updating uses g.PaymentMethod EQ 'paypalr:paypalr for it's default PayPal (the site I used the snippet on used PayPalPro):

    Code:
    <mvt:elseif expr="l.settings:method:code EQ 'PPAL_OSEL'">
    
    <mvt:if expr = "g.PaymentMethod EQ 'paypalpro:PPAL_OSEL'">
    <label>
    <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" />
    <img src="graphics/00000001/paypal-icon.gif" alt="PayPal" /> &mvt:method:name;
    </label>
    <mvt:else>
    <label>
    <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" />
    <img src="graphics/00000001/paypal-icon.gif" alt="PayPal" /> &mvt:method:name;
    </label>
    
    </mvt:if>
    
    <mvt:elseif expr="l.settings:method:code EQ 'PAYP'">
    
    <mvt:if expr = "g.PaymentMethod EQ 'paypalpro:PAYP'">
    <label>
    <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" />
    <img src="graphics/00000001/paypal-icon.gif" alt="PayPal" /> &mvt:method:name;
    </label>
    <mvt:else>
    <label>
    <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" />
    <img src="graphics/00000001/paypal-icon.gif" alt="PayPal" /> &mvt:method:name;
    </label>
    
    </mvt:if>

    So my question is - is paypalpro:PPAL_OSEL the method for PayPal Express?

    Thanks,
    Leslie

    ps ... once I get this all figured out, I'll post the entire snippet.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Working...
X