ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Log in to different member_groups

July 04, 2012 10:56am

Subscribe [1]
  • #1 / Jul 04, 2012 10:56am

    venkdevelop

    5 posts

    I am developing a site to sell some beverages to retail customers and wholesale customers.

    I want to keep a log in form in landing page which help both customers to access site according their customer type (retail or wholesale)

    I used member:log in_form and check my member_group.  It is “1” because I already log in into my system.

    Is this possible in EE:  Create a Button for retail and button for wholesale.  Then when a customer click a button system pick customer choice and give access to relevant member group using code snippet below.

    {if member_group == 7}
      Access to Retail group
    {/if: elseif member_group == 8} 
      Access to wholesale group
    {if:else}
      Welcome to our site.
    {/if}


    If it is not possible can you please guide me to the right track. I am new to EE and I love it 😊.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases