Skip to content
Advertisement

Change product status Woocommerce in short description field

I put product status and other info in short description field on wp all import for all products like this:

JavaScript

avaliable

I want if product category is Videocards to change product status and icon to “call” insted of “avaliable” like this:

JavaScript

call

Any way to do this with custom function in wp all import or in function.php file of my active child theme?

Advertisement

Answer

You can use the following code:

JavaScript

Code goes in the functions.php file of your active theme/child theme. Tested and works.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement