Showing out of stock on variations drop down.

[ad_1]

As the title says. I’m trying to do the above.

I managed to find some code that will do this for me on this link here (the second code)

Disable Out of Stock Variations in WooCommerce

Only, I’m a bit of a noob and need some help. Where exactly do I paste this code?

Do I create a .php file and upload it somewhere? Or do I paste it into an existing php file? And if so, which one?

[ad_2]
1 Comment
  1. It goes in your child theme’s functions.php

    If you aren’t currently using a child theme, you’ll need to install or create one.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer