Custom Emails to Seller and Buyer

This topic contains 16 reply and 3 voices, and was last updated by Nayem 9 years, 2 months ago
Viewing 15 Posts - 1 through 15 (of 16 total)
Author Posts
September 3, 2015 at 1:11 pm 70275
Nayem Hello, I need to create custom emails to send to the customer and the buyer. I have gone as far as adding a custom message to the emails template in WooComerce. Now I need to add the following to order emails sent to the buyer, for processing and completed orders. Seller Name Phone Number Email
September 3, 2015 at 1:12 pm 70276
Donovan Donovan

I saw this but the information is outdated

https://wedevs.com/support/topic/seller-namelastname-function-in-woocommerce-templates/

September 3, 2015 at 1:13 pm 70277
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 6:45 pm 70362
Nayem Nayem

Hello Donovan,

If you want to modify Dokan email template then please open dokan/includes/email. In this folder you will get all the email template. You can modify as your own way.

I have replied in your another topic.

September 3, 2015 at 7:07 pm 70375
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 7:16 pm 70379
Nayem Nayem

Hello,

You are asking for personalized feature. This will require customization. We do not provide support for any customized feature. We only provide support for our built-in features, configuration and installation.

Thanks.

September 3, 2015 at 7:19 pm 70381
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 7:22 pm 70382
Donovan Donovan

Someone previously asked the same question a year ago and there was a solution provided. Please check out the link above.

September 3, 2015 at 7:24 pm 70383
Donovan Donovan

Also the seller portion stems from Dokan not woo Commerce

September 3, 2015 at 7:25 pm 70384
Nayem Nayem

I will try to help you on this matter. But you have to allow us some time. On the Sunday I can provide some instruction on this.

Thanks.

September 3, 2015 at 7:29 pm 70386
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 7:40 pm 70387
Donovan Donovan

Thank you for your help

September 6, 2015 at 6:57 pm 70703
Nayem Nayem

Hello Dhonovan,

We were in weekend. I will discuss with our developer team about your query tomorrow. Please keep patience.

September 10, 2015 at 7:05 am 71210
Chad Chad

I’m not seeing “includes” in the Dokan settings. Where is it found?

September 10, 2015 at 1:27 pm 71251
Nayem Nayem

Hello Chad,

Please open Dokan plugin folder then includes/email.

September 26, 2015 at 9:08 am 73179
Donovan Donovan
/* for email customization by donovan */

function order_email_include_saler_name( $order ) {
        $saler_id = dokan_get_seller_id_by_order( $order->id );
        $saler_info = get_user_by( 'id', $saler_id );
		$store_info = dokan_get_store_info( $saler_id );

        ?>
        <table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
            
            <tfoot>
                <tr>
                    <th scope="row" style="text-align:left; width: 57%; border: 1px solid #eee; <?php  echo 'border-top-width: 4px;'; ?>"><?php _e( 'Seller Name:' ); ?></th>
                    <td style="text-align:left; border: 1px solid #eee; <?php  echo 'border-top-width: 4px;'; ?>"><?php echo $saler_info->display_name; ?></td>
                </tr>
				<tr>
                    <th scope="row" style="text-align:left; width: 57%; border: 1px solid #eee; <?php  echo 'border-top-width: 4px;'; ?>"><?php _e( 'Phone:' ); ?></th>
                    <td style="text-align:left; border: 1px solid #eee; <?php  echo 'border-top-width: 4px;'; ?>"><?php echo esc_html( $store_info['phone'] ); ?></td>
                </tr>
				<tr>
                    <th scope="row" style="text-align:left; width: 57%; border: 1px solid #eee; <?php  echo 'border-top-width: 4px;'; ?>"><?php _e( 'Seller email:' ); ?></th>
                    <td style="text-align:left; border: 1px solid #eee; <?php  echo 'border-top-width: 4px;'; ?>"><?php echo $saler_info->user_email; ?></td>
                </tr>
            </tfoot>
        </table>
        <?php
    }

add_action( 'woocommerce_email_after_order_table' , 'order_email_include_saler_name' );
Viewing 15 Posts - 1 through 15 (of 16 total)