Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 21 total)
Author Posts
September 26, 2015 at 9:08 am in reply to: Custom Emails to Seller and Buyer 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' );
September 3, 2015 at 7:40 pm in reply to: Custom Emails to Seller and Buyer 70387
Donovan Donovan

Thank you for your help

September 3, 2015 at 7:29 pm in reply to: Custom Emails to Seller and Buyer 70386
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 7:24 pm in reply to: Custom Emails to Seller and Buyer 70383
Donovan Donovan

Also the seller portion stems from Dokan not woo Commerce

September 3, 2015 at 7:22 pm in reply to: Custom Emails to Seller and Buyer 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:19 pm in reply to: Custom Emails to Seller and Buyer 70381
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 7:07 pm in reply to: Custom Emails to Seller and Buyer 70375
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 1:13 pm in reply to: Custom Emails to Seller and Buyer 70277
Donovan Donovan This reply has been marked as private.
September 3, 2015 at 1:12 pm in reply to: Custom Emails to Seller and Buyer 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 3:02 am in reply to: Product Inventory Problems 70239
Donovan Donovan This reply has been marked as private.
August 28, 2015 at 3:00 pm in reply to: Product Inventory Problems 69446
Donovan Donovan

Anything new, any suggestions as we are moving into weekend i will need to close this.

also, i need to add to all emails sent out

Seller/Buyer Email, Phone Number and Name

so the
Buyer email will read Here’s how to get in contact with the Seller, EMAIL, Name and Phone Number
Seller email will read Here’s how to get in contact with the buyer, Email, Name and Phone Number

I really need to add these to all transaction on the site. Any suggestions.

August 27, 2015 at 8:29 pm in reply to: Product Inventory Problems 69414
Donovan Donovan

Ok, that’s acceptable, please just point me in the right places as I’m familiar with PHP, but not a master so I may need some examples and explanations.

August 27, 2015 at 2:45 pm in reply to: Product Inventory Problems 69319
Donovan Donovan This reply has been marked as private.
August 26, 2015 at 2:05 pm in reply to: Product Inventory Problems 69111
Donovan Donovan

Thanks for the reply. I don’t believe that’s the answer to this puzzle. line 381 reads

<blockquote><div class="dokan-product-inventory dokan-edit-row dokan-clearfix">
                            <div class="dokan-side-left"></blockquote>

the only option is line 404
                                        

<blockquote><input type="number" name="_stock" placeholder="<?php __( '1', 'dokan' ); ?>" value="<?php echo wc_stock_amount( $_stock ); ?>" min="0" step="1"></blockquote>

maybe im missing something

August 26, 2015 at 1:38 pm in reply to: Product Inventory Problems 69103
Donovan Donovan This reply has been marked as private.
Viewing 15 Topics - 1 through 15 (of 21 total)