• Resolved YuriV

    (@yuriv)


    Hi,

    I understood that WooCommerce disabled the random-function for related items. For this reason our visitors get to see nearly always the same related items. That’s a prolbem.

    Still trying now to make Woocommerce come up with better related products (not always the oldest products with a certain tag). For exemple: tried to make WC show the last modified products but that also doesn’t seem to work. Or am I doing something wrong? Placed this in functions.php:

    function woocommerce_output_related_products() {
    
        $args = array(
          'posts_per_page'   => 4,
          'columns'       => 4,
          'orderby'       => 'modified'
        );
    
        woocommerce_related_products( apply_filters( 'woocommerce_output_related_products_args', $args ) );
      }

    Any help would be appreciated. If it’s possible to make WC show the most recent related items that would be a improvement as well.

    https://www.ads-software.com/plugins/woocommerce/

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