Support » Plugin: WooCommerce » How to change woocommerce error message – This Item cannot be purchased

  • Resolved kjubick

    (@kjubick)


    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:

    http://www.thecakeshopmalta.com/product/biodegradable-wedding-confetti/?add-to-cart=2065

    Jakub

    http://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey guys,

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

    Jakub

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change woocommerce error message – This Item cannot be purchased’ is closed to new replies.