Support » Plugin: Related Products for WooCommerce » Options for ordering?

  • Resolved TickTockDesign

    (@ticktockdesign)


    Hi there – so it looks as though the ordering is only ‘random’. Is there an easy way to enable ordering by updated date / published / date / ID / alphabetical?

    It looks like there are 2 functions in woo-related-products.php that use ‘orderby rand’ and I’m sure I can change those if need be, but would be good to have it as an option in the plugin itself.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vagelis

    (@eboxnet)

    Hello there, if you don’t use rand then you won’t get a new “set” of related products on every page load. That’s the reason there is no such an option atm.

    TickTockDesign

    (@ticktockdesign)

    Thanks for the quick reply. Yep, I understand it wouldn’t give you new products each time. I’m working for a client who would like to have related products, by tag, that are not always random but that are sorted by most recent update. That’s fine, I can adjust the queries no problem – although they’ll get overwritten in any updates. Not a big deal, just thought I’d suggest it as a future option.

    Thanks so much for your work on this, it’s a very handy plugin.

    Plugin Author Vagelis

    (@eboxnet)

    I added on my todo list. Trying to push a new version with more features but its so hard to find the time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Options for ordering?’ is closed to new replies.