• Resolved janvasek

    (@janvasek)


    Hi, i need to get list of related IDs in content-single-product template, it is possible? Something like that:

    <?php
    
    $product_id = get_the_ID();
    
    $related_product_ids = wc_get_related_products($product_id);
    
    foreach ($related_product_ids as $related_product_id) {
    echo $related_product_id;
    }; 
    
    ?>

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @janvasek,

    Thanks for reaching out to WebToffee support.

    Unfortunately, it is not possible to get the list of the IDs using our plugin. We are sorry to let you down.

    Thread Starter janvasek

    (@janvasek)

    Thank you for answer. can we do something to make it work? custom dev?

    thank you

    Jan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List of related products IDs’ is closed to new replies.