Site logo

Archived topic

WooCommerce - how to edtit: "This product is out of stock and not available"

1 reply · Started by Robert on October 7, 2022

Viewing posts 1–2 of 2

Hi

I just wanna ask how and where to edit the txt (I’ll edit it and add on the and a link):
“Tego produktu nie ma na stanie i nie jest dostępny.”

which meens: This product is out of stock and not available.
https://snipboard.io/ogxSKJ.jpg

which I can see if I have a product in my online shop but I dont have it in my warehouse ?

https://snipboard.io/v8bQz1.jpg – BRAK W MAZYNIE meens: out of warehouse

Kr
Robert

Hi Robert,

I'm not sure if there's a filter for that text. It may be good to ask in WooCommerce forums regarding this: https://wordpress.org/support/plugin/woocommerce/

An alternative would be probably to create a Block Element, hook it somewhere in the Single Product page: https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

Then, add a PHP snippet conditional statement for the visibility of the Block Element if the product quantity is equal to zero.

Sample conditional: https://stackoverflow.com/questions/51327748/woocommerce-check-if-product-is-out-of-stock-and-doesnt-allow-backorders#:~:text=if(%24product%2D%3Eget_stock_quantity()%3E0)

Filter for display of Block Element: https://docs.generatepress.com/article/generate_element_display/

This archived topic is closed to new replies.