Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For example i have category Hostels & Bikes, and one template for Hostels single product template, but for category Bikes i want to have different single-product.php template, how to implement this?
You can create a taxonomy-product_cat-bikes.php template inside a woocommerce folder in your theme. For more info here is the github link of the template file.
Here are some resources for you:
More solutions to fit your needs
WooCommerce template docs
Required, but never shown