Home Forums WC Vendors Pro Support Minor Amends to Vendor Notification Email

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #61776
    Laurie Smith
    Participant

    Hi Guys

    Sorry if this has been asked before, I tried searching to no avail.

    We are hopefully launching next week so any help you can provide would be much appreciated.

    In order to maintain a confirmation step between users purchasing and orders completing we are using vendors shipping as a dummy method.

    Although our products are not shipped ( its a holiday site where vendors need to confirm bookings before payments are completed using mangopay ). I am wondering how I remove the shipping details ( totals ) from the email notification that goes to vendors, without making products virtual. Basically just taking the text out of the email.

    Also is it possible to cc the admin in to emails going out to vendors?

    Thanks a lot for your help

    Kind Regards

    Laurie

    #62377
    Laurie Smith
    Participant

    Hi any update on this?

    Thanks

    #62472
    Anna
    Member

    Hello Laurie,
    The Vendor notification email can be changed by modifying the template for this email (copy wc-vendors/templates/emails/vendor-new-order.php to your theme folder: your-theme-or-child-theme/woocommerce/vendor-new-order.php)

    For the shipping info, this modification it may need to be done using a filter (I am not certain if there is one for the shipping) from the core code in wc-vendors/classes/admin/emails/class-wc-notify-vendor.php

    #62476
    Anna
    Member

    Laurie,

    Also is it possible to cc the admin in to emails going out to vendors?

    I forgot to respond to this part of your question.
    Which emails did you need to have copied to the admin? Is this for the shipped notification email?

    #62527
    Laurie Smith
    Participant

    Hi Anna

    thanks for your response 🙂

    I was looking more specifically for how to remove the shipping from this loop:

    if ( $totals = $order->get_order_item_totals() ) {
    $i = 0;
    foreach ( $totals as $total ) {
    $i++;
    ?><tr>
    <th scope=”row” colspan=”2″ style=”text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo ‘border-top-width: 4px;’; ?>”><?php echo $total[‘label’]; ?></th>
    <td style=”text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo ‘border-top-width: 4px;’; ?>”><?php echo $total[‘value’]; ?></td>
    </tr><?php
    }
    }

    from the vendor-new-order.php and also how to copy admin in to this email.

    thanks a lot for your help.

    #62580
    Anna
    Member

    Hello,
    You’d have to modify what’s happening in the code in wc-vendors/classes/admin/emails/class-wc-notify-vendor.php to get the shipping to stop showing up- the template is just coded to show the function in the class-wc-notify-vendor.php. class-wc-notify-vendor.php is not a template, though- so the code would have to be altered using a filter or writing a new function.

    For the email– try this in your theme/child theme functions.php file:
    https://gist.github.com/fervous/c1cb74fb1a44329a2802d7d16c5ba940

    Just change the email address and name to match your admin info.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.