Announcement

Collapse
No announcement yet.

Questions About Template Changes for Address Validation

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

    Questions About Template Changes for Address Validation

    I'm not actually running on a ReadyTheme, but rather than updating the full Address Validation code to CADA, CADE, ACAD, ACED, and OCST I was going to create a Content Section similar to what is shown in the Miva Docs example for Shadows here: https://docs.miva.com/miva10/referen...essing#Address

    1. If I use the Content Sections to store the Address Validation code, should I select to "Wrap in a <div> tag" or not? I see that all of my existing content sections now show "Wrap in <div> tag" as selected - is that default? When is it necessary to have that option selected/deselected?

    2. The Address Validation code appears to be identical for each of the five pages, except for the final line (code edited as apparently script tags are forbidden in posts?):

    Code:
    <s****t src="&mvte:global:clientside_url;Store_Code=&mvta: store:code;&Filename=ToggleDetails.js&Primaddr=shi pping&Shipping=D&Billing=O"></s****t>
    The script code line does not appear on the CADA and CADE pages.


    So, would the Content Section contain the code up to that final script line, and then for the three pages that should contain the script the following would be added to those pages:

    Code:
    <mvt:item name="readytheme" param="contentsection( 'address-validation' )" />
    <s****t src="&mvte:global:clientside_url;Store_Code=&mvta: store:code;&Filename=ToggleDetails.js&Primaddr=shi pping&Shipping=D&Billing=O"></s****t>
    Last edited by delcorsets; 09-29-20, 10:34 AM.
    Psydde Delicious
    Delicious Boutique & Corseterie
    Philadelphia, PA
    www.DeliciousBoutique.com
    www.DeliciousCorsets.com

    #2
    I cannot get this to work at all. Clean install of Shadows V2 and have turned on in shipping rules. I do see the code on OCST <mvt:item name="readytheme" param="contentsection( 'address_validation' )" /> but nothing happens during checkout. What am I missing?

    Comment


      #3
      Originally posted by Zinbar View Post
      I cannot get this to work at all. Clean install of Shadows V2 and have turned on in shipping rules. I do see the code on OCST <mvt:item name="readytheme" param="contentsection( 'address_validation' )" /> but nothing happens during checkout. What am I missing?
      Have you configured one of the valid shipping modules?
      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


        #4
        Yes, I have UPS integrated and showing real time rates.

        Comment


          #5
          Have you tried using an address that you know may not be correct?
          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
            Matt Zimmermann I decided against using the Content Sections as described in the thread's original post (although I am still curious about the questions from that post,)

            If I use the Content Sections to store the Address Validation code, should I select to "Wrap in a <div> tag" or not? I see that all of my existing content sections now show "Wrap in <div> tag" as selected - is that default? When is it necessary to have that option selected/deselected?
            Regarding the validation code additions;

            I instead made the Template changes to ACAD and ACED first to test.. Validation should occur on these pages when adding or editing existing address, correct?

            I have both Address Validation checkboxes selected in Shipping Settings > Shipping Rules, and have tried assigning both UPS and USPS as the validation source. I'm not seeing validation take place for known incorrect addresses as I'm adding new addresses?.. Not sure what I'm missing..
            Psydde Delicious
            Delicious Boutique & Corseterie
            Philadelphia, PA
            www.DeliciousBoutique.com
            www.DeliciousCorsets.com

            Comment


              #7
              Hi Psydde,

              The content section would not need the surrounding DIV element. You are correct in how the function should work, when adding or editing an address, on any of the customer screens assigned, the address should be validated. I am checking into why this seems to not be working consistently.
              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
                delcorsets and Zinbar Since both of these issues seem to be related, I am going to recommend you contact support so they can test the system and see what is going on.
                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


                  #9
                  Will do, thanks Matt.

                  Comment

                  Working...
                  X