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 😊.