You may also like
You may also like shows the cross-sells of the products in the cart (set under Linked products on each product), then your best sellers. Simple products add to the cart in one tap; products with options link to their page.
Where it shows#
| Switch | Tab | Where |
|---|---|---|
| On the cart page | Cart | Under the cart items. |
| On the empty cart page | Cart | Gives shoppers somewhere to go when the cart is empty. |
| You may also like | Mini cart | A row under the items that scrolls sideways. Only when the cart has items. |
Options#
- How many products: from 2 to 8.
- Image shape: Square (1:1) or Tall (3:4), for portrait product images. Tall uses the full product image, so nothing is cut from the top or bottom. Used on the cart page, the empty cart and the mini cart.
For developers#
Change the products with nbwt_recommended_products. The second argument is cart, minicart or empty.
add_filter( 'nbwt_recommended_products', function ( $products, $where ) {
if ( 'empty' === $where ) {
return wc_get_products( array( 'featured' => true, 'limit' => 4 ) );
}
return $products;
}, 10, 2 );