Closed (fixed)
Project:
Ubercart Marketplace
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2010 at 10:47 UTC
Updated:
12 Jun 2010 at 15:20 UTC
Hi,
I have setup my store so that when a user buys some products, it gets a new role for 1 year.
Everything works as expected, but if a user buys different products from different sellers,
the order workflow completes normally (it shows as completed), but the buyer does not get his/her new roles.
Does this happen by design or is there something that I am missing?
Thanks!
Comments
Comment #1
syndicateStorm commentedWhat was your approach for setting up the role (I want to setup my install the same way, so I can debug the problem)?
Comment #2
Aibu commentedHi,
I think that I used the default workflow in order to setup product features:
1) I created a list of different roles (let's say "Role1", "Role2", Role3");
1) I created some products (associated to different sellers, let's say "Product1" associated to "Seller1", "Product2" associated to "Seller2", "Product3" associated to "Seller3");
2) For each of these product I created a feature that would allow to be promoted to a special role (let's say, if a user bought "Product1" he/she would get "Role1", a user who bought "Product2" would get "Role2" and so on).
Now comes the strange part.
Case1
If for a order I only buy "Product1", everything works perfectly, I, as a user, get "Role1", "Seller1" gets his/her notification, the website admin gets his/her commission, and all notifications are sent correctly.
Case2
If in an order, I buy different products from different seller, for example "Product1" and "Product2", the order goes to "complete" status, the roles are not assigned and sellers do not get the commission. In addition (but I am sure every issue is linked), the reports on the sellers' homepages are not updated.
Please let me know if this is clear enough and if I can help.
Thanks
Comment #3
syndicateStorm commentedI am assuming, at least for testing purposes, the permissions are the same for all the roles and they have 'act as seller' checked, etc.? I wonder if you could disable Marketplace to confirm workflow and roles are functioning properly? You are using the "Ubercart Roles Module" to add a feature that changes the role of the user after the product is purchased, correct? I'll start looking into this, but the more info I get from you the better.
Comment #4
Aibu commentedHi,
>> I am assuming, at least for testing purposes, the permissions are the same for all the roles and they have 'act as seller' checked, etc.?
Yes, all the user who can sell a product have their 'act as seller' checkbox on, on the permission pages;
>> I wonder if you could disable Marketplace to confirm workflow and roles are functioning properly?
I cannot disable Marketplace at the moment, as it is on a production server. By the way, workflow was working good before installing Marketplace. Basically on my setup Marketplace is used to define commissions and to use the reports. Before I had products associated to different sellers and I did all the commission work by hand. I didn't get the issues mentioned above.
>> You are using the "Ubercart Roles Module" to add a feature that changes the role of the user after the product is purchased, correct? I'll start looking into this, but the more info I get from you the better.
Yes, I am using "Ubercart Roles Module"
In the while I am trying to get the same setup in a local machine so that I can help with the debugging.
Thanks a lot!
Comment #5
Aibu commentedHi,
I have set a local copy of Drupal and only enabled Ubercart with some products (but different node owner) and some features (role progression) and it is working as expected.
I am try to look at the code, but I don't know where to start. Could you please give me indication on where Ubercart Marketplace connects with Ubercart and process the workflow?
Thanks a lot!
Comment #6
syndicateStorm commentedI don't have access to the code this minute, I'll look closer tonight. I would start looking at the following files: mp_products.module, mp_products.admin.inc, and mp_orders.module. I'll look a little deeper into this in about 12 hours or so, so if you learn anything in the mean time let me know. Cheers.
Comment #7
Aibu commentedHi, I have gone through the code of the pages suggested many times, but to me it seems that MP does not handle these operations.
I haven't seen any line that refer to handling a complete order operation, so maybe the problem resides on Ubercart main module.
The thing is that without MP installed it works normally.
I will continue looking...
Comment #8
syndicateStorm commentedMost of the action probably does happen in Ubercart. However it sounds like Ubercart is working fine without Marketplace. It's probably something more subtle, some sort of conflict between the two modules. I'll give it a look...
Comment #9
syndicateStorm commentedI finally gave it a shot and it worked for me. The commission was paid and the buyer got assigned all three roles. I had to make sure that all my products had been fulfilled and marked as shipped. And when I added the role "feature" to each product I assigned each product an appropriate unique sku. I don't see anything unusual in my permissions. Let me know how I can help.
Comment #10
Aibu commentedHi,
and thanks for taking the time to check it out.
Basically my products are access to video stream so seller do not fulfill and do not ship products. Did your products have different sellers?
Thanks!
Comment #11
Aibu commentedHi, I solved the issue!
Apologies for blaming MP when the problem resides on Ubercart.
I followed steps defined here:
http://www.ubercart.org/forum/support/16634/product_role_assignment_only...
and everything seems to work now.
Apparently, if the product is virtual, it seems that the status "Completed" goes only at the first item of the order. By changing Conditional Actions as explained above, everything seems to work as it should.
Thank you very much for your time and support!
Comment #12
Aibu commented