Hi,
Thank you for your response and for sharing the screenshot.
We are currently displaying upsell products on the single product page, and this is working as expected. Please refer to the attached screenshot for reference. However, we are facing an issue where the upsell section still appears even when no upsell products are assigned to the current product.
Our requirement is to display the Upsell Products section only when upsell products are assigned. At the moment, while the upsell products themselves are not shown, the parent/upper container (div) remains visible. We would like to hide the entire section, including its parent div, when no upsell products are assigned, as shown in the screenshot.
We would appreciate your guidance on how to achieve this.
Thank you and best regards.