How to Add Canary Island as a Country on Cart Page to get WooCommerce Shipping Rates

This is a business case related to requests from various customers using ELEX WooCommerce DHL Express / eCommerce / Paket Shipping Plugin with Print Label.

The problem

Shipping is an integral part of an eCommerce business and it can create hassles if your country is not listed in a leading WordPress eCommerce plugin, like WooCommerce. This business case is related to the exact same problem. One of our customers, who is using our DHL WooCommerce Plugin had reported that there is no field to select the country as Canary Island. Due to this, users on the customer’s website have to select Spain as a country and set the Canary Island zip code to get the shipping rates from DHL API. This was creating confusion for users and our client was losing a huge amount of business.

Arriving at a solution

As the problem was clear, the ELEX product development team came up with a solution very quickly to resolve the customer issue. With our solution, customers can easily select Canary Island as a country and ship freely everywhere with the DHL WooCommerce plugin.

In this case study, you will get to know how we helped our customers to ship using DHL to the Canary Island region without any trouble. Please see below screenshot where you can see that there is no country as Canary Island in the WooCommerce cart page.

As per the screenshot, we are not getting any search results for Canary Island, so we have added the below code snippet in the functions.php file of the theme folder to take Canary Island as a country in WooCommerce cart page to get live rates for DHL WooCommerce shipping.

add_filter( 'woocommerce_countries', 'elex_add_canary_island_to_woocommerce' );
function elex_add_canary_island_to_woocommerce( $countries ) {
$new_countries = array(
'IC' => __( 'Canary Island', 'woocommerce' ),
);
return array_merge( $countries, $new_countries );
}

After adding the code snippet, we can see Canary Island as a country option in the WooCommerce cart page to get the live rates for DHL shipping services. Please see below screenshot for better understanding:

This way, we have solved this critical DHL shipping case for our Canary Island customers. Now they are shipping successfully with our plugin.

Please visit the Product Page of ELEX WooCommerce DHL Express / eCommerce / Paket Shipping Plugin with Print Label to find the full set of features and capabilities.To know what our customers are talking about WooCommerce DHL shipping plugin, please check customer reviews.

Popular Tags

Blog Business Case Code Snippet Documentation ELEX Address Validation & Google Address Autocomplete Plugin for WooCommerce ELEX Amazon Payments Gateway for WooCommerce ELEX Authorize.net Payment Gateway for WooCommerce ELEX Bulk Edit Products, Prices & Attributes for WooCommerce ELEX Dynamic Pricing and Discounts Plugin for WooCommerce ELEX EasyPost Auto-Generate & Email Labels Add-On ELEX EasyPost Shipping Method Plugin for WooCommerce ELEX Google Product Feed Plugin ELEX Hide WooCommerce Shipping Methods Plugin ELEX ShipEngine Multi-Carrier Shipping & Label Printing Plugin for WooCommerce ELEX Stamps.com Shipping Plugin with USPS Postage for WooCommerce ELEX Stamps.com USPS Auto-Generate & Email Labels Add-On ELEX WooCommerce Abandoned Cart Recovery with Dynamic Coupons ELEX WooCommerce Australia Post Bulk Label Printing Add-On ELEX WooCommerce Australia Post Shipping Plugin with Print Label & Tracking ELEX WooCommerce Catalog Feed for Facebook & Instagram ELEX WooCommerce Catalog Mode, Wholesale & Role Based Pricing ELEX WooCommerce Choose Your Delivery Date Plugin ELEX WooCommerce DHL Express / eCommerce / Paket Shipping Plugin with Print Label ELEX WooCommerce DHL Express Bulk Label Printing Add-On ELEX WooCommerce Discount per Payment Method Plugin ELEX WooCommerce EasyPost Bulk Label Printing Add-On ELEX WooCommerce EasyPost Return Label Add-On ELEX WooCommerce Name Your Price Plugin ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount Plugin ELEX WooCommerce Stamps.com Bulk Label Printing Add-On ELEX WooCommerce USPS Shipping Plugin with Print Label ELEX WooCommerce Request a Quote plugin for WooCommerce ELEX WordPress Embed YouTube Video Gallery ELEX WordPress Embed YouTube Video Gallery Plugin FAQ Getting Started Knowledge Base Open Source HelpDesk & Customer Support Ticketing System – Simple & Flexible Plugin Integrations ReachShip WooCommerce Multi-Carrier & Conditional Shipping Plugin Shipping Plugins Uncategorized WooCommerce WSChat - WordPress Live Chat Plugin WSDesk - WordPress Helpdesk Plugin