Hello all,
I have used this code taken from a different thread to add radio button credit card selection to my site:
My questions are:
1) How do I force the customer to "select one" and not have one selected by default? We want it to give a warning if a CC was not selected (like say "You did not select a credit card").
2) How do I change the order of the credit cards? I tried just moving the code around, but the Amex was always first. I want Amex second to last (before PayPal).
You can view the site at http://www.speakerrepair.com/mm5/merchant.mvc - we have not gone live yet and are converting from 4 to 5.5.
Thanks for any help!
Eric
I have used this code taken from a different thread to add radio button credit card selection to my site:
Code:
<mvt:foreach array="paymentmethods" iterator="method"> <mvt:if expr="l.settings:method:code EQ 'AmerExp' OR l.settings:method:code EQ 'American Express'"> <span class="payment-option"><input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" id="payment_&mvte:method:code;" class="inputRadio" checked="checked" /><label for="payment_&mvte:method:code;"><img src="/mm5/graphics/mmui/amex-icon.jpg" alt="&mvte:method:name;" /></label></span> <mvt:elseif expr="l.settings:method:code EQ 'Discover'"> <span class="payment-option"><input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" id="payment_&mvte:method:code;" class="inputRadio" /><label for="payment_&mvte:method:code;"><img src="/mm5/graphics/mmui/discover-icon.jpg" alt="&mvte:method:name;" /></label></span> <mvt:elseif expr="l.settings:method:code EQ 'MasterCard'"> <span class="payment-option"><input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" id="payment_&mvte:method:code;" class="inputRadio" /><label for="payment_&mvte:method:code;"><img src="/mm5/graphics/mmui/mastercard-icon.jpg" alt="&mvte:method:name;" /></label></span> <mvt:elseif expr="l.settings:method:code EQ 'Visa'"> <span class="payment-option"><input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" id="payment_&mvte:method:code;" class="inputRadio" /><label for="payment_&mvte:method:code;"><img src="/mm5/graphics/mmui/visa-icon.jpg" alt="&mvte:method:name;" /></label></span> <mvt:else> <span class="payment-option"><input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" id="payment_&mvte:method:code;" class="inputRadio" /><label for="payment_&mvte:method:code;"><img src="/mm5/graphics/mmui/paypal-icon.jpg" alt=&mvte:method:name;</label></span> </mvt:if> </mvt:foreach>
1) How do I force the customer to "select one" and not have one selected by default? We want it to give a warning if a CC was not selected (like say "You did not select a credit card").
2) How do I change the order of the credit cards? I tried just moving the code around, but the Amex was always first. I want Amex second to last (before PayPal).
You can view the site at http://www.speakerrepair.com/mm5/merchant.mvc - we have not gone live yet and are converting from 4 to 5.5.
Thanks for any help!
Eric
Comment