Support » Plugin: WooCommerce » Changing the checkout page warning notice

  • Resolved clubafterlifeq

    (@clubafterlifeq)


    I have looked through 20+ files and for the life of me I can’t find where to edit the notice that appears at the bottom of the cart. There are no gateways enabled and the message says:

    “Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.”

    I would love to change this but I can’t find the relevant php file (or whatever). Any help would be immensely appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • annieaan

    (@annieaan)

    Hi!
    Do you just want to change the look of the warning or make it not show up at all?
    – You can do this easily with a custom css plugin, in the wp admin area.
    Or do you want the warning to say something else?
    – You can change the text with the plugin Loco translate, simply change the translation file to whatever you want it to say! 🙂

    Don´t know where to find the file to change it though 🙂
    / Annie

    clubafterlifeq

    (@clubafterlifeq)

    Hi, thanks for trying 🙂

    I found the page to edit in woocommerce > templates > checkout > payment.php after a long search!

    lorro

    (@lorro)

    Its best not to alter woocommerce templates as any edits will be overwritten by updates – ie regularly!

    You can make a child theme and copy the template to
    themes/child-theme-name/woocommerce/checkout/payment.php
    and edit the copy. In that location, your edited copy will be safe from minor plugin updates.

    However, the easiest way to change the odd string is the Say what? plugin.
    https://wordpress.org/plugins/say-what/
    In plugin settings, the “text domain” field is: woocommerce. The text to be changed is the default text which you can get from payment.php or by temporarily changing the site language to EN_US.

    clubafterlifeq

    (@clubafterlifeq)

    Thanks lorro, I will move the changes to the child theme php file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing the checkout page warning notice’ is closed to new replies.