[wcj_country_select_drop_down_list]

Add country selection drop-down list to WooCommerce shop frontend

Description

[wcj_country_select_drop_down_list] shortcode adds country selection drop-down list to WooCommerce shop frontend, so customer can manually select country and, e.g., change currency/price.

You can limit listed countries, use this example options for shortcode: countries="US,GB,DE".

Accessible through:
  • [wcj_country_select_drop_down_list]
Tested on WooCommerce 2.6.14 and WordPress 4.7.3
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

9 Comments

  1. Anthony July 11, 2015 at 11:42 pm #

    Hi,
    Is it possible to edit this list to remove the countries I have not set up currency conversion for?

    Reply

    • Valentin Solovjov September 16, 2015 at 7:30 pm #

      Dear Anthony,

      from what page/list you want to remove country list?

      BR,
      Val

  2. whoaloic November 16, 2015 at 1:10 pm #

    Hello,
    is it possible to get currencies instead of countries?

    Best regards.

    Reply

  3. Val January 11, 2016 at 9:25 pm #

    I tried using your [wcj_country_select_drop_down_list] shortcode on registration page but it did not capture the full css dropdown box parameters (I am using Jobify with Woocommerce & Woocommerce registration page).
    There were no title, no arrow on the right end of the box to open the box, no placeholder and the padding was not matching the other default fields.
    How can I achive matching the default css with your shortcode ?

    Reply

  4. Layth August 27, 2016 at 11:04 pm #

    I wonder where we can find all the arguments / options supported by each or all shortcodes …. i mean i have to look through each shortcode to find new argument. Here they show the countries=”US,PL” option to limit number of currencies…. but that only shows a drop down with no text to explain to customer what it is for ….
    [wcj_country_select_drop_down_list
    countries="US,SA"
    before= "Change currency"]

    before arrg does that … u can use before or after …
    i am sure there are many more arguments out there … are they all documented on some page as they are not documented in the specific shortcode page

    Reply

  5. Salehe Abdallah January 5, 2017 at 9:58 am #

    I want to use shortcode [wcj_country_select_drop_down_list] but you said use this shortcode and you did not tell where I should put this code so that to get the result. thanx please help

    Reply

  6. Salehe Abdallah January 5, 2017 at 10:01 am #

    I repeat this comment because I misspelled my website address. I want to use shortcode [wcj_country_select_drop_down_list] but you said use this shortcode and you did not tell where I should put this code so that to get the result. thanx please help

    Reply

  7. James February 27, 2017 at 7:21 am #

    I seem to have a slight problem with the width setting of the country select drop-down box. The ends of the longer country names are being cut off, for example “United Kingdo” rather than “United Kingdom (UK)” and “United States” rather than “United States (US)”. For the UK example, the drop-down box width is being set by element css at 146px whereas it actually needs 186px to display fully.

    I’m guessing the width is being set as an element attribute so that it can be varied according to the length of the selected country name, is that right? If so, could you check the widths set for the longer country names (e.g. US, UK, Rep of Ireland, etc) please? It is only the small box showing the selected currency that seems to have the wrong width. When you click the arrow to expand the drop-down box, the expanded selection it sized correctly according to the longest name in the list.

    Thanks, James

    Reply

    • James February 27, 2017 at 7:39 am #

      I have temporarily fixed this with a css override. Not pretty or ideal, but does the job for now!

      .wSelect-theme-classic.wSelect {
      width: 190px !important
      }

      For me, I don’t really want the widget to resize depending upon which country name is selected. I would prefer it to have its width set automatically based on the longest country name in the list, irrespective of which country name is actually selected at the time. Does that make sense?

      Is there any way that we could neaten up the box by combining all the European Union countries that use the Euro into a single drop-down selection option such as “Europe” or “Euro Zone”? It’s a bit cluttered to have a long list of France, Germany, Belgium, etc, etc, when all we really want to be able to select is that it is a country using the Euro.