- register a custom function for use with Dynamic Data condition to conditionally output the cross-sells section only if the product has at least 1 cross-sell.
- use pre_get_posts in a Code Block above the Repeater for altering the Repeater's query to limit it to only cross-sells of the current product.
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: [Function] Check if current product has cross-sells
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.