E
E
efzer2019-03-03 14:52:28
WordPress
efzer, 2019-03-03 14:52:28

How to add product variations to woocommerce custom product type?

Good afternoon. The woocommerce site has a custom product type (essentially an analogue of a simple product). It is necessary to stick to the specified type of product the ability to add product sizes and quantities for each size of this product. So that the output is the same as in variable products.
For example: T-shirts are available:
size 42 - 5 pcs,
size 43 - 3 pcs,
size 44 - 2 pcs.
The buyer purchases 1 T-shirt size 42, remains:
42 size - 4 pcs,
43 size - 3 pcs,
44 size - 2 pcs.
etc.
I didn't find suitable plugins. Is it possible to file this through function.php or in some other way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question