Home › Forums › WoodMart support forum › Order form for marketplace seller › Reply To: Order form for marketplace seller
cromapc
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 ); ?>