Home › Forums › WoodMart support forum › Order form for marketplace seller
Order form for marketplace seller
- This topic has 3 replies, 2 voices, and was last updated 4 years, 10 months ago by
Artem Temos.
-
AuthorPosts
-
September 8, 2020 at 2:21 am #224403
cromapcParticipantHello, 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 muchPatrick
September 8, 2020 at 6:08 am #224425
Artem TemosKeymasterHello,
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
September 8, 2020 at 6:59 pm #224687
cromapcParticipantHello, 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,
PatrickThis 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 ); ?>
September 9, 2020 at 6:22 am #224758
Artem TemosKeymasterIf the problem exists with other themes then it is not caused by WoodMart. Probably, you have some problems with some of the plugins installed.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register