Forum Replies Created
-
AuthorPosts
-
fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488Participant
Update: It happens on wordpress backend, only in situation when as a vendor i go to order details page and change it manually from dropdown to completed. It doesnt happen when on orders list i choose “eye” icon , and from there i press button to fullfill order
fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488ParticipantThis reply has been marked as private.fyftofg-9488ParticipantHi. Thank you for fast reply.
Lets consider that flow with suborder number under the vendor name:
1. Main order number from email have to be deleted (customer dont need to know that number , check point 2.)
2. I am using your code to show vendor bank details for customersfunction order_vendor_bank_details($item_id, $item, $order){
if(‘bacs’ !== $order->get_payment_method()) return;
$vendor = get_wcmp_product_vendors($item[‘product_id’]);
if(!$vendor) return;
// Vendor BACS account fields shown on emails.
$account_fields = array(
‘bank_name’ => array(
‘label’ => __( ‘Bank’, ‘woocommerce’ ),
‘value’ => $vendor->bank_name,
),
‘account_number’ => array(
‘label’ => __( ‘Account number’, ‘woocommerce’ ),
‘value’ => $vendor->bank_account_number,
),
‘sort_code’ => array(
‘label’ => __( ‘Bank code’, ‘woocommerce’ ),
‘value’ => $vendor->aba_routing_number,
),
‘iban’ => array(
‘label’ => __( ‘IBAN’, ‘woocommerce’ ),
‘value’ => $vendor->iban,
)
);
$account_html = ‘‘.$vendor->page_title.’- ‘;
foreach ( $account_fields as $field_key => $field ) {
if ( ! empty( $field[‘value’] ) ) {
$account_html .= ‘<li class=”‘ . esc_attr( $field_key ) . ‘”>’ . wp_kses_post( $field[‘label’] ) . ‘: ‘ . wp_kses_post( wptexturize( $field[‘value’] ) ) . ‘‘ . PHP_EOL;
}
}$account_html .= ‘
‘;
echo $account_html;
}
add_action(‘woocommerce_order_item_meta_end’, ‘order_vendor_bank_details’, 99, 3);It is already showing vendor details after every product on thank you page and customer email.
Scenario : vendor A. vendor B. Customer purchase 2 or more products from vendor A, and 2 or more products from vendor B.
It is showing bank details multiple times , and now if we will add suborder number , it will show that numbers also multiple times.
For purchase single product from each vendor its good solution , but when customer purchase multiple products it can make kind of confusion.Is it possible to “sort out” that things? That it will sort suborders and show suborder number and vendor bank details only once even if customer will purchase muliple products from one vendor?
3. That is why i thought about suborder emails (found a lot of posts at this forum about disabling them , but i want to enable that). In this case customer will recive email for every suborder made. The same which woocommerce sends but for suborder not main order. In that email will be suborder number and also vendor bank details, total cost and shipping cost of that suborder (on my website customer pays everything to vendor)
Scenario the same as above : customer recieve 2 emails about orders made , he knows exactly the suborder number, vendor details etc etc , and vendor after payment is made, can easily connect payment to order (because customer used suborder number while making bank transfer)I hope i explained everything good
-
AuthorPosts