Announcement

Collapse
No announcement yet.

Trying to allow Canadian Bill To addresses on our site:

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

    Trying to allow Canadian Bill To addresses on our site:

    Hello forum:
    Ran into a couple of problems attempting this:
    1. Canadian provinces are sorted into US states in the select.
    2. Entering a Canadian postal code for a British Columbia address causes Miva to kick back OCST with an error:"One or more required fields were not filled out correctly" and ZIP Code is shown in red..
    Hope someone can suggest an easy solution for this.
    Thanks, Larry
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    Solved,
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment


      #3
      please share the solution if you remember.

      Comment


        #4
        We added the Canadian Provinces after building the <select for US states:
        <mvt:comment> @@@ sort states by state name not state code @@@ </mvt:comment>
        <mvt:item name="toolkit" param="states" />
        <select name="BillStateSelect" tabindex="48">
        <option id="BillStateOff" value="">Select State</option>
        <mvt:foreach iterator="state" array="states">
        <mvt:if expr="l.settings:state:code">
        <mvt:if expr="BillStateSelect EQ l.settings:state:code
        AND NOT g.BillState_Invalid">
        <option id="Bill&mvte:state:code;" value="&mvte:state:code;" SELECTED>&mvte:state:name;</option>
        <mvt:else>
        <option id="Bill&mvte:state:code;" value="&mvte:state:code;">&mvte:state:name;</option>
        </mvt:if>
        </mvt:if>
        </mvt:foreach>
        <option id="ShipAB" value="AB">Alberta</option>
        <option id="ShipBC" value="BC">British Columbia</option>
        <option id="ShipMB" value="MB">Manitoba</option>
        <option id="ShipNB" value="NB">New Brunswick</option>
        <option id="ShipNL" value="NL">Newfoundland/Labrador</option>
        <option id="ShipNT" value="NT">Northwest Territories</option>
        <option id="ShipNS" value="NS">Nova Scotia</option>
        <option id="ShipNU" value="NU">Nunavut</option>
        <option id="ShipON" value="ON">Ontario</option>
        <option id="ShipPE" value="PE">Prince Edward Island</option>
        <option id="ShipQC" value="QC">Quebec</option>
        <option id="ShipSK" value="SK">Saskatchewan</option>
        <option id="ShipYT" value="YT">Yukon</option>
        </select>
        Larry
        Luce Kanun Web Design
        www.facebook.com/wajake41
        www.plus.google.com/116415026668025242914/posts?hl=en


        Comment

        Working...
        X