Your cart is currently empty!
Affiliates Users addon question
—
by
Hi There,
This question is about “Affiliates Users”. I couldn’t see a separate forum for it so posting it here.
Feel free to move this topic around.
Now, we purchased this addon to convert current and future users to affiliate users. We have 12000+ registered users. (of course, not all are active).
But when we run “Tools >> Import Affiliate” php backend just time-out. We have dedicated server with 32GB RAM, 8-core CPU. PHP is already given 10-minute of timeout but looks like its not enough for 12000+ users.
Looks like this plugin is not designed for big userbase like this. Ideally, there should be ajax or some process which should convert like 50 user in one go and then proceed to next.
How to solve this? As we need to convert every user to affiliate account.
We were using some legacy in-house affiliate codes and all users were already given affiliate id which are equal to their username and userid.
For username purpose, we purchased “Affiliate Username” plugin as well.
Thanks.
Comments
8 responses to “Affiliates Users addon question”
I am afraid that I won’t be able to give much time. We are in real hurry otherwise we would have coded these 2 modules rather than buying them.
We just need 3 things:
1. Painlessly import 12000+ users
2. Support username in affiliate parameter
3. WooCommerce Support
If these cannot be solved today only, we need to look for alternatives.
Can you confirm when this can be solved?
Hi,
1) You can use Affiliates API and create your own script or works directly with database.
2) You can use Affiliates by Username.
3) Please have a look to Affiliates Pro Woocommerce Integration.
cheers
Any update?
It’s queued for review and testing, we’ll post a follow-up here.
Thanks for update.
I saw codes and I think problem is looping through all users in one go.
Better approach would be to have something like ajax-based long-running process.
http://wordpress.org/plugins/regenerate-thumbnails/ is a good example. It has bulk regenerate thumbnail option which always works no matter how many posts are there or how low PHP timeout is.
Thanks Rahul, yes that would be one option, or to do it as a cron job.
Cron will take longer but as of now code doesn’t look rentrant. Any update when this will be fixed as a project is stuck here!
It won’t take long, basically need to fit the modification in our schedule and test it. If you’re in a real hurry, another option is to just limit it to a number of users, say 1000, and let it run several times (if I remember well, it won’t duplicate the entries).