• Resolved Aida711

    (@aida711)


    We have been selling to the Canary Islands over the past 3 years every so often.
    Today, a potential customer called us from the Canary Islands and said that he is unable to get any shipping costs.

    We checked and found that there is no way for us to add Canary Islands to the shipping in woo. It just says something like No Option Found when I type it in, inside admin, shipping settings.

    We contacted the table rate shipping plugin developer who replied that countries is a core woocommerce issue and there was nothing he could do.

    We have the options in general settings set to sell and send all over the world so it isn’t that – anyway, as said, we know it used to be on there as short a time ago as a couple of months, so iit must have happened in recent woo updates.

    Help please if anyone knows how to fix this – thanks for your time ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi,

    You can add items to the country list with this snippet.

    https://docs.woocommerce.com/document/add-a-new-country-to-countries-list/

    Cheers!

    Thread Starter Aida711

    (@aida711)

    Thank you Shane.

    Adding this here to help anyone else – I couldn’t get the code right for adding ‘Canary Islands’ to shipping zones. An excellent support worker in woo livechat gave me this code and it worked a dream ??

    It goes in your child theme’s functions.php
    Add this code first and then go to shipping zones and add the Canary Islands there and it will get added.

    /** START: ADDING CANARY ISLANDS TO SHIPPING

    Add a new country to countries list
    */
    add_filter( ‘woocommerce_countries’, ‘handsome_bearded_guy_add_my_country’ );
    function handsome_bearded_guy_add_my_country( $countries ) {
    $new_countries = array(
    ‘CANISL’ => __( ‘Canary Islands’, ‘woocommerce’ ),
    );

    return array_merge( $countries, $new_countries );
    }

    add_filter( ‘woocommerce_continents’, ‘handsome_bearded_guy_add_my_country_to_continents’ );
    function handsome_bearded_guy_add_my_country_to_continents( $continents ) {
    $continents[‘EU’][‘countries’][] = ‘CANISL’;
    return $continents;
    }

    /*END: ADDING CANARY ISLANDS TO SHIPPING */

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add Canary Islands to shipping in woocommerce’ is closed to new replies.