• Customer

    Custom City Order

    Posted by: oatci Sep 11, 2021 at 15:38 (a month ago)
    Hi amazing team,

    I have added a code snippet to carry Turkey to top in country list in woocommerce (https://prnt.sc/1ru95tq) . Here is my code snippet in fucntions.php:

    add_filter('woocommerce_sort_countries', '__return_false');
    add_filter( 'woocommerce_countries', 'change_country_order_in_checkout_form' );
    function change_country_order_in_checkout_form($countries)
    {
    $tr = $countries['TR'];
    return array('TR' => $tr) + $countries;
    }

    Is there any option that to custom sort also Cities for Turkey in dropdown list? (https://prnt.sc/1ru987a)

    BTW currently even if i didn't select any country, in City dropdown autoamtically filled by Turkey cities in page load. This is strange?

    Regards.

  • Customer

    Posted by: Maason, Sep 13, 2021 at 01:42 (a month ago)

    Hi oatci
    I am really sorry about this question because i do not support for customize work. Hope you understand me.
    Have a nice day!
    Regards,
    Maason
  • Customer

    Posted by: oatci, Sep 13, 2021 at 08:56 (a month ago)

    It's ok. Thank you anyway :)
  • Manager

    Posted by: Maason, Sep 14, 2021 at 22:48 (a month ago)

    Thanks

INSTALLATION SERVICE

Theme Installation: $49. Pay now

CUSTOMIZED SERVICES

Use our expert service to turn your ideas into reality. Click here to provide your needed information.

WORKING TIME

Our support service works from Monday to Friday.
Mean time (GMT +7):
+ 7:30 - 11:30 AM
+ 1:30 - 5:30 PM
We will try to answer all the questions within 24 hours and solve them as quickly as possible