• Resolved psodfj

    (@psodfj)


    Hello,

    How can we override the email templates? I tried adding woocommerce-catalog-enquiry\templates\emails\woocommerce-catalog-enquiry-admin.php and woocommerce-catalog-enquiry\emails\woocommerce-catalog-enquiry-admin.php files inside my child theme but they are not active.

    I couldn’t find the answer on your GitHub repo.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author MultiVendorX

    (@wcmp)

    Hi @psodfj, in order to override this, follow this file path :
    woocommerce-catalog-enquiry\emails\woocommerce-catalog-enquiry-admin.php

    Let us know if you need any further help.

    Thread Starter psodfj

    (@psodfj)

    @wcmp Thanks for the reply!
    Unfortunately, the template in my child theme is again not read. I have only changed “Product” to “Product Title” in the custom template to ensure it is correct but it is not being read and still the stock template is used. Permissions are standard 0644.

    Here is the full path of the file:

    
    public_html/wp-content/themes/generatepress_child/woocommerce-catalog-enquiry/emails/woocommerce-catalog-enquiry-admin.php
    
    Thread Starter psodfj

    (@psodfj)

    PS. I think I figured it out. After taking a look at your classes/emails/class-woocommerce-catalog-enquiry-email.php it seems that the correct structure is:
    child_theme/emails/woocommerce-catalog-enquiry-admin.php

    It works now. Thanks

    Plugin Author MultiVendorX

    (@wcmp)

    Thanks for the update @psodfj

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to override templates?’ is closed to new replies.