MultivendorX
-
AuthorPosts
-
-
December 18, 2022 at 12:29 AM #148196
l.gan
ParticipantHello
1. The function “Allow vendor to change order status” is enabled, but in fact the vendor cannot change the order status. Could you check it from your side.
2. Will there be compatibility with High-Performance Order Storage (HPOS) new Woocommerce function soon? While it is beta, but as far as I understand it will soon become a daily feature.
-
December 19, 2022 at 11:19 AM #148211
NerdySupportExpert Moumita
KeymasterHi i.gan, our replies are inline :
1. The function “Allow vendor to change order status” is enabled, but in fact the vendor cannot change the order status. Could you check it from your side.
>> Hi, as you can see this is working fine on our end : https://jhn4wdmbd4.vmaker.com/record/idAoIEnGlqf2ameF
Can you please check whether the settings is configured properly via MultiVendorX >> Settings >> Orders
2. Will there be compatibility with High-Performance Order Storage (HPOS) new Woocommerce function soon? While it is beta, but as far as I understand it will soon become a daily feature.
>> I am afraid we haven’t tested this on our end.So please do test this in your end, if you do face any issue let us know. We will assit you accordingly.
-
December 19, 2022 at 10:03 PM #148215
l.gan
ParticipantHello
Thanks for the reply
1. yes i checked it was my mistake, your plugin works fine.
2. I haven’t tried to enable this feature yet, but I mean woocommerce will create a new table for orders. And it will somehow depend on the suborders. I have a test site, I will try to test and let you know. But for now, you can see a warning from the woocommerce plugin that MultivendorX is incompatible with the new feature.
_____Please help I have a few more questions:
3. I created a new order status “wc-delivery” Delivered using Nuggethon’s Custom Order Statuses for WooCommerce plugin.
This status is partially displayed in the vendor panel.
Please see the photo, I marked the order areas with numbers.How to add the number 3 in the field – Bulk actions – Change the status “Delivered”?
4. How to remove the number 4 from the field – filter by order status: remove “Draft”, “Failed”, “Pending payment”?
5. In the order, it is possible to change the status of the order.
My new order status “Delivered” is added there – everything is ok.But please tell me how to remove the statuses from there: Pending payment, Draft, Failed?
-
December 20, 2022 at 1:00 AM #148219
Justin Harrison
ParticipantRe: HPOS compatibility
Your response @NerdySupport makes it seem like you do not even know what HPOS is which is concerning since your plugin directly integrates with and relies on WooCoommerce. HPOS is how WooCommerce will store orders in the database in the future. If you have not already started to plan to adjust your code to work with it, you are behind the curve. Simply enabling HPOS in WooCommerce to see if there are “issues” should not be the goal. The goal should be to update MultivendorX so that it takes advantage of the new HPOS system when available because it will greatly improve database performance. The plan is to roll out HPOS as the default method of data storage in WooCommerce 8.0 which is expected to be released in August 2023. I would love to enable HPOS now, but there’s really no point because MultivendorxX won’t take advantage of the benefits as it is not compatible. Hopefully by August 2023 when WooCommerce rolls this out in 8.0 and compatibility is required, MultivendorX will be up to date.
-
December 20, 2022 at 5:40 PM #148295
NerdySupportExpert Moumita
Keymaster@Justin Harrison, from our support team’s perspective, we haven’t tested this.
However our developers are aware of this, but we are yet to work on this. Becasue this flow is still under development and we will wait until WooCommerce will release proper documentation.
Once we will release support, we will let you know.
-
December 20, 2022 at 9:17 PM #148299
Justin Harrison
ParticipantGood to hear your developers are aware of it. How would I be able to contact your development team to have discussions with them about this since that is not the support team’s area? WooCommerce has released proper documentation and are asking developers to make their plugins compatible with HPOS.
-
December 21, 2022 at 1:20 AM #148302
l.gan
ParticipantCan you please tell me if there is an answer to my questions 3-5?
-
December 21, 2022 at 12:55 PM #148312
NerdySupportExpert Moumita
KeymasterI.gan, our replies are inline :
3. I created a new order status “wc-delivery” Delivered using Nuggethon’s Custom Order Statuses for WooCommerce plugin.
This status is partially displayed in the vendor panel.
Please see the photo, I marked the order areas with numbers.
How to add the number 3 in the field – Bulk actions – Change the status “Delivered”?
5. In the order, it is possible to change the status of the order.
My new order status “Delivered” is added there – everything is ok.
>> There is no ready-made code for this, as this is a third-party plugin’s support.So basically you have to add your own code using our hook/filter. Then add support of these fields.
4. How to remove the number 4 from the field – filter by order status: remove “Draft”, “Failed”, “Pending payment”?
>> Add this code in the function.php of the theme :
//hide order status from vendor dashboard add_filter('mvx_vendor_order_statuses','hide_status'); function hide_status($status) { unset($status['wc-pending'']); //remove on-hold unset($status['wc-failed']); //remove failed unset($status['wc-checkout-draft']); //remove draft return $status; }
Copy-
December 21, 2022 at 9:44 PM #148335
l.gan
ParticipantMoumita thanks, can I ask you for hooks (if any) to resolve issues with a third party plugin for the Bulk Action field on the orders page?
-
December 21, 2022 at 10:23 PM #148336
l.gan
ParticipantI found the first hook to add status to bulk actions to change order status.
part 1 works.But part 2 does not work, the status of the selected orders does not change to “Delivery”. I am new to php, can you help me? Am I using the right hook?
/*1*// Add a bulk action to Orders bulk actions dropdown
add_filter(‘mvx_bulk_actions_vendor_order_list’, ‘mvx_status_orders_bulk_actions’);function mvx_status_orders_bulk_actions($bulk_actions) {
$bulk_actions[‘delivery’] = __(‘Change on Delivery”‘);
return $bulk_actions;
}/*2*/// Process the bulk action from selected orders
add_filter(‘mvx_orders_list_do_handle_bulk_actions’, ‘mvx_status_bulk_action_edit_shop_order’, 10, 3);function mvx_status_bulk_action_edit_shop_order($bulk_action, $ids, $requestData, $vendor_all_orders) {
if ($action === ‘delivery’) {foreach ($post_ids as $post_id) {
$order = wc_get_order($post_id);
$order->update_status(‘delivery’);
}
}
return $redirect_to;
}
-
-
December 21, 2022 at 12:59 PM #148314
NerdySupportExpert Moumita
Keymaster@Justin Harrison, our team already checked the doc, but this is still in the development phase and they are still working on this.
So, till now there are a few docs that will actually help us to convert the order table into their format. Like them, our team is also doing R&D on this.
-
December 22, 2022 at 4:51 PM #148363
NerdySupportExpert Moumita
Keymaster@Justin Harrison, can you please create a staging site and share the temporary admin, FTP access?
Also, please do share the code that you are using to make an order as delivered from the order details page.
-
December 22, 2022 at 9:14 PM #148376
Justin Harrison
Participant@NerdySupportExpert, I am not the one asking or communicating about the delivered order status. That is @l.gan.
-
December 23, 2022 at 10:52 AM #148389
NerdySupportExpert Moumita
KeymasterSorry My mistake, I.gan, can you please create a staging site and share the temporary admin, FTP access?
Also, please do share the code that you are using to make an order as delivered from the order details page.
-
December 24, 2022 at 2:24 PM #148380
l.gan
ParticipantThis reply has been marked as private. -
December 24, 2022 at 2:24 PM #148381
l.gan
ParticipantThis reply has been marked as private. -
December 24, 2022 at 2:26 PM #148428
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
December 26, 2022 at 11:39 PM #148474
NerdySupportExpert Moumita
KeymasterThanks for the access, our team will check and get back to you.
However as this is third party plugin support hence it might take some time.
-
December 28, 2022 at 6:35 PM #148593
promita
ModeratorHi @l.gan, thanks for your access. I have added the code in your code-snippets.
Here is the code that I have added already.//Add a bulk action to Orders bulk actions dropdown add_filter('mvx_bulk_actions_vendor_order_list', 'mvx_add_bulk_options_vendor_order_list', 10, 2); function mvx_add_bulk_options_vendor_order_list( $list, $vendor ) { $add_bulk = array( 'mark_delivery' => __( 'Change status to delivery', 'multivendorx' ), ); return array_merge( $list, $add_bulk ); }
Copy-
December 28, 2022 at 11:30 PM #148614
l.gan
ParticipantHello
Thanks a lot for your help.
1. Can you please tell me how can I send emails when the suborder status changes to /MultiVendorX/emails/vendor-notify-shipped.php?
a. Now I have created a file in the child theme../wp-content/themes/woodmart-child/woocommerce/emails/delivery.php
b. I copied the delivery.php file from the content of the dc-woocommerce-multi-vendor/templates/emails/plain/vendor-notify-shipped.php file
But a notification letter that a part of the order (suborder) has been sent is not sent to the client.
Please tell me how can I do this?
2.And is it possible to trigger an action:
If the order is sent a track number through the button (see photo), then its status automatically changes to my custom status “Delivered”?
Thank you so much for your support
-
-
December 30, 2022 at 7:06 PM #148684
NerdySupportExpert Moumita
Keymaster@l.gan, our team will help you out.
However, it will take some time, as the team is on leave due to holidays.
-
January 2, 2023 at 5:04 PM #148725
GeekyCoder Abhirup
ModeratorHi,
our replies are below
1. Can you please tell me how can I send emails when the suborder status changes to /MultiVendorX/emails/vendor-notify-shipped.php?
>> For this you have to add good amount of custom code using below hookwoocommerce_order_status_changed
Copy2.And is it possible to trigger an action:
If the order is sent a track number through the button (see photo), then its status automatically changes to my custom status “Delivered”?
>> for this add blow hook and add your custom hookdo_action('mvx_vendors_vendor_ship', $order_id, $this->term_id);
CopyRegards,
-
January 3, 2023 at 11:20 PM #148806
l.gan
Participant1. Please give me some time to study this question and hook.
2. Could you take a look at the code below, what do I need to fix and how do I add an action? I used your answer from the link below.
https://multivendorx.com/support-forum/topic/update-order-status-after-make-as-shipped/#post-70426do_action(‘mvx_vendors_vendor_ship’, ‘callback_wcmp_vendors_vendor_ship’, 99, 2);
function callback_wcmp_vendors_vendor_ship($order_id, $this->term_id){
$mails = WC()->mailer()->emails[‘WC_Email_Notify_Shipped’];
if (!empty($mails)) {global $MVX;
$suborder_details = get_mvx_suborders($order_id);
foreach ($suborder_details as $key => $value) {
$suborder_fetch = array(
‘ID’ => $value->get_id(),
‘post_status’ => ‘wc-delivery’,
);???
wp_update_post( $suborder_fetch );
}}
} -
January 4, 2023 at 5:27 PM #148844
GeekyCoder Abhirup
ModeratorHi,
Add below code to your function.php of the current active themeadd_action('mvx_vendors_vendor_ship', 'callback_mvx_vendors_vendor_ship', 99, 2); function callback_mvx_vendors_vendor_ship($order_id, $term_id) { if ( ! $order_id ) return; // Get an instance of the WC_Product object $order = wc_get_order( $order_id ); $order->update_status( 'delivery' ); // here your order status name without "wc-" }
CopyRegards,
-
January 7, 2023 at 9:11 PM #149050
l.gan
ParticipantThis reply has been marked as private. -
January 8, 2023 at 3:30 PM #149068
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
January 9, 2023 at 1:51 PM #149086
NerdySupportExpert Moumita
KeymasterCan I use plugin like Email Log so we can check the log and disable them as per that.
-
January 10, 2023 at 12:31 PM #149192
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
January 10, 2023 at 6:04 PM #149232
l.gan
ParticipantHello
Thanks for your work and time
Unfortunately, at the time of your testing, the action of sending a letter was disabled when the status changed to “Delivery”.
Please look at the photo.
May I ask you to check this action again, please?
-
January 11, 2023 at 12:40 PM #149292
NerdySupportExpert Moumita
KeymasterIgan, it will be really helpful for us if you can share a video of the flow so we can assist you accordingly.
-
January 11, 2023 at 5:49 PM #149301
l.gan
ParticipantThis reply has been marked as private. -
January 14, 2023 at 1:32 AM #149426
NerdySupportExpert Moumita
Keymaster@l.gan, as far as we understood that delivery plugin is sending two mail one for main orders and the other for suborders.
So, can you please ask this delivery plugin author whether they have any checking that will let us fetch the order number when this plugin is triggering the mail.
-
January 18, 2023 at 8:43 PM #149544
l.gan
ParticipantI contacted the plugin developer with this question, including an email in contacts, but to my regret – I have not received an answer yet…
_____
Tell me more please. By law in my country, I have to show the details of the company that sells the product on every page of their product.Is there a way to insert a custom field into the dashboard so that vendors fill it with their details. And how do I display it on the product page with a check – does this product really belong to the supplier, to show the correct field?.
-
January 19, 2023 at 1:59 PM #149565
NerdySupportExpert Moumita
Keymaster@l.gan,. can you share a screenshot mentioning what fields you need and where? Also, please do explain the flow in details so we can assist you accordingly.
-
January 19, 2023 at 9:38 PM #149579
l.gan
ParticipantThis reply has been marked as private. -
January 20, 2023 at 11:15 AM #149600
NerdySupportExpert Moumita
Keymaster@l.gan, you need to override shop-front.php template file and add those fields.
To know more on how to override this temple, please follow this thread https://github.com/multivendorx/MultiVendorX/blob/main/templates/vendor-dashboard/shop-front.php
-
January 20, 2023 at 7:22 PM #149606
l.gan
ParticipantThis reply has been marked as private. -
January 23, 2023 at 7:57 PM #149649
NerdySupportExpert Moumita
Keymaster@l.gan, please share a staging site’s access where you have these code added so we can check.
While sharing the access don’t forget to mark the response as private.
-
January 23, 2023 at 8:16 PM #149651
l.gan
ParticipantThis reply has been marked as private. -
January 24, 2023 at 6:56 PM #149714
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
January 25, 2023 at 3:03 PM #149734
promita
Moderator@l.gan, can you please confirm exactly where do you want to display the extra field?
I have checked the storefront page the custom field is there.
So, please do explain what further modification are you looking for so we can assist you accordingly.-
January 25, 2023 at 9:19 PM #149743
l.gan
ParticipantPromita thank you for your reply. Please see:
Yes, there is an input field for a custom field. But if I try to enter something there. For example the text “Name”, and save the changes – this text as a value for this vendor – it is not saved.
It seems to me that I have a bug/problem in the code of the function.php file…
__
I need to display the value of a field on a single product page. woocommerce_before_add_to_cart_form.For example, if I enter Calvin Klein’s government registration data for a Calvin Klein supplier, it should not appear on the Nike single product page.
And if I enter the registration data of the Nike company – they should not be displayed on the page of products from other vendors.
-
-
January 27, 2023 at 7:53 PM #149801
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
January 28, 2023 at 3:51 PM #149882
promita
ModeratorHi l.gan, you saved the data in post meta but you need to save this in user meta. You also need to use ‘mvx_save_custom_store’ hook for this.
-
January 30, 2023 at 3:00 PM #149931
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
February 2, 2023 at 7:43 PM #150074
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
February 3, 2023 at 6:34 PM #150094
promita
ModeratorThis reply has been marked as private. -
February 3, 2023 at 11:44 PM #150117
NerdySupportExpert Moumita
KeymasterThis reply has been marked as private. -
February 7, 2023 at 5:47 PM #168433
promita
ModeratorHi l.gan, Yes this is the correct code to display the field in the storefront.
-
February 7, 2023 at 10:11 PM #174481
l.gan
ParticipantMany thanks to everyone
Please mark the ticket as resolved.Amazing support!
-
-
AuthorPosts
The topic ‘Vendor cannot change order status + High-Performance Order Storage compatibility’ is closed to new replies.