In your child theme’s function.php add this line of code:

To change the text when the item is out of stock (replacing the default divi “Read More” text on the button) add this line of code to your
Divi -> Theme Options -> Integration Tab -> Head Box

You can change the text to whatever you would like by replacing the “Out Of Stock” text