Announcement

Collapse
No announcement yet.

removing 'select state if appropriate' dropdown

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

    removing 'select state if appropriate' dropdown

    Hi All,

    I have few US orders, and want to remove the dropdown that shows a list of states / provinces.

    Cant find any info on it though.

    Have tried removing the select state variable from the shipping template, but I get an error saying the country/state selection is invalid.

    any bright ideas?

    andy
    Andy Warner

    www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
    www.RPGMiniatures.com D&D and Star Wars Miniatures

    Both running the Cart from Search Page hack

    Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

    All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

    #2
    Make sure you have no states selected in the following locations:

    Shipping zones in 'Business Settings | Shipping and Handling'
    Tax zones in 'Business Settings | Tax'
    Payment zones in 'Business Settings | Payment and Security' (by selecting 'Limited by Location')

    You can add the US and Canada, but then remove all states from the zones by selecting then and clicking the '>' button.

    Comment


      #3
      Removing State Drop Down list

      Hi, I saw this response from 2004(!) and have tried putting it into effect but am still seeing the dropdown list.

      If I limit payment zones by location I end up with another dropdown for the invoice address, which I don't need.

      If I try and comment out the Actinic:LOCATION TYPE="DELIVERSELECTSTATE" I get the "Select Shipping Destination - The country/region combination you selected is invalid. Please check and re-enter your selection."

      Can anyone help me? Its driving me mad!
      (By the way I first looked into this communiry last night and its great! Saved me so much time and agony...

      Originally posted by cdicken
      Make sure you have no states selected in the following locations:

      Shipping zones in 'Business Settings | Shipping and Handling'
      Tax zones in 'Business Settings | Tax'
      Payment zones in 'Business Settings | Payment and Security' (by selecting 'Limited by Location')

      You can add the US and Canada, but then remove all states from the zones by selecting then and clicking the '>' button.

      Comment


        #4
        Hi Sarah

        You cannot comment that variable out, as it is needed. Also for you one, do not limit payment zone by location. Instead please could you advise what version of Actinic are you running. If you are using Business, then have you also setup customer accounts, as this will provide the two drop down list box.

        Please advise

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment


          #5
          Hi, I know this is a bit of an old post but I'm running into the same problem.

          I'm currently running Actinic Designer 8.5.2 and the client will be running Actinic Business 8.5.2 also, I believe.

          I have been through all of the steps to remove the US and Canadian States/Provinces, but I'm still seeing State/Province drop-down list. I have followed Chris' instructions with no avail. How can remove this without causing errors on the site?

          I have uploaded the site to a test area:
          http://s236341880.websitehome.co.uk/...log/index.html

          Richard
          Web . Design . Multimedia . Branding

          Comment


            #6
            Richard,

            You would be better off taking a look at the Advanced Users guide, page 99, for the topic 'Hiding the States List Unless Required'.

            This change will hide the 'Select state/province if applicable' list unless either the USA or Canada is selected in the list.

            1. Go to 'Design | Library | Layouts' and expand the 'Checkout Area' group.
            2. Open the 'Delivery Location' layout.
            3. Locate this code:
            <Actinic:LOCATION TYPE="DELIVERSELECTSTATE">
            <actinic:variable name="DeliveryStateList" />
            </Actinic:LOCATION>
            4. Replace it with this code:
            <div id="showhidearea" style="visibility: hidden">
            <Actinic:LOCATION TYPE="DELIVERSELECTSTATE">
            <actinic:variable name="DeliveryStateList" />
            </Actinic:LOCATION>
            </div>
            5. Now click 'OK' on this layout and go to the 'Delivery' country list group.
            6. Open the 'Delivery Country List' layout
            7. Click the orange 'Click here to edit list layout settings' link.
            8. Replace the entire contents of the 'Start Of List' field with the following:
            <select id="lstDeliveryCountry" name="LocationDeliveryCountry" onchange="javascript:div = document.getElementById('showhidearea'); if (this.options[this.selectedIndex].value == 'US' || this.options[this.selectedIndex].value == 'CA') div.style.visibility = 'visible'; else div.style.visibility = 'hidden';">
            <option value="">
            <Actinic:Variable Name="SelectCountry" if="%3cactinic%3avariable%20name%3d%22InvoiceLocationIsUsed%22%20%2f%3e%20%3d%3d%20False"/>
            <Actinic:Variable Name="UseInvoiceLocation" if="%3cactinic%3avariable%20name%3d%22InvoiceLocationIsUsed%22%20%2f%3e"/>
            9. Click OK (twice) and then close the library and upload.
            Note that the 'US' and 'CA' in bold in the code above are the country codes for the USA and Canada. You can replace these with different country codes if you want this to happen with different locations.
            Kind regards,
            Bruce King, Mole End Software Support
            Integrated label paper for Actinic A4 Paper with one or two peel off labels.
            One Stop Automation Automate Actinic. Mole End Automation works while you play.
            Mole End Product Mash for Actinic A suite of marketing feeds for your Actinic Store

            Actinic Upgrade and Design Service

            Comment


              #7
              Hi Bruce,

              Thanks for your reply.

              I didn't want the state selection to appear at all, even if US or Canada are chosen so I've just added a div with a visibility set to hidden and that works great. Don't know why I didn't think to try that.

              Thanks for your help.

              Richard
              Web . Design . Multimedia . Branding

              Comment

              Working...
              X