Home Forums WC Vendors Pro Support Vendor New Order Email Override Not Working

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.ย  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #59478
    George
    Participant

    Hi Team

    I’ve been attempting to override the “vendor-new-order.php” file in order to mirror the “admin-new-order.php” email template.

    I have done this by copying and pasting the admin template to the vendor template and placing it in the appropriate location. However, I am still getting the standard vendor template being sent out.

    I have tried it in /wp-content/themes/MYCHILDTHEME/woocommerce/emails as well as my parent theme and in a multitude of other places and it isnt working. Heck I’ve even replaced the actual /wp-content/plugins/wc-vendors/templates/emails file and it still defaults to the original!

    Please help!

    #59521
    Anna
    Member

    Hello,
    TO override that template, save to like this:
    wp-content/themes/your-theme-or-child-theme/woocommerce/vendor-new-order.php
    No EMAILS folder.

    #59524
    George
    Participant

    Hi Anna

    Thanks for your reply ๐Ÿ™‚

    I have saved it in both of your suggested locations (just to be sure) but I am still getting the deafult email :/

    I can’t tell where it is coming from as I seem to have replaced any file that is “vendor-new-order.php” with the code from admin-new-order.php.

    What is going wrong ๐Ÿ™

    #59525
    Anna
    Member

    George,
    If you are trying to show the vendors information that is only meant for the admin, then this will not show.
    Is this related to this post? https://www.wcvendors.com/help/topic/add-shipping-class-to-order-details-in-vendor-dashboard/
    If so, then you are trying to show vendors info that only the admin will be able to see.
    Unless you use the Vendor Shipping, other shipping methods will only be visible or controlled by the site admin.
    All other shipping methods are designed to work on a single-user WooCommerce shop. That is why we had to make the special Vendor Shipping module for WC Vendors Pro.
    The vendors will only be able to see the Vendor Shipping rates within their emails or dashboards.

    #59531
    George
    Participant

    Hi Anna

    No I wouldn’t say that they are related.

    Okay let me put it another way. How can I send the vendor the exact same email that the customer receives?

    Many thanks Anna!

    #59563
    George
    Participant

    Hi Anna

    I have duplicated my custom “customer-processing-order.php” file, renamed it “vendor-new-order.php” and put it into the location you suggested just to test what is going on. (I have some custom wording in my customer-processing-order.php file so this allows me to track what is going on).

    The result is that my custom email (with all the custom wording) is now sent to the vendor (good news as this shows that the path you have provided is the correct one) – However, while everything else has changed, the table showing the order details remains the same as it was in the default vendor template!!! Everything is being overrideen EXCEPT for the table! So annoying!

    I don’t understand! How can I change the order details table in the email to vendors to reflect the same table that is sent to the customer?

    Thank you again for your time, I’m sure this is just as frustrating for you as it is for me ?

    #59823
    George
    Participant

    Hi Team

    Just a friendly reminder to refresh whether this is dooable? ๐Ÿ™‚

    Kind regards
    George

    #59825
    WC Vendors Support
    Participant

    Remember: Custom coding is up to you. Anna’s job is to help you fix bugs. Customizing your website, is your job. We do offer custom development services, $49 per hour 3 hour billed minimum. Make a punch list and we can do a lot at once.

    #59858
    George
    Participant

    @ben Hi Ben ๐Ÿ™‚

    Thanks for your reply. I think there has been a slight misunderstadning (probably my fault!).

    In theory, I feel comfortable enough with php to make this work, I am just wondering why the table that comes with the Notify Vendor email is the only thing that isn’t being overriden when I replace the “vendor-new-order.php” file?

    If you can point me in the right direction that would be great!

    Kind regards
    George

    #60147
    George
    Participant

    Hi @ben @fervous

    Just wondering if there was an answer to why the table that comes with the Notify Vendor email is the only thing that isnโ€™t being overriden when I replace the โ€œvendor-new-order.phpโ€ file?

    Kind regards
    George

    #60195
    Anna
    Member

    George,
    I do not know.
    This information is meant to be shown to the person who purchased the product and/or the admin- so that is likely why. This is all hard coded int he email php files within both woocommerce and only some in WC Vendors. We hook into the WooCommerce emails.
    wp-content/plugins/wc-vendors/classes/admin/emails
    You can see if you can locate the code you need to modify in those files. There are a few filters within that code, but not many. Any alterations you make that do not involve using the filter + functions.php will not be upgrade safe so you’d have to re-do the code when you update WC Vendors.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.