In the world of eCommerce, understanding and effectively using WooCommerce related products can make a significant difference in your sales and customer satisfaction. This feature is a powerful tool that can help you increase your revenue and enhance your customers’ shopping experience.

image 7

Understanding WooCommerce-Related Products

Related products in WooCommerce are items that are similar or complementary to the main product being viewed by a customer. These products play a crucial role in upselling and cross-selling strategies, which are key to maximizing your store’s profit.

Upselling encourages customers to purchase a higher-end product, while cross-selling prompts customers to buy additional items. Displaying related products can provide several benefits:

  • It increases the average order value by encouraging customers to add more items to their cart.
  • It enhances the customer shopping experience by making product discovery easier.
  • It can help clear out inventory by promoting less popular products alongside best-sellers.

To learn more about how to use this feature, you can check out the WooCommerce official documentation.

image 6

How to Display Related Products in WooCommerce

Displaying related products in your WooCommerce store is a straightforward process. Here’s a step-by-step guide:

  1. Log in to your WordPress dashboard.
  2. Navigate to the WooCommerce product page for an item you wish to upsell or cross-sell.
  3. Scroll down to the Product Data section and click on the Linked Products tab.
  4. In the fields for upselling and cross-selling, start typing your related products’ names.

Remember, upsells should be items that are similar but more expensive than the original product. Cross-sells are complementary items that customers may want to buy in addition to the original product.

Enhancing WooCommerce Related Products with Plugins

While the native-related products function in WooCommerce works well, you can take it to the next level with plugins. Here are some plugins that can enhance this feature:

  • Beeketing for WooCommerce: This plugin automates the process of recommending related products, saving you time and effort.
  • WooCommerce Boost Sales: This plugin not only helps you upsell and cross-sell products but also enables you to create product bundles.
  • Recommendation Engine: This WooCommerce extension shows your visitors related items based on their past viewing and purchase histories.
  • Booster for WooCommerce: This all-in-one eCommerce plugin includes both cross-selling and up-selling features, as well as automated related products that can be based on categories, tags, or product attributes.

You can find these plugins and more in the WordPress plugins directory.

Remember, the key to successful eCommerce s

trategies is to continually test and optimize your approach. By understanding and effectively using WooCommerce related products, you can create a more engaging shopping experience and boost your sales.

How to Remove Related Products in WooCommerce

While WooCommerce related products can be a great tool for upselling and cross-selling, some users might want to remove them. This could be due to a desire for a cleaner, less cluttered product page, or because they feel that the related products aren’t relevant enough to the main product.

Here’s how you can remove related products in WooCommerce:

Using PHP Code

  1. Log in to your WordPress dashboard.
  2. Navigate to Appearance > Theme Editor.
  3. Find the functions.php file and add the following code at the end:
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

The woocommerce_output_related_products function is a crucial part of WooCommerce’s functionality. It’s responsible for displaying related products on a product page. These are items that share similar characteristics with the product being viewed, which can encourage customers to make additional purchases. However, if you want to customize your product page or streamline the shopping experience, you might choose to modify or disable this function. Whether you’re looking to adjust the number of related products displayed or remove them entirely, understanding woocommerce_output_related_products can give you greater control over your WooCommerce store’s layout and functionality.

Using CSS Code

  1. Log in to your WordPress dashboard.
  2. Navigate to Appearance > Customize > Additional CSS.
  3. Add the following code:
.related.products {
    display: none;
}

Using Plugins

There are several plugins available that can help you remove related products in WooCommerce. One such plugin is the “WooCommerce Hide Related Products” plugin. Simply install and activate the plugin, and it will automatically hide the related products on your product pages.

Customizing Related Products in WooCommerce

If you don’t want to completely remove related products but would like to customize how they’re displayed, WooCommerce offers several options. You can change the number of related products displayed and add custom related products.

To change the number of related products displayed, you can add the following code to your functions.php file:

function woo_related_products_limit() {
  global $product;
  $args['posts_per_page'] = 6;
  return $args;
}

This code will limit the number of related products to 6. You can change this number to whatever you prefer.

To add custom related products, you can use the Linked Products feature in WooCommerce. Simply go to the product page in your WooCommerce settings, find the Linked Products tab, and start typing the names of the products you want to link.

Displaying WooCommerce related products by category

Displaying WooCommerce related products by category can be a great way to showcase items that are similar or relevant to the product a customer is viewing. This can help increase your sales by encouraging customers to explore and purchase additional items.

To display related products by category, you can add the following code to your theme’s functions.php file:

function custom_related_products($args) {
  global $product;
  
  $args['post__not_in'] = array($product->get_id());
  $args['tax_query'] = array(
    array(
      'taxonomy' => 'product_cat',
      'field' => 'id',
      'terms' => wp_get_post_terms($product->get_id(), 'product_cat', array('fields' => 'ids')),
    )
  );
  
  return $args;
}
add_filter('woocommerce_related_products_args', 'custom_related_products', 10);

This code modifies the arguments passed to the woocommerce_related_products_args filter to include a taxonomy query. This query specifies that the related products should belong to the same category as the current product. The post__not_in an argument ensures that the current product is not included in the related products.

Woocommerce Related Products Widget

The WooCommerce related products widget is a handy tool that allows you to display related products in various areas of your website, such as the sidebar or footer. By default, this widget displays products that share the same tags or categories as the current product.

If you want to display related products specifically by category in the widget, you can add the following code to your theme’s functions.php file:

function custom_related_products_widget_args($args) {
  global $product;
  
  $args['post__not_in'] = array($product->get_id());
  $args['tax_query'] = array(
    array(
      'taxonomy' => 'product_cat',
      'field' => 'id',
      'terms' => wp_get_post_terms($product->get_id(), 'product_cat', array('fields' => 'ids')),
    )
  );
  
  return $args;
}
add_filter('woocommerce_product_related_posts_query', 'custom_related_products_widget_args', 10);

This code modifies the arguments passed to the woocommerce_product_related_posts_query filter to include a taxonomy query. This query specifies that the related products should belong to the same category as the current product. The post__not_in argument ensures that the current product is not included in the related products.

Please note that this code will affect all instances of the related products widget on your site. If you want to apply this change to a specific widget instance, you would need to add additional conditions to the code.

FAQs

What are WooCommerce related products? Related products in WooCommerce are items that are similar or complementary to the main product being viewed by a customer. They are used for upselling and cross-selling strategies.

How do I display related products in WooCommerce? You can display related products in WooCommerce by going to the product page in your WooCommerce settings, finding the Linked Products tab, and adding the products you want to link.

Can I remove related products in WooCommerce? Yes, you can remove related products in WooCommerce using PHP code, CSS code, or plugins.

Can I customize the number of related products displayed in WooCommerce? Yes, you can customize the number of related products displayed in WooCommerce by adding a specific code to your functions.php file.

WooCommerce Support

Understanding and effectively using WooCommerce related products can significantly enhance your eCommerce store. Whether you choose to display, remove, or customize related products, remember that the ultimate goal is to provide a better shopping experience for your customers and increase your sales.

If you’re running an online store with WooCommerce, you might be looking for ways to improve your sales. One way to do this is by adding or removing related products. This can help your customers find what they’re looking for and can even encourage them to buy more. But we understand that not everyone is a tech whiz. That’s where we come in! Our team is here to help with all your WooCommerce needs, from adding and removing related products to improving your conversion rates. So, if you’re feeling a bit stuck or just want to make your online store even better, don’t hesitate to reach out. We’re here to help! Contact us today and let’s make your WooCommerce store the best it can be.

Josh Morley

I have been designing & marketing websites since 2013. I specialize not just in WordPress web design but also in online marketing. SEO, PPC, keyword research, link-building and most recently on lead acquisition for local businesses.

Leave a Reply

Your email address will not be published. Required fields are marked *