WCMp Core
Tagged: bug, order Woocommerce, Sub-order WCMP
-
AuthorPosts
-
-
June 23, 2021 at 11:32 PM #123623ecclesiastexavier98Participant
Hello Team, we are using SUMO Reward Point to reward our customers when the main order is finished, BUT we have a serious problem with the sub-orders, the sub-orders attribute of the rewards What we don’t want
-
June 23, 2021 at 11:43 PM #123624ecclesiastexavier98Participant
We wish to have only one order and no sub-order this creates a problem with our SUMO Reward Point reward system
-
June 24, 2021 at 12:10 PM #123638MVX Support NinjaKeymaster
Hi @ecclesiastexavier, thanks for getting in touch with us.
It seems like a plugin conflict issue. However, in order to fix this, we need help from the SUMO plugin author.
Kindly ask them how can we exclude their point system from any order. Also, we need to have access of their plugin.
-
June 24, 2021 at 1:02 PM #123641ecclesiastexavier98Participant
The problem is not a plugin conflict, we only have main orders and no sub-orders.
-
June 24, 2021 at 4:02 PM #123654MVX Support NinjaKeymaster
In order to fix this, we need help from the SUMO plugin author. Because we have to exclude the reward points from sub order.
So, please ask them how can we exclude their point system from any order. Also, we need to have access to their plugin. -
June 24, 2021 at 4:21 PM #123656ecclesiastexavier98ParticipantThis reply has been marked as private.
-
June 24, 2021 at 6:57 PM #123685MVX Support NinjaKeymaster
hi checking a third plugin coding and finding how they add reward points is quite time taking. That is why please do ask the plugin author regarding how they add reward points in an order. So we can apply the same concept for the sub order too and exclude that
-
June 24, 2021 at 8:26 PM #123695ecclesiastexavier98Participant
Ok, I understand you here is our request
We want the admin and seller to have only one joint order and NO sub-ordersOther module as is Dokan, WFCM offers the function a single command for the admin and the seller
-
June 25, 2021 at 1:33 PM #123709MVX Support NinjaKeymaster
Let me help you out with our flow. Sub order is an integral part of WC Marketplace allowing vendors to manage their respective orders. When customer completes the checkout, there will be different sub orders for every vendor. Each vendor can see the small summary of their order. All our vendor end data is calculated and fetched from sub order. i.e. vendor commission, vendor report, banking overview, payment history etc
Admin can also view the suborder from their order menu. Beside each parent order section, the admin can also see the suborder section.
Please refer the link to fetch more details regarding it’s functionality- https://multivendorx.com/knowledgebase/wcmp-split-order-module/
so sub orders can’t be removed. But you can hide this or display parent order number instaed of sub order.
let us know where do you want to see these changes, so we can help you out accordingly. -
June 25, 2021 at 3:21 PM #123715ecclesiastexavier98Participant
I understand but how do I hide the sub-order ?
-
June 25, 2021 at 3:27 PM #123716ecclesiastexavier98Participant
In my opinion you must create a section for the admin does not wish to show the sub-orders
-
June 25, 2021 at 4:04 PM #123717MVX Support NinjaKeymaster
can you please share a screenshot with us where do you want to hide your sub orders ??? so that we can help you out better
-
June 25, 2021 at 7:10 PM #123730ecclesiastexavier98Participant
We want there to be MORE sub-orders but only one order for admin and sellers
-
June 25, 2021 at 7:55 PM #123739NerdySupportExpert MoumitaKeymaster
@ecclesiastexavier98, I am sorry but can you please explain this with some scrrenshots.
-
June 25, 2021 at 8:25 PM #123746ecclesiastexavier98Participant
Here is the catch, we don’t want sub-orders for our sellers but only main orders
-
June 26, 2021 at 6:29 PM #123825MVX Support NinjaKeymaster
Hi,
Please add this code in the function.php of the current active theme :add_filter( 'manage_edit-shop_order_columns','wcmp_remove_suborder_column'); function wcmp_remove_suborder_column($columns){ // to remove just use unset unset($columns['wcmp_suborder']); // remove suborder column return $columns; }
CopyRegards,
-
June 29, 2021 at 11:51 PM #124018ecclesiastexavier98Participant
The problem still persists:
– I put the code in the site’s function.php file
– The sub-commands section is no longer displayed in the admin
– But it displays everything at the sellerWhat we want is that he have a single order from admin and seller and no sub-order
-
June 30, 2021 at 7:06 PM #124070NerdySupportExpert MoumitaKeymaster
@ecclesiastexavier98, so you want to show the main order number instead of the suborder number. That is why we have requested earlier to let us know where do you need these changes.
Can you please check once again and let us know where do you want this modification and give us a final list. This way our team can work on this at a go. -
July 1, 2021 at 2:40 PM #124110ecclesiastexavier98Participant
We want the main order and the sub-order at the seller to have the same ID, only one order number for the admin and the seller
Watch on the capture -
July 1, 2021 at 2:59 PM #124112ecclesiastexavier98Participant
What we want is for the admin and the seller to have only one order number,
We are not used to the subcommand and it creates bugs with our rewards system on completed orders -
July 1, 2021 at 7:14 PM #124133MVX Support NinjaKeymaster
@ecclesiastexavier98, In understand that you want only 1 order but as said earlier we can’t remove sub orders. To know more on our sub order, please do check our documentation first – https://multivendorx.com/knowledgebase/wcmp-split-order-module/
It is the main core of WCMp, vendor order-related data.That is why you can hide this from admin end and customer end. But the whole vendor dashboard order, data, the report is based on this sub-order number and we display that there.
-
July 1, 2021 at 10:08 PM #124149ecclesiastexavier98Participant
I understand you correctly from the beginning, in this case we will need a code to syncronize the main commands and the subcommands.
We want that:When the admin modify the status of the main order for example like COMPLETE it changes the status of sub-order at the seller like COMPLETE also
-
July 2, 2021 at 4:41 PM #124179ecclesiastexavier98Participant
Bonjour l’equipe j’ai resolu les bugs avec les codes suivant : The main commands and sub-commands under synchronize well
// Auto complete sub orders
add_action( ‘woocommerce_order_status_completed’, ‘wcmp_order_status_completed’ ); function wcmp_order_status_completed( $order_id ) { global $WCMp; $suborder_details = get_wcmp_suborders($order_id); foreach ($suborder_details as $key => $value) { $suborder_fetch = array( ‘ID’ => $value->get_id(), ‘post_status’ => ‘wc-completed’, ); wp_update_post( $suborder_fetch ); } }//Auto complete sub orders to cancelled
add_action( ‘woocommerce_order_status_cancelled’, ‘wcmp_suborder_status_change_to_cancel’ ); function wcmp_suborder_status_change_to_cancel( $order_id ) { global $WCMp; $suborder_details = get_wcmp_suborders($order_id); foreach ($suborder_details as $key => $value) { $suborder_fetch = array( ‘ID’ => $value->get_id(), ‘post_status’ => ‘wc-cancelled’, ); wp_update_post( $suborder_fetch ); } }//Auto complete sub orders to processing
add_action( ‘woocommerce_order_status_processing’, ‘wcmp_suborder_status_change_to_processing’ ); function wcmp_suborder_status_change_to_processing( $order_id ) { global $WCMp; $suborder_details = get_wcmp_suborders($order_id); foreach ($suborder_details as $key => $value) { $suborder_fetch = array( ‘ID’ => $value->get_id(), ‘post_status’ => ‘wc-processing’, ); wp_update_post( $suborder_fetch ); } } -
July 2, 2021 at 4:44 PM #124180ecclesiastexavier98Participant
But there is another bug with the seller’s commission:
– Normally when an order is placed on the site it immediately creates a commission for the seller
– When the order is canceled its should automatically remove the commission from the system, it does not work
-
July 2, 2021 at 8:04 PM #124200MVX Support NinjaKeymaster
Hi, our team is working in this code i.e. “When the admin modify the status of the main order for example like COMPLETE it changes the status of sub-order at the seller like COMPLETE also”
Kindly provide them some time.
-
July 5, 2021 at 6:58 PM #124265MVX Support NinjaKeymaster
Hi,
Sync parent order status ‘completed’ with sub order status
Please add this code in the function.php of the current active theme :
add_action('woocommerce_order_status_changed', 'wcmp_parent_order_to_vendor_order_status_synchronization', 999, 3); function wcmp_parent_order_to_vendor_order_status_synchronization( $order_id, $old_status, $new_status ){ $parent_order_id = wp_get_post_parent_id($order_id); if($parent_order_id){ // get sub-order of this parent order $suborders = get_wcmp_suborders( $parent_order_id ); $sub_order_status = 0; $suborders_count = count($suborders); if($suborders){ foreach ($suborders as $order) { if( $order->has_status('completed') ) { $sub_order_status++; } } } //Chnage the parent order status 'completed' if all sub orders are complete. if( $sub_order_status == $suborders_count ){ $order = wc_get_order( $parent_order_id ); $order->update_status( 'completed' ); } } }
CopyRegards,
-
September 16, 2021 at 5:58 PM #127674MVX Support NinjaKeymaster
We haven’t heard back from you for a while. We hope this issue is fixed, so we are closing this now.
If you need any further help, please do open another thread.
-
-
AuthorPosts
The topic ‘Problem on Wcmp Orders and sub-orders’ is closed to new replies.