The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Need to know how to modify woocommerce coupon error message (2 posts)

  1. kelly2cats
    Posted 3 years ago #

    I am using Woocommerce and need to know how to modify the error message received when an invalid coupon code is entered in the cart.

    For example, I want to change the text from 'Coupon does not exist!' to 'Coupon does not exist! Coupons are CASE SENSITIVE. Please try again.'

    I have altered the class-wc-cart.php file in the meantime, however I am aware this is not best practice. I don't know if I need to use a hook to do this and if so, what code to use?

    Any help would be greatly appreciated.


  2. kelly2cats
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic