Announcement

Collapse
No announcement yet.

Country State/Province not showing

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

    Country State/Province not showing

    Hi All

    Me again. Working on a V9 upgrade to a V10

    In the V9 we had States/Provinces set for the USA, Canada and the UK

    If a customer chose either of these as their country, then they were required to also choose the State/Province.

    On the new Checkout Page 0, once uploaded, the State/Province drop down option is not showing, leading to an error message if a user selects the USA etc as this State/Province field has not been selected.

    I loaded up a default Actinic installation and looked at the Checkout Page 0 and it does not seem to be there either?

    In the business settings I have all these zones set up for Tax and Shipping.

    If I look in the header of the uploaded site, I see that the Javascript has been returned and is present

    Code:
    <script language="javascript" type="text/javascript">
    var g_mapDeliveryCountryStateMap = new Object('UK','US');
    g_mapDeliveryCountryStateMap['UK'] = new Array('UK.E','England','UK.S','Scotland','UK.W','Wales','UK.NI','Northern Ireland','UK.IOW','Isle of Man','UK.CI','Channel Islands','UK.SOH','Shetland & Outer Hebridies','UK.OK','Orkney Islands');
    g_mapDeliveryCountryStateMap['US'] = new Array('US.AL','Alabama','US.AK','Alaska','US.AZ','Arizona','US.AR','Arkansas','US.CA','California','US.CO','Colorado','US.CT','Connecticut','US.DE','Delaware','US.DC','District of Columbia','US.FL','Florida','US.GA','Georgia','US.HI','Hawaii','US.ID','Idaho','US.IL','Illinois','US.IN','Indiana','US.IA','Iowa','US.KS','Kansas','US.KY','Kentucky','US.LA','Louisiana','US.ME','Maine','US.MD','Maryland','US.MA','Massachusetts','US.MI','Michigan','US.MN','Minnesota','US.MS','Mississippi','US.MO','Missouri','US.MT','Montana','US.NE','Nebraska','US.NV','Nevada','US.NH','New Hampshire','US.NJ','New Jersey','US.NM','New Mexico','US.NY','New York','US.NC','North Carolina','US.ND','North Dakota','US.OH','Ohio','US.OK','Oklahoma','US.OR','Oregon','US.PA','Pennsylvania','US.RI','Rhode Island','US.SC','South Carolina','US.SD','South Dakota','US.TN','Tennessee','US.TX','Texas','US.UT','Utah','US.VT','Vermont','US.VA','Virginia','US.WA','Washington','US.WV','West Virginia','US.WI','Wisconsin','US.WY','Wyoming');
    
    </script>
    And the same for g_mapInvoiceCountryStateMap

    I have reverted to factory settings for the checkout process in the library.

    Any thoughts on what the issue could be?

    #2
    See: http://community.sellerdeck.com/showthread.php?t=48194
    Peblaco

    Comment


      #3
      I will give that a go Peblaco

      Comment


        #4
        OK, tried that Peblaco and refreshed website.

        Now I am getting

        "A General Script Error Occurred
        Error: Error opening configuration file ../clients/uktob/acatalog/prompt.fil. No such file or directoryPress the Browser back button and try again or contact the site owner."

        So, I try a Purge and Refresh from Troubleshooting and get the following error

        Code:
        Actinic received a server error from the web server.  The CGI scripts are not executing properly on the server.  The error could be caused by several things.  Check:
        - the 'Path to the Perl shell'
        - the 'CGI script extension'
         - the 'Path to CGI-BIN'
        - the 'CGI-BIN URL.
        - the amount of web space left on your server
        - if your server is configured to accept POSTs to CGI scripts
        - the permissions on the server: 
        
        On Linux/Unix based servers the permissions should be:
        cgi-bin (755) – drwxr-xr-x
        Online Store Folder (777) – drwxrwxrwx
        On Windows based servers (need to be checked with the hosting company): 
        IIS
        cgi-bin = read/execute
        Online Store Folder = read/write/execute
        NTFS
        cgi-bin = Catalog's FTP account needs 'Change' permissions on the directory
        Online Store Folder = Catalog's FTP account needs 'Change' permissions on the directory AND the IUSR_<servername> account needs to have 'Change' permissions on the directory
        
         Run Web | Configure Web Site Details... to review your web site configuration.
        So I do a Test network settings and all test pass without issue....

        Ermmm, the shop is getting more broken

        Comment


          #5
          OK, deleting the contents of the CGI-bin before doing a purge has sorted out the Script error.

          Back to the original issue

          The State/Province drop down is still not appearing on Checkout Page 1 after changing the js file as Peblaco linked to above.

          Any other ideas?

          Does the State /Province actually show during checkout anymore, or is this something Actinic has changed, I dont see it in the default install.....

          Comment


            #6
            Does anyone have an example of the State/Province drop down working in V10?

            Comment


              #7
              Could there be a missing bit of Javascript in the code?

              If the Delivery address only appears if the check box is ticked, using JS then maybe the same is true for the State/Province drop down...

              Comment


                #8
                I have been checking through the Design for a default install and this particular shop and notice that the following is in the design for Both Checkout Page 0 's

                Code:
                <actinic:variable name="CheckoutPrompt" value="Both Addresses Country" if="%3cactinic%3avariable%20name%3d%22InvoicePrompt009Visible%22%20%2f%3e"/>
                   <actinic:variable name="CheckoutPrompt" value="Both Addresses Line 4" if="%3cactinic%3avariable%20name%3d%22InvoicePrompt007Visible%22%20%2f%3e"/>
                So, the call for the States/Provinces line in the address is there - but for some reason it is not being input.

                Which I suppose comes back to settings in the Tax set up - but I have these as mentioned above and they are the same in the default install, and the States/Provinces shows in the Default.....

                But not in the Site I am trying to sort out....

                grrrrrrr

                Anything else I should be checking?

                Comment


                  #9
                  OK, I am thinking that this may be something wrong with the database now....

                  Corrupt not working Checkout Page 0
                  Click image for larger version

Name:	act3.jpg
Views:	1
Size:	86.4 KB
ID:	543033
                  Notice that it is still showing County as an input box, instead of this field being a drop down under the Country drop down.

                  A default install screenshot for comparison below.

                  And you will see that in the Code section below - it has the same
                  Both Addresses Line 1
                  Both Addresses Line 2
                  Both Addresses Line 3
                  Both Addresses Country
                  Both Addresses Line 4

                  But this is not applying for the shop

                  Default install Checkout Page 0
                  Click image for larger version

Name:	act4.jpg
Views:	1
Size:	106.3 KB
ID:	543032
                  Notice the </SPAN ACT> after the Chris Dicken name in the Name/Cardholder field...
                  Could this be messing up the following fields?

                  Comment


                    #10
                    Could there be a corruption in the Design Text section?

                    On the Invoice Address Tab I have checked that the Invoice County/State/Province is checked to show.

                    And now I have a "Address Line 4" showing after the Country drop down????

                    I dont think this should be set here - it is not on the default install.

                    Which brings it back to the Tax issue...

                    I really am stuck here, and I cant understand why this wont just show the State/Province etc

                    Comment


                      #11
                      Could someone please have a look at this attached image.

                      How am I getting 2 different layouts showing in the the code area and the Design Tree.

                      Click image for larger version

Name:	act5.jpg
Views:	1
Size:	173.7 KB
ID:	543034

                      The actual page is following what is in the Design Tree - but this is not reflected in the code area, so being very difficult to try and get to the bottom of this....

                      Comment


                        #12
                        Design tree shows what is in use, the code layout shows the overall layout and usually things you are not necessarily using, if that makes sense lol.

                        Comment


                          #13
                          Hehe Leehack

                          OK, I am trying another tack now - I can get the State (Address Line 4) input box to show if I select this to show in the Design Text

                          And now seeing if reapplying the State bit as a drop down if a country that has states is shown by using the instructions here http://community.actinic.com/showthread.php?t=45511

                          I think that maybe this was removed when I reverted the checkout process to Factory settings.......

                          Comment


                            #14
                            Sorted I think.

                            It was a case of reapplying that Address Line 4 to the Checkout page 0 - it had lost this in the upgrade due to the changes between V9 and V10.

                            Comment


                              #15
                              All checkout layouts when upgrading to v10 should be set back to factory settings IME, I thought we had said this right at the start but it appears to have been mentioned in another thread with maybe another person. Glad you're sorted anyway, thanks for the update.

                              Comment

                              Working...
                              X