• Resolved dan11

    (@dan11)


    How do I get just the IDs of the related products? (without the slider, just the IDs)

    I would like to my theme’s slider to show the related IDs from this plugin, instead the IDs from the core woo-related function (which only returns related by category)

    • This topic was modified 6 years, 8 months ago by dan11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vagelis

    (@eboxnet)

    Hello there, sorry that’s not possible without modifying the plugin’s files.

    Thread Starter dan11

    (@dan11)

    Ok, which part of the code needs to be mofified? I’d definitely like to give it a try

    Thread Starter dan11

    (@dan11)

    Hi Vagelis, I posted the question here: https://www.ads-software.com/support/topic/woocommerce-related-products-by-attribute/
    They referred me to this plugin but I couldn’t figure out what to do with it to get just the product IDs
    Is there a snippet I can simply add to the functions.php without it adding a slider, just some function that returns the related IDs?
    I’d like to place the IDs in the theme’s own slider shortcode like here:
    $product_ids = (related ids go here);
    echo do_shortcode(‘[ux_products ids=”‘.$product_ids.'”]’);

    Plugin Author Vagelis

    (@eboxnet)

    Hello again, as I told you before that’s impossible without modifying plugin’s files.
    That’s out of the plugin’s scope. Maybe you should contact your theme’s developer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get the related products ID’ is closed to new replies.