Get related products ids in the content-single-product.php
-
Hi there, i would like to get ids of products, that are filled in the Custom related product settings
I try this
$related_products_ids = wc_get_related_products($product->get_id(), 3);
but this code gets ids only from default inputs upsell, crosell
I need get ids from plugins inputs
Thank you for help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.