Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Adding aditional vendors roles #59045
    David
    Participant

    @FERVOUS
    Did you do some tests and have you any idea on how to do it?

    Thanks, still waiting any solution to that problem. Please, help me.

    in reply to: Adding aditional vendors roles #57495
    David
    Participant

    Any update about that?

    in reply to: Adding aditional vendors roles #56412
    David
    Participant

    Hi Anna, I didn’t understand why is not working for me. I did not do any other modification to the code, so that should work.
    The problem isn’t related with the vendor list shortcode, when I put this code into my functions.php ‘vendor’ don’t work properly. (Not talking about ‘newvendor’, but originally ‘vendor’ role).

    It’s like old ‘vendors’ user are not anymore vendors, so it also change ‘sold by Vendor-Username’ to ‘Sold by Admin-username’. The vendors shop pages disapear.
    Could someone please help me with that? i can provide credentials access.

    I tried too:
    add_filter(‘wcvendors_vendor_roles’, ‘new_wcvendors_vendor_roles’);
    function new_wcvendors_vendor_roles($vendor_roles){
    $vendor_roles = array(‘vendor’);
    return $vendor_roles;
    }

    Witch should work as it does before, but it doesn’t work eother.

    in reply to: Adding aditional vendors roles #56297
    David
    Participant

    Hi Anna, thanks so much for your help.

    Now that I’ve included your code to my functions.php file, when I go to my vendors list [wcv_pro_vendorslist] and I click on a vendor to go to his shop-page it doesn’t works. It’s like a redirect to the vendor list page. Vendors pages has desapeared.

    If I delete the code everything works fine again. I can see on my vendors list all the ‘vendor’ users and go to his shop page.

    What could be the problem? Did you try this code in your demo site?

    in reply to: Adding aditional vendors roles #56201
    David
    Participant

    Hi Ben, thanks for your answer.
    Yes, i have duplicate yet the role vendor and rename it to school. That step it’s all ok.

    I have seen that knwoledge post, the problem is that i’m not that good with wordpress filters and php.
    So could you please explain to me more detailed or make an example with that?
    I’m not understandng how do i have to add this filter to have an additional role.

Viewing 5 posts - 1 through 5 (of 5 total)