Conditional check for the linked products available or not

Hello,

We are currently building a WooCommerce Single Product Template and are looking for a way to display Linked Products (Upsells and Cross-sells) only when they are (assigned or) not empty.

Could you please guide us on how to implement this dynamically? Any examples or best practices would be greatly appreciated.

Thank you for your support.

Hello @bibhashkarn,

Thanks for writing to us.

In order to display the cross-sell product on the WooCommerce Single Product layout, I would suggest you please use the Cross Sell product element.

Hope it helps
Thanks