• Resolved sharewisdom

    (@sharewisdom)


    Dear Plugin Creators,

    Thank you very much for the good plugin. In the Woocommerce Checkout I would like to remove the word “Billing” in the Error Notification message.

    For example when a field is not filled out it appears like :

    Billing First name is a required field”

    Can you please provide me with a code that removes the word “Billing at the beginning of every error notification?

    Thanks a lot in advance.

    Kind regards

    Sharewisdom

Viewing 7 replies - 1 through 7 (of 7 total)
  • +1, If it could be add it to the main code, would be amazing.

    • This reply was modified 1 year, 4 months ago by Samuel.
    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @sharewisdom ,

    We will need to add a new filter to accommodate your request so that you can customize the error notification text.

    Are you using checkout fields that don’t have a Billing or Shipping designation? I’d like to understand why you don’t want the field type to be included in the notification. That “Billing” or “Shipping” prefix helps a customer to locate the required field that’s empty.

    Kind Regards

    Thread Starter sharewisdom

    (@sharewisdom)

    Hi Payment Plugins,

    Thanks a lot for your reply! Yes I′m using checkout fields! It would be great if you could include this new filter. Would that require to update the plugin to the latest version so once the filter got included that I can make this change?

    Thanks a lot in advance!

    Kind regards

    ShareWisdom

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @sharewisdom

    Would that require to update the plugin to the latest version so once the filter got included that I can make this change?

    Yes, we will need to include that in the next release of the plugin. We’ll add a filter so you can customize the messaging.

    Kind Regards

    Thread Starter sharewisdom

    (@sharewisdom)

    Hi Payment Plugins,

    Perfect! That sounds great!

    Could you kindly notify me by leaving a message in this tread again once that would be possible?

    Thank you very much!

    Kind regards

    ShareWisdom

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @sharewisdom

    Version 1.0.36 has been released. The filter wc_ppcp_checkout_field_validation_label was added which will allow you to add your own custom message when a field fails validation.

    https://plugins.trac.www.ads-software.com/browser/pymntpl-paypal-woocommerce/tags/1.0.36/src/Rest/Routes/CartOrder.php#L141

    Example:

    add_filter('wc_ppcp_checkout_field_validation_label', function($label, $field){
        return sprintf( __( '%s is a required field.', 'woocommerce' ), $field['label']);
    }, 10, 2);

    Kind Regards

    Thread Starter sharewisdom

    (@sharewisdom)

    Hi Payments Plugin,

    Thank you very much. Everything works perfect. One more question is it possible to make all mandatory fields bold? Like this:

    First Name” is a required field or “Last Name” is a required field etc.

    Thanks a lot in advance.

    Kind regards

    ShareWisdom

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove the word “Billing” in Error notifications’ is closed to new replies.