Okay
  Public Ticket #3608096
B2BKing store customization
Closed

Comments

  • Russell Johnson started the conversation

    I am building an ecommerce site using WoodMart, woocommerce and B2BKing. The site isn’t yet visible at a public URL.

    I would like to customize the Shop Page via WoodMart layouts as follows:

    1) Choose a store layout based on the user role. We have a b2c/b2b site and I’m using B2BKing to set user roles as b2b or b2c. I have a shop layout for B2C and B2B but can’t have the store page choose a layout based on the user role.

    2) remove the Product Category links shown in the Page Title component

    3) change the Store name based on the user role in the layout. for example, for a b2c user the page title would be “Retail Store” and for a b2b customer the store title would be “Dealer Store”

    Any suggestions as to how to accomplish the above? thx.

  •  1,881
    WebWizards replied

    Hi Russell,


    There are 2 main ways we could achieve this kind of task:

    - One is to use group-specific CSS : https://woocommerce-b2b-plugin.com/docs/shortcode-to-restrict-content-to-b2b-b2c-user-groups-specific-users/ - for example this can be applied to easily hide some specific elements or areas for B2B or B2C users

    - Another is with code snippets, we can filter code based on whether a user is B2B, using the function 

    if (b2bking()->is_b2b_user()){ // code here }



    (1) Is the store layout a specific setting in Woodmart? If so, could you share a screenshot with me that highlights where exactly I can find that option.

    I believe I may be able to provide you with a code snippet that sets it differently based on B2B / B2C, so that each category of users has a different setting.


    (2) Could you share a link to your site? I believe I can send you the CSS for it.


    (3) Here, is that the "Site title" option in general settings?:

    3265515112.png


    Kind regards,

    Stefan