Without any configuration, the green pant is shown by default when I search for 'yoga pant'. My question is How can I make, for example, blue pant size 34 and its price and stock status as well to display instead? I'm in Magento 2.3 btw. Thank you.

enter image description here

  • Change all child product "Visibility => Catalog Search", after that run indexing and clean cache. Now check products in your storefront. Commented Feb 7, 2020 at 11:19
  • Come on. No, it has nothing to do with my issue. My question was how to display Blue or Red child in their parent preview instead of Green by default? Commented Feb 10, 2020 at 1:53
  • I believe they all lie in the file swatch-renderer.js but don't know how to edit. Commented Feb 12, 2020 at 4:08


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.