[resolved] How to change woocommerce error message - This Item cannot be purchased (3 posts)

  1. kjubick
    Posted 2 years ago #

    Hello guys,

    please I need a help. I have a e-shop, but I am not selling on-line, because the owner won't it yet. So I have changed one error message half a year ago, but I can not locate it now after the update.

    The problem is that the products without prices when you click on the button "Add to cart" you get alert - This "product name" cannot be purchased, which is the original message. I have change it to "For stock availability and prices please contact us". I did not make a note and after Woocommerce update there is the old message again. I have spend good 2 hours going through all possible files, but without success.

    Would you know please, where to locate this error message? Thanks a lot for your help.

    The link to the alert message:




  2. kjubick
    Posted 2 years ago #

    Hey guys,

    funny enough I found it. It is in folder "CLASS" and the file name is "class-wc-cart.php".


  3. Sunish Sebastian
    Posted 1 year ago #

    Thank you so much!!!

    I have the same issue with "Sorry, this product cannot be purchased" and I wanted to add a custom message!

    Thanks to you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic