On the shipping and payment selection screen for some reason I only have credit card as an option, I don't have PayPal or Affirm.
Announcement
Collapse
No announcement yet.
Shipping / Payment Screen
Collapse
X
-
Hi Chris,
I'm not familiar with Affirm. With PayPal, to show the option, you will need to modify the IF statements on OSEL which check for PAL in the payment method.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
-
Affirm is a financing option.
So it is setup to hide or show so you can select, in my case, Affirm, Credit Card, or PayPal but I have to allow two of the options to show along with credit card.Chris Dye
http://www.kseriesparts.com
Comment
-
I got Affirm to show up but can't get PayPal for some reason...Chris Dye
http://www.kseriesparts.com
Comment
-
Hi Chris,
On OSEL, try replacing this:
Code:<mvt:if expr="miva_array_elements(g.unique_payment_modules) EQ 1"> <mvt:if expr="pos1 EQ 1"> <input type="hidden" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" /> </mvt:if> <mvt:else> <mvt:if expr="(l.settings:method:module EQ 'check') OR (l.settings:method:module EQ 'cod') OR (l.settings:method:module EQ 'customercredit')"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> &mvt:method:name; </label> <mvt:elseif expr="l.settings:method:module NE 'check' AND l.settings:method:module NE 'cod' AND l.settings:method:module NE 'customercredit' AND NOT('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> Credit Card </label> <mvt:foreachstop /> </mvt:if> </mvt:if>
Code:<mvt:if expr="miva_array_elements(g.unique_payment_modules) EQ 1"> <mvt:if expr="pos1 EQ 1"> <input type="hidden" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" /> </mvt:if> <mvt:else> <mvt:if expr="(l.settings:method:module EQ 'check') OR (l.settings:method:module EQ 'cod') OR (l.settings:method:module EQ 'customercredit') OR ('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> &mvt:method:name; </label> <mvt:elseif expr="l.settings:method:module NE 'check' AND l.settings:method:module NE 'cod' AND l.settings:method:module NE 'customercredit' AND NOT('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> Credit Card </label> <mvt:foreachstop /> </mvt:if> </mvt:if>
Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
That is what I had other than adding Affirm (which does show up) but PayPal doesn't.
Code:<mvt:if expr="miva_array_elements(g.unique_payment_modules) EQ 1"> <mvt:if expr="pos1 EQ 1"> <input type="hidden" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" /> </mvt:if> <mvt:else> <mvt:if expr="(l.settings:method:module EQ 'check') OR (l.settings:method:module EQ 'cod') OR (l.settings:method:module EQ 'customercredit') OR (l.settings:method:module EQ 'affirm') OR ('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> &mvt:method:name; </label> <mvt:elseif expr="l.settings:method:module NE 'check' AND l.settings:method:module NE 'cod' AND l.settings:method:module NE 'customercredit' AND l.settings:method:module NE 'affirm' AND NOT ('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> Credit Card </label> <mvt:foreachstop /> </mvt:if> </mvt:if>
Chris Dye
http://www.kseriesparts.com
Comment
-
Hi Chris,
Are you using one of the PayPal gateways or PayPal Express?Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
PayPal Express should only be accessible from the BASK page. I believe there is a separate token you would need to add to OSEL to have it show up.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
that does make sense and how it is normally setup, the issue is how Luxe is designed with the side menu the customer will click on checkout so their process is different.
The problem is actually the foreachstop since it stops the progress of the loop. So if PayPal is after American Express it will not load it. You have to reorder the payment priorities so that PayPal is above all credit cards.
Code:<mvt:if expr="miva_array_elements(g.unique_payment_modules) EQ 1"> <mvt:if expr="pos1 EQ 1"> <input type="hidden" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" /> </mvt:if> <mvt:else> <mvt:if expr="(l.settings:method:module EQ 'check') OR (l.settings:method:module EQ 'cod') OR (l.settings:method:module EQ 'customercredit') OR (l.settings:method:module EQ 'affirm') OR (l.settings:method:module EQ 'paypalpro')"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> &mvt:method:name; </label> <mvt:elseif expr="l.settings:method:module NE 'check' AND l.settings:method:module NE 'cod' AND l.settings:method:module NE 'customercredit' AND l.settings:method:module NE 'affirm' AND (l.settings:method:module NE 'paypalpro')"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> Credit Card </label> <mvt:foreachstop /> </mvt:if> </mvt:if>
Chris Dye
http://www.kseriesparts.com
Comment
Comment