We are using custom place order button instead of default Magento.

<div class="iosc-place-order-container">
    <button class="u-hide action primary checkout iosc-place-order-button" data-bind="click: placeOrder">
        <span data-bind="i18n: 'Place Order Now'"></span>
    <div class="actions-toolbar-trigger" id="continue-to-payment-trigger-wrapper">
        <button type="button" id="continue-to-payment-trigger" class="button action continue primary" disabled='disabled'>
            <span data-bind="i18n: 'Place Order Now'"></span>

I am keeping my custom place order button disabled by default. I need to enable it only when the customer has filled all the required fields of the shipping address.

I tried the following but it doesn't work

$(document).on('change keyup paste', '.form-shipping-address', function() {
    if ($(".form-shipping-address").validation()) {
        //enable place order button                 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.