How can I modify the WooCommerce bought together template?

FAQ Filter & Hooks Viewed: 281

If you want to modify, edit or delete stuff from the WooCommerce bought together products template, you need to copy the following file:

wp-content/woocommmerce-bought-together/public/partials/bought-together-product.php

into your child theme at the WooCommerce folder:

wp-content/themes/your-child-theme/woocommerce/bought-together-product.php

Then you can modify this file. For example if you do not want to show variations in the bought together section, you can remove in line 46 the “product_variation” parameter from the query.

Leave a Reply

Your email address will not be published. Required fields are marked *