Home Forums WoodMart support forum Order form for marketplace seller

Order form for marketplace seller

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #224403

    cromapc
    Participant

    Hello, I am writing because when an order arrives to a seller in my marketplace, not all the order data arrives. Only the detail of the product, the value and the seller’s profit arrives. I would like the seller to receive the same data that comes to the marketplace, such as the subtotal, the total, the shipping method and the payment method, in addition to the profit from the seller’s sale. I do not know why this email does not reach the seller as complete as the marketplace. Could you help me? I am using product vendor.

    I await your response.
    Thank you very much

    Patrick

    #224425

    Artem Temos
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    Regards

    #224687

    cromapc
    Participant

    Hello, I have already tried changing to another theme but the problem continues.
    These are the data that do not reach the seller’s email:

    Subtotal:
    Shipping:
    Payment method:
    Total:

    If you would be so kind to help me I will be very grateful.

    regards,
    Patrick

    This is the code of the order that reaches the seller:

    <?php
    /**
    * Order email to vendor.
    *
    * @version 2.1.0
    * @since 2.0.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }

    if ( version_compare( WC_VERSION, ‘3.0.0’, ‘>=’ ) ) {
    $order_date = $order->get_date_created();
    $billing_first_name = $order->get_billing_first_name();
    $billing_last_name = $order->get_billing_last_name();
    } else {
    $order_date = $order->order_date;
    $billing_first_name = $order->billing_first_name;
    $billing_last_name = $order->billing_last_name;
    }
    ?>

    <?php do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>

    <p><?php printf( esc_html__( ‘You have received an order from %s. The order is as follows:’, ‘woocommerce-product-vendors’ ), esc_html( $billing_first_name ) . ‘ ‘ . esc_html( $billing_last_name ) ); ?></p>

    <h2><?php printf( esc_html__( ‘Order #%s’, ‘woocommerce-product-vendors’ ), $order->get_order_number() ); ?> (<?php printf( ‘<time datetime=”%s”>%s</time>’, date_i18n( ‘c’, strtotime( $order_date ) ), date_i18n( wc_date_format(), strtotime( $order_date ) ) ); ?>)</h2>

    <?php $email->render_order_details_table( $order, $sent_to_admin, $plain_text, $email, $this_vendor ); ?>

    <?php do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email ); ?>

    <?php do_action( ‘wc_product_vendors_email_order_meta’, $order, $sent_to_admin, $plain_text, $email ); ?>

    <?php do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email ); ?>

    <?php do_action( ‘woocommerce_email_footer’, $email ); ?>

    #224758

    Artem Temos
    Keymaster

    If the problem exists with other themes then it is not caused by WoodMart. Probably, you have some problems with some of the plugins installed.

Viewing 4 posts - 1 through 4 (of 4 total)