WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] B2C site with a link to B2B site with login mandatory (7 posts)

  1. Newki75
    Member
    Posted 1 year ago #

    Hi everybody,

    I don't find any help on the french forum so I need your help.
    I've build a website with WP, called http://www.mywebsite.com, which is a B2C website. At the homepage bottom, I've added a link : Profesionnal website for B2B target.
    My need is : a travel agent clicks on this link, have to login and see a different website from the classic user, called http://www.mywebsite.com/pro, with his own sitemap.

    2 questions :
    - How can I organise those 2 websites in wordpress with 2 homepages?
    - Which plugin allows me to give an access to the B2B target only? (as the rates won't appear, I can have the same login/pw for all travel agents, the idea is that classic user can't go to this part).

    Thanks in advance for your help guys and have a good day

  2. Sorry, but what's B2C and B2B?

  3. Newki75
    Member
    Posted 1 year ago #

    B2C = business to consumers so a site for everyone compared to a B2B site = business to business, so professional only.

  4. Aaah okay.

    Install WordPress in mywebsite.com
    Turn on Multisite
    Make a subsite for /pro/

    Now, out of the box you'll have seperate sites, with their own homepages and sitemaps, but the same login/pw for both.

    Users will only have access to the sites you give them access to, so all you have to do is use a function to check if they're members of the second site: http://codex.wordpress.org/WPMU_Functions/is_user_member_of_blog

    If not, they can't see anything :)

  5. Newki75
    Member
    Posted 1 year ago #

    Great thanks, it works perfectly, a nice sunday begins :-)

    One last question: since I've done this, in Appearance, I only have Themes / Widgets... / Background. Before, under "Background" I had a Editor link to go directly t the php files and css.

    Why did it disappear, it was really practical. Can I get it back?
    Thanks for your help
    Marine

  6. You have that, but only as the Network admin.

    Go to domain.com/wp-admin/network/ and look for themes.

    The reason for this is that you share themes for all sites, and only the network admin should be making edits ;)

  7. Newki75
    Member
    Posted 1 year ago #

    Yep, found it. Thanks for your help Mika.
    Bonne continuation

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.