Hello,
I need help with the upsell functionality in XStore Single Product Builder.
Some products have manually assigned upsells, but when those upsell products are out of stock, the theme displays an empty or incomplete upsell section.
I need the theme to automatically show alternative products from the same category (5–10 items) only when all manually assigned upsells are out of stock.
In short:
If manual upsells are valid/in stock → use them
If all manual upsells are out of stock → automatically load other in-stock products from the same category
Could you please advise the correct way to implement this in XStore Single Product Builder?