WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Extra Checkout Fields for Brazil
Adiciona mascara pro CEP (2 posts)

5 stars
  1. microcell
    Member
    Posted 1 year ago #

    Valeu pelo plugin man...

    Precisei disso... se alguem precisar é só adicionar ao arquivo jquery.maskedinput.min.js

    // CEP.
    $('#billing_postcode').focusout(function(){
    var postcode, element;
    element = $(this);
    element.unmask();
    postcode = element.val().replace(/\D/g, '');

    if (postcode.length > 8) {
    element.mask('99999-999');
    } else {
    element.mask('99999-999');
    }
    }).trigger('focusout');

    Abraço

  2. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    Already added therein.
    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.