MultivendorX
-
AuthorPosts
-
-
February 13, 2023 at 11:59 PM #180250Wideung ABParticipant
As requested I am creating a ticket in your supportforum.
My problem is that I don´t have any vendor orders since my migration_ cronjob disappeard for some reason. I have recreated the cron but not sure it has done anything yet?!
I have quite a lot of vendors and even more orders that are supposed to get migrated. 700 vendors and 200 000 orders so I expect it to take some time 😀You wanted to look into my environment and that is ok since it is a clone site.just let me know what you need.
-
February 14, 2023 at 11:45 AM #180252NerdySupportExpert MoumitaKeymaster
Hi @Wideung AB, thanks for reaching us over here.
Please do create the clone of your site again, we will proceed with the migration there.
Please do share the admin, FTP access also.
While sharing the access, don’t forget to mark the response as private. -
February 14, 2023 at 11:44 PM #180258Wideung ABParticipant
yes, I am creating the clone site right now, will get back to you as soon as it is ready
-
February 15, 2023 at 12:23 AM #180259Wideung ABParticipantThis reply has been marked as private.
-
February 15, 2023 at 5:36 PM #180288Sangita Support SquadKeymaster
We have fixed all the issues in our latest git version and we have installed that git version of our plugin to your site and have run the migration (https://watch.screencastify.com/v/Fs9Bw2ShxHRBb4z5mbqq) .
All the data have been migrated perfectly .We have checked the migration for the vendor differentierad_matte and noticed that all the things (like store image ,store name,store slug etc.) have been migrated perfectly with new vendor shop slug. -
February 15, 2023 at 7:18 PM #180290Wideung ABParticipant
AWESOME!!!!
Thanks! -
February 15, 2023 at 7:21 PM #180291NerdySupportExpert MoumitaKeymaster
Hi @Wideung AB, Regarding the cron issue basically none of our corn are working on your end.
Our team is debugging the issue, we will keep you posted.
-
February 15, 2023 at 7:25 PM #180293Wideung ABParticipant
perfect!
-
February 17, 2023 at 12:40 AM #180351NerdySupportExpert MoumitaKeymaster
Hi @Wideung AB, we checked your site.
Your server is not letting any corn to run. Can you please ask your server admin whether they have added any code that is stopping wp-drons from running?
-
February 17, 2023 at 1:09 AM #180353Wideung ABParticipant
hi, that is incorrect. I don´t use WP_Cron , I use “real” linux cron to run wp-cron.php every 5 minute, and that is working (this has several advantages over “normal” wp-cron which is only fired when people is activly on your site, and since my site has 20 000 uniqyue visitors/day it slows my site down. You can see it on the wordpress cron scheduling that they are firing as they should.
So there must be something else that is not triggering your crons unfortunatly.
-
February 17, 2023 at 11:16 PM #180425Raju The Cool GuyKeymaster
First of all you have disabled cron event through code. Please check your config.php file. define( ‘DISABLE_WP_CRON’, true );. We have pass false gere. Now cron is running. In case of migration cron, it is also running. But the problem is with your memory allocation issue. This is the fatal error — Fatal error:
Q‘Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777224 bytes) in /home/admin/domains/linuxportalen.com/public_html/skoltest/wp-includes/class-wpdb.php on line 2154’
Because you have more than 2.5 lakhs orders. But your memory limit is not so enough to featch all those order at a time.Please ask your server regading this issue.
-
February 18, 2023 at 12:16 AM #180427Wideung ABParticipant
Hi, yes I have disabled wp_cron in my config.php, but I have linux cron running instead.You can read about it here: https://woocommerce.com/document/automatewoo/replace-wordpress-cron-real-cron-job/
but ok, the problem is memory exhaustion, but I have 1GB allocated, i can ofcourse allocate more for while so I test this.. thanks
-
February 18, 2023 at 12:38 AM #180428Wideung ABParticipant
wouldn´t it be better to change the migration so that it doesn´t tries to read alla the orders at once, better to say take 1000 orders at a time or something?
yeah, i have 250 000 orders, and even if I allocated 50 GB of my ram it probably wouldn´t be able to read everything to memory…must be a another/better way? -
February 18, 2023 at 12:42 AM #180429Wideung ABParticipant
antoher questdion, is it possible to run a query directly against the database to achieve the same goal as the order migration cron?
-
February 18, 2023 at 11:57 AM #180432Wideung ABParticipant
Just realized I could use wp-cli to run the cron event. I will report back if it is working
-
February 18, 2023 at 12:22 PM #180433Wideung ABParticipant
Update: Seems to be working, I have a commision list now! And it is still going! will get back when it is complete and report back the result
-
February 20, 2023 at 2:20 PM #180478Sangita Support SquadKeymaster
Please do keep us posted.
-
February 24, 2023 at 12:01 AM #180959Wideung ABParticipant
well everything is still importing, it is importing commisions, it is around 80000 total, and it has gotten to 50 000, so soon 😀
btw, does it recreate commisions based from the orders? or does it take from the wcfm commisions table?
if I would do this on my live site, could the site be up and running despite the import taking place?
-
February 24, 2023 at 5:52 PM #181124NerdySupportExpert MoumitaKeymaster
We create commissions from suborders. The cron is running on your server end, which will just check whether there is any order that doesn’t have any commission, and will create that one.
So, when the migration takes place, you can take new orders, etc.
-
February 28, 2023 at 12:55 PM #185247Wideung ABParticipant
I have noticed that all commisions are unpaid (at least right now when importing), will the status change to paid? is this an easy task to do in database perhaps?
-
February 28, 2023 at 1:13 PM #185253NerdySupportExpert MoumitaKeymaster
@Wideung AB, were those commissions were paid earlier?
-
February 28, 2023 at 3:47 PM #185261Wideung ABParticipant
yes they were.
-
March 1, 2023 at 8:41 AM #186480NerdySupportExpert MoumitaKeymaster
Hi, actually unlike MultiVendorX, WCFM doesn’t have the concept of sub-order.
Hence this is difficult to track which of our commissions is connected with the commission created by WCFM. The team is looking for a way to track that.
For now, add this code in the function.php to mark all the commissions as paid :
add_action('init', function() { $args = array( 'post_type' => 'dc_commission', 'post_status' => array('publish', 'private'), 'meta_key' => '_paid_status', 'meta_value' => 'unpaid', 'posts_per_page' => -1 ); $commissions = get_posts($args); if ($commissions) { foreach ($commissions as $key => $value) { update_post_meta($value->ID, '_paid_status', 'paid'); } } });
CopyOnce you will add this code,refresh the page. It will start marking them as paid.
On completetion of the process, remove the code again.
-
June 14, 2023 at 12:46 PM #193370MVX Support NinjaKeymaster
Hi,
We haven’t heard back from you for a while. So, we presume this issue is resolved. So, we are closing this thread, if you need any further help, please open a new thread.
-
-
AuthorPosts
The topic ‘Import orders from WCFM’ is closed to new replies.