Announcement

Collapse
No announcement yet.

Can I ship to certain countries online but allow shipping to other countries offline?

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

    Can I ship to certain countries online but allow shipping to other countries offline?

    If you have 'Do not allow shipping' selected for the 'If Shipping Band not defined' option on the 'Configuration' tab of the Shipping and Handling settings then only the countries set in your 'Zones' will be available to online and offline orders. If you want to be able to take offline orders from other countries then you can effectively hard-code the countries that you want available online on your website but set up shipping and VAT options for all countries that you want available offline. The following example will show you how to set up UK and EU countries so they are available online and offline but all other countries to only be available offline:

    * go to the 'Design' menu and select 'Library'
    * on the 'Layouts' tab, expand the 'Checkout Area' group (click the '+')
    * double-click on the 'Invoice Location' layout to edit it
    * search for (line 12 on a default layout):



    * replace this variable with:

    <!-- <actinic:variable name="InvoiceCountryList" />-->
    <select id="lstInvoiceCountry" name="LocationInvoiceCountry">
    <option value=""><Actinic:Variable Name="SelectCountry"/>
    <option value="UK">United Kingdom
    <option value="AT">Austria
    <option value="BE">Belgium
    <option value="BG">Bulgaria
    <option value="CY">Cyprus
    <option value="CZ">Czech Republic
    <option value="DK">Denmark
    <option value="EE">Estonia
    <option value="FI">Finland
    <option value="FR">France
    <option value="DE">Germany
    <option value="GR">Greece
    <option value="HU">Hungary
    <option value="IE">Ireland
    <option value="IT">Italy
    <option value="LV">Latvia
    <option value="LT">Lithuania
    <option value="LU">Luxembourg
    <option value="MT">Malta
    <option value="NL">Netherlands
    <option value="PL">Poland
    <option value="PT">Portugal
    <option value="RO">Romania
    <option value="SK">Slovak Republic
    <option value="SI">Slovenia
    <option value="ES">Spain
    <option value="SE">Sweden
    </select>


    * click 'OK'
    * double-click on the 'Delivery Location' layout to edit it
    * search for (around line 12 again):



    * replace this variable with:

    <select id="lstDeliveryCountry" name="LocationDeliveryCountry">
    <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"/>
    <option value="UK">United Kingdom
    <option value="AT">Austria
    <option value="BE">Belgium
    <option value="BG">Bulgaria
    <option value="CY">Cyprus
    <option value="CZ">Czech Republic
    <option value="DK">Denmark
    <option value="EE">Estonia
    <option value="FI">Finland
    <option value="FR">France
    <option value="DE">Germany
    <option value="GR">Greece
    <option value="HU">Hungary
    <option value="IE">Ireland
    <option value="IT">Italy
    <option value="LV">Latvia
    <option value="LT">Lithuania
    <option value="LU">Luxembourg
    <option value="MT">Malta
    <option value="NL">Netherlands
    <option value="PL">Poland
    <option value="PT">Portugal
    <option value="RO">Romania
    <option value="SK">Slovak Republic
    <option value="SI">Slovenia
    <option value="ES">Spain
    <option value="SE">Sweden
    </select>


    * click 'OK'
    * close the Library
    * go to 'Settings | Business Settings | Shipping & Handling'
    * on the 'Configuration' tab select 'Use default charge' (you can enter a default charge here if you wish)
    * in 'Business Settings | Tax', highlight the 'No Tax Levied' tax zone and ensure that 'Do not allow 'None of the above' as a zone member' is not ticked
    * click 'OK'

    Now when using an offline order all countries should be available. If you ship to one of the countries that is only available offline on a regular basis then you could set up a shipping zone with classes specific to it to automatically work out the shipping or you can use the 'Revised Shipping Cost' field on the offline order to manually enter the shipping cost.

    To add other countries to the above list you can get the country code from 'Settings | Locations'.

    Note that if you want to allow shipping to the US and Canada online then you also need to replace the 'InvoiceStateList' on the 'Invoice Location' layout with:

    <!--<actinic:variable name="InvoiceStateList" />-->
    <select id="lstInvoiceRegion" name="LocationInvoiceRegion">
    <option value="UndefinedRegion"><Actinic:Variable Name="SelectState"/>
    <option value="US.AL">Alabama
    <option value="US.AK">Alaska
    <option value="US.AZ">Arizona
    <option value="US.AR">Arkansas
    <option value="US.CA">California
    <option value="US.CO">Colorado
    <option value="US.CT">Connecticut
    <option value="US.DE">Delaware
    <option value="US.DC">District of Columbia
    <option value="US.FL">Florida
    <option value="US.GA">Georgia
    <option value="US.HI">Hawaii
    <option value="US.ID">Idaho
    <option value="US.IL">Illinois
    <option value="US.IN">Indiana
    <option value="US.IA">Iowa
    <option value="US.KS">Kansas
    <option value="US.KY">Kentucky
    <option value="US.LA">Louisiana
    <option value="US.ME">Maine
    <option value="US.MD">Maryland
    <option value="US.MA">Massachusetts
    <option value="US.MI">Michigan
    <option value="US.MN">Minnesota
    <option value="US.MS">Mississippi
    <option value="US.MO">Missouri
    <option value="US.MT">Montana
    <option value="US.NE">Nebraska
    <option value="US.NV">Nevada
    <option value="US.NH">New Hampshire
    <option value="US.NJ">New Jersey
    <option value="US.NM">New Mexico
    <option value="US.NY">New York
    <option value="US.NC">North Carolina
    <option value="US.ND">North Dakota
    <option value="US.OH">Ohio
    <option value="US.OK">Oklahoma
    <option value="US.OR">Oregon
    <option value="US.PA">Pennsylvania
    <option value="US.RI">Rhode Island
    <option value="US.SC">South Carolina
    <option value="US.SD">South Dakota
    <option value="US.TN">Tennessee
    <option value="US.TX">Texas
    <option value="US.UT">Utah
    <option value="US.VT">Vermont
    <option value="US.VA">Virginia
    <option value="US.WA">Washington
    <option value="US.WV">West Virginia
    <option value="US.WI">Wisconsin
    <option value="US.WY">Wyoming
    <option value="CA.AB">Alberta
    <option value="CA.BC">British Columbia
    <option value="CA.MB">Manitoba
    <option value="CA.NB">New Brunswick
    <option value="CA.NF">Newfoundland
    <option value="CA.NT">Northwest Territory
    <option value="CA.NU">Nunavut
    <option value="CA.NS">Nova Scotia
    <option value="CA.ON">Ontario
    <option value="CA.PE">Prince Edward Island
    <option value="CA.PQ">Quebec
    <option value="CA.SK">Saskatchewan
    <option value="CA.YT">Yukon Territory
    </select>

    Do the same with the 'DeliveryStateList' variable on the 'Delivery Location' layout but replace the first two lines of the above with:

    <!--<actinic:variable name="DeliveryStateList" />-->
    <select id="lstDeliveryRegion" name="LocationDeliveryRegion">


    If you have created 'states' for other countries in 'Settings | Locations' then you need to add option to the above lists where the value is 'CountryCode.StateAbbreviation'.
    Attached Files
Working...
X