1. Documentation /
  2. Cross-Sells block

Cross-Sells block

The Cross-Sells block is included in the Cart block for WooCommerce Blocks 8.6.0 or higher.


↑ Back to top

Adding the Cart block to a page is all that’s required to install the Cross-Sells block initially.

If you want to delete the Cross-Sells block, it can be re-added later as an inner block of the Cart block.


↑ Back to top

From the Block settings on the sidebar, the merchant can configure how many Cross-Sells products should be visible on the Cart page by using the slider. The merchant can choose between 1 and 6 visible products.


↑ Back to top

Which products are supported by the Cross-Sells block?

↑ Back to top

The Cross-Sells block supports all products, whether it’s simple products, virtual products, or affiliate products.

Is the logic of the Cross-Sells block the same as the logic of the cross-sells products that are visible in the shortcode-based cart?

↑ Back to top

Yes, the logic is the same. Both the Cross-Sells block and the cross-sells products of the short code-based cart get their products using the get_cross_sells() function from WooCommerce. This way, they behave identically.

A customer reports that they’re unable to remove the Cross-Sells block from the Cart block. Is this correct?

↑ Back to top

The Cross-Sells block has two inner blocks: the Heading block and the Cross-Sells products block.

If a customer could delete the heading block and the Cross-Sells products block, an empty Cross-Sells block would remain on the site. This would lead to the fact that a customer cannot re-add the Cross-Sells block again. To prevent this, the Cross-Sells products block had been locked and cannot be deleted.