• Resolved fburatti

    (@fburatti)


    First of all thanks for your plugin.
    In wcpdf_IT_piva_checkout_field_process() function there are several calls to deprecated $woocommerce->add_error and this (if the match VAT is typed incorrectly) stops the checkout with woocommerce 2.3.

    you must update the code with something like:

    wc_add_notice (__ ('Please enter your VAT number', "woocommerce-pdf-english-add-on"), 'error');

    https://wordpress.org/plugins/woocommerce-pdf-invoices-italian-add-on/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Deprecated $woocommerce->add_error in validation’ is closed to new replies.