To overwrite the default mandatory or optional acessory templates just copy the following files into your child-theme folder directly. NOT in the woocoommerce folder:

wp-content/woocommerce-product-accessories/public/partials/mandatory-accessories.php
wp-content/woocommerce-product-accessories/public/partials/optional-accessories.php

8 thoughts on “Overwrite Product accessory templates

  1. Ryan says:

    Hi,

    Just wondering how I can change it from saying ‘Optional’ or ‘Mandatory’ to ‘Essential’ on the front-end? Could this not be a setting?

    Ryan

    • weLaunch says:

      Hi Ryan,

      you can use Loco Translate to Change the Mandatory or Optional accessories title. Simply create a en_US translation and override it.

  2. Jean Gauthier says:

    Last week, I sold your Products Accessories plugin. I installed it, no problems, but I can put only one optional product accessories…Impossible to put another one. My theme is TOTAL…If I put your files Overwrite the default templates, I get HTTP ERROR 500.
    What is your solution ?
    Thanks and have a nice day !

    • weLaunch says:

      With sold I hope you mean “bought” 🙂

      We also use the Total theme and can see no problems. Can you send your error logs to [email protected]? Can you try deactivating other plugins except ours + WooCommerce?

Leave a Reply

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