Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
478 views
in Technique[技术] by (71.8m points)

php - Auto-assign a category in WordPress to products where their stock quantity is > 0

Using WooCommerce, I've set up a category named "in-stock" and want to create a condition where any (including variant and simple) products with a positive stock quantity are automatically assigned to this category (we use WordPress post categories to create our product collection hierarchy). Ideally with a code snippet, but if anyone knows a lightweight plugin, that's great (I can't find one).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...