• Resolved Sallar Rabiei

    (@sallarrabiei)


    Hi there, I use this plugin for few days. I am looking for a solution to set Add New Address as default option.

    please give me some point in this case. which file I have to edit?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Could you please try to add the below code in your active theme’s functions.php file?

    add_action('wp_footer', 'thmaf_set_default_option_as_add_new_address',99999);
    function thmaf_set_default_option_as_add_new_address() {
     if(is_checkout()){
       ?>
       <script type="text/javascript">
         (function($) {
         	$('#thmaf_billing_alt').val(['add_address']).change();
         		    
         })(jQuery, window, document)
       </script>
       <?php
     }
    }

    We hope this will help.

    Thank you!

    Thread Starter Sallar Rabiei

    (@sallarrabiei)

    Thanks @themehigh,
    it works. many thanks.

    Plugin Author ThemeHigh

    (@themehigh)

    Great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make Add New Address as default option?’ is closed to new replies.