Okay
  Public Ticket #3331014
B2B & wholesale suite
Closed

Comments

  •  7
    Anette started the conversation

    I have just bought and installed your woocommerce B2B wholesale suite plugin,  but I can not find the support option there, so i hope you can help me out.

    After setting up the registration & login site, using the recommende shortcode,  my users are not being logged in to their shop according to the goup defined roles. 

    -in fact they can not login at all. - i can not find any clarification in the documentation. 

    schould i convert to B2B king ? -it seems that you have made this after the B2B wholesale suite!, and it seems like the B2B wholesale suite is no longer updated ?

    Hope for a quick clarification as this is a very urgent matter. warm regards 

    Anette Lilja, Denmark

  •  1,904
    WebWizards replied

    Hi Anette,

    Thank you for purchasing,


    Just to let you know, support for all plugins on WooCommerce.com is done via this link: https://woocommerce.com/my-account/create-a-ticket/


    After setting up the registration & login site, using the recommende shortcode,  my users are not being logged in to their shop according to the goup defined roles. 

    -in fact they can not login at all.

    What exactly happens when users try to login? Is there an error? or does nothing happen?

    The easiest way for us to look into it is if you can share a backend login to your site or to a staging clone site - that way we can troubleshoot it directly.



    Regarding the 2 plugins, B2BKing does have a few extra features, but it depends on what you need to use it for. In many cases it will not matter which one you use.


    Kind regards,

    Stefan

  •  7
    Anette replied

    Dear Stefan

    many thanks for your reply.

    i have decided to ask for a refund on the wholesale suite plug-in, and will install the B2B king instead. If i get the same issues i will contact you for support on how to solve it. 

    kind regards

    Anette Lilja


  •  7
    Anette replied

    Dear Stefan 

    I am now a B2B King user, and i am happy i made the switch - i seems a lot more user friendly.

    I do however have the exactly same issuse with login and registration.

    if you go to https://sport-direct-helsingor.dk/min-konto/ - you can se the login/registration page - set up by using the sortcode [b2bking_b2b_registration] 

    but i get some error messages when trying to create new user.

     and when trying to login with existing user with group access, it says that i have to logout in order to create B2B user .  

    I am clearly missing something in the configuration process but i can not figure out what.

    I hope you can give me the golden clue in how to solwe this

    many many thanks

    Anette


  •  1,904
    WebWizards replied

    Hi Anette,

    Thanks for purchasing and we hope you'll be happy with B2BKing - it's our best B2B plugin with the most features (and more coming).


    "if you go to https://sport-direct-helsingor.dk/min-konto/ - you can se the login/registration page - set up by using the sortcode [b2bking_b2b_registration] 

    but i get some error messages when trying to create new user.

     and when trying to login with existing user with group access, it says that i have to logout in order to create B2B user .  "

    On the my account page, please only use the [woocommerce_my_account] shortcode. The B2BKing shortcode cannot be used there, because it is not a replacement for the my account shortcode. Our plugin's shortcode is only to be used on separate pages.

    So please edit the https://sport-direct-helsingor.dk/min-konto/  page and change the shortcode to [woocommerce_my_account]

    After doing that, now do you still have any issue? or what do you need to setup or modify now so that it fits your project needs?


    Kind regards,

    Stefan


  •  7
    Anette replied

    Hi Stefan

    Well noted, and many thanks. 

    now i need to understand how the user is redirected to the group (category) they are assigned to. When logging in they are simply logged in to the dashboard. - i need them to be logget in directly to the category/shop.

    kind regards

    Anette

  •  1,904
    WebWizards replied

    Hi Anette,

    By default, our plugin follows the standard WooCommerce login redirect (which redirects to the dashboard).

    If you'd like, we can change that by adding a code snippet to the site.


    This snippet will make it redirect to the Shop page on login:

    function filter_woocommerce_login_redirect( $redirect ) {
        return get_permalink( wc_get_page_id( 'shop' ) );
    }
    add_filter( 'woocommerce_login_redirect', 'filter_woocommerce_login_redirect', 10, 1 );
    

    A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    Kind regards,

    Stefan


  •  1
    Anette replied

    Hi Stefan

    So far so good - i have now added the snippet, and I am now able to login, but the redirect is not accurate. I will try to explain:

    Customer A is assigned to the Group -  Shop 1

    Shop 1 is the name of the category where there are various products attached.

    When customer A logs in, he is redirected to a product which is not ind the category shop 1, but a product which is part of another category.

    I have read the documentation but I simply can not figure it out

    I hope you can help me once more. :)

    FYI, our site uses the theme AVADA (i don't know if that is relevant).


    best regards

    Anette

  •  1,904
    WebWizards replied

    Are you trying to redirect specific B2BKing groups to specific product categories on login?

    There is no feature for that, but we could do it with a code snippet.


    The snippet would have to be based on the group IDs and category IDs/links. It is a bit complex.

    Would you like to share a backend login to your site / staging clone site with us, and let me know which groups should go to which categories? 

    That would probably the fastest way I could write it.



  •  1
    Anette replied

    Yes, exactly :) 

    we have a number of b2b customers from different companies, and we need them to have their own private shop on our page with direct login access.  I am in the process of creating the groups in B2BKing - and in the future there will be new ones coming in.

    My urgent task is to connect B2BKing group idrætslinjen with the category idrætslinjen - i have 120 members this coming wedensday whom i would like to be able to login to the category/site. Idrætslinjen is a school and the students will order their uniform in the shop.

    I will be more than happy to share a login - let me know how I do that?, -we do not have a staging site so this will have to be on our live page - will there be any security issues in doing that ?

    I have the snippet plugin installed as you recommended - can we use this to do the job.

    Best regards

    Anette

  •   WebWizards replied privately
  •   Anette replied privately
  •  7
    Anette replied

    Hi Stefan

    Did you get my private reply ok? -or do i need to do something different :)

    Many thanks

    Anette


  •   WebWizards replied privately
  •   Anette replied privately
  •   WebWizards replied privately
  •   Anette replied privately
  •  1,904
    WebWizards replied

    Hi Anette,

    No problem, I modified the snippet now to redirect to pages instead of shop categories.


    For Indraetslijnen I assume this is the page? https://sport-direct-helsingor.dk/klubmedlemsshop/idraetslinjen/


    In any case, here is how you can use it:

    1) Go to the page (e.g. https://sport-direct-helsingor.dk/klubmedlemsshop/idraetslinjen/ or whatever the page/site you want to redirect to is)

    2) Click on Edit (Rediger side): 

    5897628153.png

    3) Copy the number in the URL (e.g. hp?post=22398&action=edit -> the number is 22398)

    4) In the code snippet, put the number here: 

    1367989466.png



    Let me know if that works for you,

  •  7
    Anette replied

    Hi Stefan

    Many thanks the redirect seems to be working like a dream - i do however have an error accuring when creating new pages - it tells me that a critical error occures, but i do not know if it has anything to do with the snippet. hope you maybe can help me. kind regards Anette

    6772665823.png



  •   WebWizards replied privately
  •   Anette replied privately
  •  1,904
    WebWizards replied

    Thanks Anette,

    I looked into it and I made an update to the B2BKing plugin on your site to fix a conflict there. I believe the issue is solved now but please let me know if you see any further issues,


    Kind regards,

    Stefan

  •  7
    Anette replied

    Hi Stefan

    thank you for all your help.

     some products are now showing a greyish text - and i can not find out where to edit this. 

    5745749371.png

    kindest regards

    Anette

  •  7
    Anette replied

    Hello again

    after clicking around the plugin, i found the "slider" button in the settings - :)))

    This solved the issue - so for now all is well.

    thanks again, and have a nice day

    rgds

    Anette

  •  7
    Anette replied

    Hi Stefan

    is it possible to make sure that products/categories - cannot be found by google ? I can not find this topic in the plugin documentation, so i hope you can help me. - this example showed up after a simple search (i have yoast installed and have dissabled the crawling in all the products, the category and the page itself), but still it is possible to find the products.


    8343890583.png

    When we create a group with login rules - it is important that the category and products attach,  only are visible for members of this group, but I seem to be able to find the products anyway. -even when crawlers are disabled in Yoast.

    Kind regards

    Anette 

     

  •  1,904
    WebWizards replied

    Hi Anette,


    In our plugin you can configure product visibility by product / category, as described here:

    https://woocommerce-b2b-plugin.com/docs/faq-product-visibility-is-not-working-how-to-set-up-product-visibility/

    If you make a product invisible to logged out users, when a logged out users clicks on it, they are redirected to the my-account page. 

    The same happens to crawlers like Google search, it gets redirected, so such a product's page would not get indexed by Google.


    In your screenshot, I see that the Elsinore 2032 category is visible in Google search. 

    It seems this page is accessible to logged out users https://sport-direct-helsingor.dk/elsinore-2032/ , so it is normal that Google can also view and index it.


    I see that this is a normal wordpress page, not a category. So our plugin cannot hide it directly for logged out users (our plugin can only hide products and categories but not pages).


    One solution could be to use a redirect plugin such as https://wordpress.org/plugins/redirection/ and create a redirect for logged out users only. For example to redirect that page, to the home page (for logged out users only).


    Hope that makes sense,


    Kind regards,

    Stefan