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 1

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

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.