cancel
Showing results for 
Search instead for 
Did you mean: 

Call function after rendering checkout form

Call function after rendering checkout form

How I can call a function after rendering all checkout fields on the first step.

 

Magento_Checkout/templates/onepage.phtml

 

<script>
        require([
            'jquery',
            'autocomplete'
        ], function ($) {
            $(function () {
                $(document).applyAutocomplete({
                    postcode: '#postcode',
                    streetnumber: '#street\\[0\\]',
                    street: '#street\\[1\\]',
                    city: '#city'
                });
            });
        });
    </script>
1 REPLY

Re: Call function after rendering checkout form

Hi @x_falkone_x,

 

 


Since this has been posted several weeks ago, I would like to know if you were able to find the solution.


Please let us know.
Best regards.
Gabriel

If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".