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

      The Real Person!

      Author weLaunch acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      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

      The Real Person!

      Author weLaunch acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      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?

    • WeLaunch

      The Real Person!

      Author WeLaunch acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      You need to make sure the upsell products hook will display / is integrated.

Leave a Reply

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