Announcement

Collapse
No announcement yet.

Payment methods - change order?

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

    Payment methods - change order?

    Is there a way I can change the order of my payment methods? In my payment gateway page in Miva admin, I don't see an option to move the methods around.

    As a side note, do most people here use the four-page checkout? Customer Info-->Shipping & Payment Selection-->Payment Info-->Invoice

    I'm thinking about how that can be narrowed down to fewer pages (but also including Upsell at checkout). Or is this not worth the effort?

    Thanks for any help.
    Doug
    Using Miva Merchant since 2004
    StoreSMART.com

    #2
    Re: Payment methods - change order?

    There is a module that does this:

    http://www.mivacentral.com/Merchant2...=WCW-PAYGROUP5

    Or you if you're familiar with the template code you can do it that way as well.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Payment methods - change order?

      Thanks, that's just what I'm looking for. I should have searched Miva Central!
      Doug
      Using Miva Merchant since 2004
      StoreSMART.com

      Comment


        #4
        Re: Payment methods - change order?

        Brennan, is payment method sorting something that might become stock in the future? We deal with it on almost every build, would be great if it were a built-in option.

        Comment


          #5
          Re: Payment methods - change order?

          Yes I can answer that, it will become stock (as will be the option to switch to radio buttons or auto card type detect). Think Payment Supermod but built in (like we did with Shipping Rules).
          Last edited by Rick Wilson; 09-04-14, 07:03 AM.
          Thanks,

          Rick Wilson
          CEO
          Miva, Inc.
          [email protected]
          https://www.miva.com

          Comment


            #6
            Re: Payment methods - change order?

            Thank you!

            Comment


              #7
              Re: Payment methods - change order?

              Did this happen yet?

              I have occasional customers writing to ask how to pay without an AMX card. I'd like to change the card order, and would also like to have radio buttons instead of the dropdown arrow. My customers aren't all that tech savvy.

              Thanks!

              Comment


                #8
                Re: Payment methods - change order?

                For Shipping
                Code:
                                  <mvt:if expr="ISNULL l.settings:shippingmethods">
                                     <mvt:if expr="ISNULL l.settings:fallbackshippingmethod">
                                        <div class="shipping-row"><input type="radio" name="ShippingMethod" value="" />Unable to Calculate Shipping Costs</div>
                                        <p class="bold">No valid shipping methods are available for your order. You will be contacted regarding shipping when your order is processed.</p>
                                     <mvt:else>
                                        <div class="shipping-row"><input type="radio" name="ShippingMethod" value="" />&mvt:fallbackshippingmethod:name; (&mvt:fallbackshippingmethod:formatted_price;)</div>
                                     </mvt:if>
                                  <mvt:else>
                
                                  <mvt:foreach array="shippingmethods" iterator="method">
                                     <div class="shipping-row">
                                     <mvt:if expr="pos1 EQ 1">
                                        <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" />&nbsp;&nbsp;&mvt:method:name;
                                        <mvt:if expr="NOT ISNULL l.settings:method:price">
                                           (&mvt:method:formatted_price;)
                                        </mvt:if>
                                     <mvt:else>
                                        <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" />&nbsp;&nbsp;&mvt:method:name;
                                        <mvt:if expr="NOT ISNULL l.settings:method:price">
                                           (&mvt:method:formatted_price;)
                                        </mvt:if>
                                     </mvt:if>
                                  </div>
                
                                  </mvt:foreach>
                                  </mvt:if>
                For Payment, to sort them, just fix the settings like so:
                Code:
                 <div class="shipping-row"><input type="radio" name="PaymentMethod" value="paypalpro:VISA">&nbsp;&nbsp;Visa<br></div>
                                     <div class="shipping-row"><input type="radio" name="PaymentMethod" value="paypalpro:MCRD">&nbsp;&nbsp;MasterCard<br></div>
                                     <div class="shipping-row"><input type="radio" name="PaymentMethod" value="paypalpro:DISC">&nbsp;&nbsp;Discover<br></div>
                                     <div class="shipping-row"><input type="radio" name="PaymentMethod" value="paypalpro:AMEX">&nbsp;&nbsp;American Express<br></div>
                                     <div class="shipping-row"><input type="radio" name="PaymentMethod" value="paypalpro:PPAL_OSEL">&nbsp;&nbsp;PayPal<br></div>
                or just put it in the for each


                Code:
                <mvt:foreach array="paymentmethods" iterator="method">
                <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;">&nbsp;&nbsp;&mvt:method:name;<br></div>
                
                </mvt:foreach>
                Since no payment options are pre-selected, you'll need validation. Put this in your header:

                Code:
                <mvt:if expr="g.screen EQ 'OSEL'">
                      <script>
                         function RadioValidator()
                            {
                            var ShowAlert = '';
                            var AllFormElements = window.document.getElementById("ShipPaySelect").elements;
                            for (i = 0; i < AllFormElements.length; i++)
                               {
                               if (AllFormElements[i].type == 'radio')
                                  {
                                     var ThisRadio = AllFormElements[i].name;
                                     var ThisChecked = 'No';
                                     var AllRadioOptions = document.getElementsByName(ThisRadio);
                                     for (x = 0; x < AllRadioOptions.length; x++)
                                     {
                                        if (AllRadioOptions[x].checked && ThisChecked == 'No')
                                        {
                                           ThisChecked = 'Yes';
                                           break;
                                        }
                                     }
                
                                     var AlreadySearched = ShowAlert.indexOf(ThisRadio);
                                     if (ThisChecked == 'No' && AlreadySearched == -1)
                                     {
                                        if (!ThisTitle1 && ThisRadio == 'ShippingMethod')
                                        {  var ThisTitle1 = 'Shipping Method';
                                           ShowAlert = ShowAlert + 'You Must Select a ' + ThisTitle1 + '\n';
                                        }
                
                                        if (!ThisTitle2 && ThisRadio == 'PaymentMethod' )
                                        {  var ThisTitle2 = 'Payment Method';
                                           ShowAlert = ShowAlert + 'You Must Select a ' + ThisTitle2 + '\n';
                                        }
                
                                     }
                                  }
                               }
                               if (ShowAlert != '')
                               {
                                  alert(ShowAlert);
                                  return false;
                               }
                
                               else
                               {
                                  return true;
                               }
                            }
                      </script>
                </mvt:if>
                Bruce Golub
                Phosphor Media - "Your Success is our Business"

                Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                phosphormedia.com

                Comment


                  #9
                  Re: Payment methods - change order?

                  Thanks, Bruce, you're the best!

                  Comment


                    #10
                    Re: Payment methods - change order?

                    no problem, in this case, I had this page opened at the time...otherwise it would take me 20 minutes just to remember where I put it...ok, not put it, but what I called it :)
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment


                      #11
                      Re: Payment methods - change order?

                      I getcha there! :~)

                      Comment

                      Working...
                      X