'None' Is Not A Business

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AaronM
    Mini Mivite

    • Mar 2013
    • 80

    #1

    'None' Is Not A Business

    We have started getting a lot of customers using 'none' or 'home' as a company name and getting the cheaper UPS commercial address shipping rates. Is there a way to just force all rates returned by Miva's UPS shipping calculator to be residential? Maybe a way to ignore the company field for shipping calculations?
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    Yes this is a setting built into Miva:

    http://docs.miva.com/docs/residential-checkbox
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • ocpxc02
      Mivite


      • Mar 2006
      • 366

      #3
      I looked at the docs found here: http://docs.miva.com/how-to-guides/residential-checkbox. They appear to discuss changing to a default checkbox. Rather than have a checkbox, I simply want the logic to default to residential when looking up rates. I don't need to display the phrase "Residential Address" and don't want the customer to have the ability to override it. What is the best way to do this and which page templates require it? My first thought is to simply set a hidden input, but thought I'd ask before doing a bunch of tests.


      Thanks,
      Paul
      Paul

      Comment

      • Kent Multer
        Mega Mivite









        • Mar 2006
        • 3255

        #4
        Yes, you should be able to use a hidden field, with name ShipResidential and a value of 1, to force all shipping calculations to be residential. If you have a small number of customers that are businesses, you could handle them with a custom customer field to identify them, and an mvt:if element on the page template. The mvt:if can remove the hidden field when those customers check out; they do have to be logged in to their business account, of course.

        HTH --
        Kent Multer
        Magic Metal Productions
        http://TheMagicM.com
        * Web developer/designer
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        http://www.amazon.com/exec/obidos/IS...icmetalproducA

        Comment

        • ocpxc02
          Mivite


          • Mar 2006
          • 366

          #5
          Thanks. Is this only needed on the OSEL page? How about the SERT page template?
          Paul

          Comment

          • Kent Multer
            Mega Mivite









            • Mar 2006
            • 3255

            #6
            I think you meant OCST, not OSEL. But Yes, I suppose the same code can be used on SERT, or any page where the Residential checkbox is used.
            Kent Multer
            Magic Metal Productions
            http://TheMagicM.com
            * Web developer/designer
            * E-commerce and Miva
            * Author, The Official Miva Web Scripting Book -- available on-line:
            http://www.amazon.com/exec/obidos/IS...icmetalproducA

            Comment

            • ocpxc02
              Mivite


              • Mar 2006
              • 366

              #7
              Yes, I did mean OCST. Sorry for the confusion. I've added the input to the form, but setting the value to 1 or 0 doesn't seem to affect the UPS shipping rates as I would expect.

              <form id="ocst_form" method="post" action="&mvt:global:secure_sessionurl;">
              <input type="hidden" name="ShipResidential" value="1" />
              Paul

              Comment

              • Brennan
                Super Moderator









                • Jun 2009
                • 3481

                #8
                I think you also need to change the setting in Miva from Automatic to one of the "Prompt" options. Otherwise it will still look at the company field to determine what rates to use. Keep in mind changing this setting will reset your OCST, ACED, ACAD, OSEL, INVC, OPAY page templates so you'll need to revert them all back one after you make the change.
                Brennan Heyde
                VP Product
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment

                Working...
                X