Home Support Forum WCMp Core Using Marketplace for pre-registered user

  • Author
    Posts
  • hakan.mitts
    Participant
    Post count: 6
    #1648 |

    Hi,

    I tried to email you but got no answer, hopefully I can get some guidance here.

    I’m setting up a site where site members are able to sell their products. So members are vendors at the same time. To create a good Member experience, the current plan is to use Ultimate Member. In practice what this means is that user register via Ultimate Member and not via Marketplace (or so I would hope).

    I tested Marketplace by assinging the Vendor role to a user that was already logged in, but in this way Marketplace does not seem to work. I can see the dashboard but edits fail (I get the message “All Options Updated” but the store name and the slug do not update (addreses and banner seem to do so, but not sure).

    Also trying to add products fails, the user is redirected to the site main screen.

    So my questions:
    – Is it possible to get Marketplace to work so that the user register via UM?
    – If yes, then what should I do?

    Thanks, Håkan

  • hakan.mitts
    Participant
    Post count: 6

    Hi,

    I talked with UM developers and now I have full access to the admin bar but I can still not:
    – set the store (name and slug are not set)
    – I can create a product and send it for approval but the product is “lost” after that (I guess because the Vendor information is not properly set in the product as the store name and slug setting fails.

    Getting closer…

  • WCMp Admin
    Keymaster
    Post count: 1285

    Hello Hakan,

    Thanks for your time over live chat. Can you help me with the solution that was provided to by UM which allowed you to access the back-end with a vendor role?

    Regards,
    Sandeep

  • hakan.mitts
    Participant
    Post count: 6

    Hi,

    The first level solution was embarrassingly simple. There is a setting for UM Roles “Access wp-admin” which just needed be be set to “on”. This opened a view into the admin page (actually a more elaborate view that I need, but that is a happy problem at this point).

    So the user is now created with UM, has a UM role and then I also assigned the WP/Marketplace “Vendor” role to the user.

    With this setup, still cannot set store name and slug and the product does not get “tagged” as a Marketplace product.

    H

  • WCMp Admin
    Keymaster
    Post count: 1285

    Thanks Hakan, help me with sometime to check with the issues as we plan to launch an update by end of this week with the Woo 2.5 support. I would keep you posted.

    Regards,
    Sandeep

  • hakan.mitts
    Participant
    Post count: 6

    Hi. No prob. Perhaps I found some sort of symptome? I activated a capability editor (Members) and noticed that the Vendor had more or less no capabilities (Read, Edit post, Mananage Products and wc_reports). I then tried to add some capabilities but could not, when I try to update the capabilities I get a message

    Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘post_thumbnail_meta_box’ not found or invalid function name in /var/www/vhosts/dokk.fi/httpdocs/wp-admin/includes/template.php on line 1090

    What capabilities should the role Vendor have?

  • hakan.mitts
    Participant
    Post count: 6

    So here is what seems to be going on:
    – any time when I activate WC Marketplace, the capabilities of dc_vendor role go to -> 4 capabilies and I cannot edit them so that the change is permanent
    – when I disable WC Marketplace, the “correct” capabilities (re)appear and I can freely edit the capabilities and they stay

    Spooky ;-)??

    So somehow it seems that WC Marketplace “overwrites” the capability?? I don’t really understand how this is happening but it is 100% reproducible.

  • WCMp Admin
    Keymaster
    Post count: 1285

    Hello Hakan,

    Can you please confirm if the above scenario comes into picture when UM is active or is it independent of that i.e I mean even when you only have WooCommerce and WC Marketplace plugins in your site.

    Looking forward to your response.

    Regards,
    Sandeep

  • hakan.mitts
    Participant
    Post count: 6

    This is totally independent of whether or not UM is active or not. Starting WC Marketplace resets Vendor capabilities and after that prevents editing them. Or to be more exact, seems I can edit them (I managed to remove the error message, it was not the reason here), no error during edit, but then “something” comes and overrides the settings..

    Bizarre.

  • WCMp Admin
    Keymaster
    Post count: 1285

    Hello Hakan,

    Let’s try to get this issue fixed. Can we have a one-to-one conversation over live chat. If yes, please ping me as per your availability. In case I am not around, I shall drop you an email to schedule the discussion.

    Regards,
    Sandeep

Please LOGIN to reply to this topic