Home Forums WC Vendors Free Support Showing order total to vendors

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 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15613
    wes
    Participant

    My vendors are getting emails without the order total, they are only getting the commission amount which is currently set to zero as we don’t need this feature. How do I get the order emails and the vendor dashboard to show the order value?

    Many thanks.

    #15634
    WC Vendors Support
    Participant

    Hi Wes,

    You’d edit the email templates to do that. Or, you could remove the filters we use to add the price to commissions, and change them so that they show the full retail price, instead.

    Ben

    #16332
    wes
    Participant

    Hi ben,

    Many thanks for getting back to me. I have the the email template open but not sure what I need to add to it so the vendor can see the total price paid. As it stands currently, the template below shows £0.00 as the order total to the vendor. Could you please suggest where I might edit this and what to put to get it showing full order price to the vendor?

    <?php
    /**
     * Vendor new order email
     *
     * @author WooThemes
     * @package WooCommerce/Templates/Emails/HTML
     * @version 2.0.0
     */
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
    
    <?php do_action( 'woocommerce_email_header', $email_heading ); ?>
    
    <p><?php printf( __( 'You have received an order from %s. Their order is as follows:', 'woocommerce' ), $order->billing_first_name . ' ' . $order->billing_last_name ); ?></p>
    
    <?php do_action( 'woocommerce_email_before_order_table', $order, true ); ?>
    
    <h2><?php printf( __( 'Order: %s', 'woocommerce'), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( woocommerce_date_format(), strtotime( $order->order_date ) ) ); ?>)</h2>
    
    <table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
    	<thead>
    		<tr>
    			<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Product', 'woocommerce' ); ?></th>
    			<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
    			<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'woocommerce' ); ?></th>
    		</tr>
    	</thead>
    	<tbody>
    		<?php echo $order->email_order_items_table( false, true ); ?>
    	</tbody>
    	<tfoot>
    		<?php
    			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
    				}
    			}
    		?>
    	</tfoot>
    </table>
    
    <?php do_action('woocommerce_email_after_order_table', $order, true); ?>
    
    <?php do_action( 'woocommerce_email_order_meta', $order, true ); ?>
    
    <h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
    
    <?php if ( $order->billing_email ) : ?>
    	<p><strong><?php _e( 'Email:', 'woocommerce' ); ?></strong> <?php echo $order->billing_email; ?></p>
    <?php endif; ?>
    <?php if ( $order->billing_phone ) : ?>
    	<p><strong><?php _e( 'Tel:', 'woocommerce' ); ?></strong> <?php echo $order->billing_phone; ?></p>
    <?php endif; ?>
    
    <?php wc_get_template( 'emails/email-addresses.php', array( 'order' => $order ) ); ?>
    
    <?php do_action( 'woocommerce_email_footer' ); ?>
    #16405
    WC Vendors Support
    Participant

    Try adding:

    remove_filter( 'woocommerce_get_order_item_totals', array( 'WC_Email_Notify_Vendor', 'check_order_totals' ), 9, 2 );
    remove_filter( 'woocommerce_order_get_items', array( 'WC_Email_Notify_Vendor', 'check_items' ), 9, 2 );

    to your theme functions.php file instead let me know how that works

    #49479
    Reto
    Participant

    Hi Ben,

    First of all, very nice Plugin!

    I have the same challenge, i would like to show the Vendor the total orders in the mail since they tend to be confused to only see the commission. I tried the above (in child and parent) but nothing happens. Is there any other way to come to the same result?

    Thank you in advance and have a great day.
    Reto

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