Answer the question
In order to leave comments, you need to log in
How to display upsells on woocommerce product page?
Good day! It is necessary to display upsells on the product page. How can I do that. Googled but didn't find anything :( MB googled badly...
Answer the question
In order to leave comments, you need to log in
Through a hook or inside the template, insert a code that will pull out a list of products.
A list of product IDs can be obtained using the get_upsell_ids() method on the WC_Product object.
Further we do foreach and it is beautifully deduced as it would be desirable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question