• Resolved homemurbano

    (@homemurbano)


    Hello Team!

    I found this function, your support
    have Seller name, is ok.

    Seller name: ok
    Email: ?
    phone: ?

    Please, how do include this this function email and phone seller?

    function order_email_include_saler_name( $order ) {
    $saller_id = dokan_get_seller_id_by_order( $order->id );
    $store_info = dokan_get_store_info( $saller_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( ‘Store Name:’ ); ?></th>
    <td style=”text-align:left; border: 1px solid #eee; <?php echo ‘border-top-width: 4px;’; ?>”><?php echo esc_html( $store_info[‘store_name’] ); ?></td>
    </tr>
    </tfoot>
    </table>
    <?php
    }

    Thanks you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mohammed Saimon

    (@saimonh)

    @homemurbano Hello…

    You can retrieve the phone and email using the following ways. Thanks

    $vendor = dokan()->vendor->get( $seller_id );
    $vendor->get_email();
    $vendor->get_phone();
    
    homemurbano

    (@homemurbano)

    Hello, @saimonh. Thanks in advance for any tips.

    I haven’t succeeded to add the seller infos variables into the code.
    Please, you could add the seller phone and email, in function?

    $vendor = dokan()->vendor->get( $seller_id );
    $vendor->get_email();
    $vendor->get_phone();

    include infos code bellow.

    function order_email_include_saler_name( $order ) {
    $saller_id = dokan_get_seller_id_by_order( $order->id );
    $store_info = dokan_get_store_info( $saller_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( ‘Store Name:’ ); ?></th>
    <td style=”text-align:left; border: 1px solid #eee; <?php echo ‘border-top-width: 4px;’; ?>”><?php echo esc_html( $store_info[‘store_name’] ); ?></td>
    </tr>
    </tfoot>
    </table>
    <?php
    }

    Thanks you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Include Email and phone Seller function.’ is closed to new replies.