Announcement

Collapse
No announcement yet.

Shipping / Payment Screen

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

    Shipping / Payment Screen

    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.
    Chris Dye
    http://www.kseriesparts.com

    #2
    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

    Comment


      #3
      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


        #4
        I got Affirm to show up but can't get PayPal for some reason...
        Chris Dye
        http://www.kseriesparts.com

        Comment


          #5
          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>
          with 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') 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


            #6
            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


              #7
              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


                #8
                express
                Chris Dye
                http://www.kseriesparts.com

                Comment


                  #9
                  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


                    #10
                    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


                      #11
                      Thanks for posting this Chris! We were having the same problem with the Luxe ReadyTheme and this solved it for us.

                      Comment

                      Working...
                      X