• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout
  • Cart
  • Videos

3 Custom Loops for Related Products No Duplicates – WooCommerce

$75.00

Category: WooCommerce
  • Description

This code enables you to add 3 custom product loops to your single product pages, which display products by a custom taxonomy named brand. The loops include code to remove duplicate products from all loops.

Example : If a product exists in loop, it will not be displayed in loop 2 or 3. All loops are checked for duplicate product ID’s.

If the product is in stock, 3 loops displays after the in stock product.

If the product is out of stock, 1 loop displays before the product and 2 loops after.

Click the gallery images to see how the loops display on in stock products and out of stock products.

Custom Product Loops When Single Product Is In Stock
In Stock
Custom Product Loops When Single Product Is Out of Stock
Out of Stock

You can control which products are displayed in each loop.

Loops displayed after the single product also include a related products header which only displays if products exist for that specific loop.

What’s Included

  • 1 year code updates
  • Free installation & setup for absolute beginners
  • Code guarantee or your money back

Installation

There’s only 1 step :

Copy & paste the PHP code ( excluding the opening PHP tag ) from the functions.php file to the end of your child themes functions file or custom functionality plugin.

Primary Sidebar

Cart

Code written by Brad Dalton specialist for WooCommerce with more than 10 years of experience.

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Account
  • Checkout
  • Cart
 

Loading Comments...
 

You must be logged in to post a comment.