• Resolved JuniperPaul

    (@juniperpaul)


    I’m using current versions: WC Vendors 1.9.14, WooCommerce 3.3.5, Storefront 2.2.8, and WordPress 4.9.5. My theme is a Storefront child.

    I want to modify the email message sent to users when they apply for vendorhood. I’ve copied and then modified this template:

    /wp-content/plugins/wc-vendors/templates/emails/application-status.php
    to:
    /wp-content/themes/MYTHEME/wc-vendors/emails/application-status.php

    per the instructions in “Changing the Vendor Templates”:
    https://docs.wcvendors.com/knowledge-base/changing-the-vendor-templates/

    The email sent to users remains the WC Vendors original without my modifications.

    In troubleshooting, to make sure that no new PHP code could interfere with the process, I’ve added a simple text string to the HTML output of the template but it doesn’t appear in the received message.

    I am able to successfully override other WC Vendor templates, e.g. front/vendor-main-header.php, as well as Storefront and WooCommerce templates.

    Could you please verify that this email template can be properly overridden by a child theme? For example, is the email sent out by a cron job that’s operating independently and isn’t aware of the child theme?

    If the problem is on my end, please suggest what I might check to pinpoint my bug.

    Thanks,
    Paul

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello

    There is an error in 1.9.x of WC Vendors that has vendor templates going into the wrong area for emails. To have them working you need to put them in

    /wp-content/themes/MYTHEME/woocommerce/

    cheers,

    Jamie

    Thread Starter JuniperPaul

    (@juniperpaul)

    Holy cannoli! Thanks for letting me know.

    I strongly recommend that you put a note to this effect immediately on your “Changing the Vendor Templates” page and kick out a quick plugin update to save other developers the time I wasted trying fruitlessly to troubleshoot this problem at my end and finally giving up and (ugh) modifying the installed plugin directly.

    Dusting myself off and charging ahead,
    Paul

    • This reply was modified 7 years, 9 months ago by JuniperPaul.
    Thread Starter JuniperPaul

    (@juniperpaul)

    To be more specific, using WC Vendors 1.9, the template file goes into the /MYTHEME/woocommerce/ directory itself and not into an /emails/ sub-directory:

    WC Vendors itself places the template at:
    /wp-content/plugins/wc-vendors/templates/emails/application-status.php

    Our override template ordinarily resides at:
    /wp-content/themes/MYTHEME/wc-vendors/emails/application-status.php

    but WC Vendors 1.9 requires us to put it:
    /wp-content/themes/MYTHEME/woocommerce/application-status.php

    Paul

    • This reply was modified 7 years, 9 months ago by JuniperPaul.

    Hi Paul,

    With the soon to be released version 2.0 all email classes have been rewritten and this has been fixed.

    cheers,

    Jamie

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Unable to override application-status email template’ is closed to new replies.