The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 06-09-2015, 02:45 PM
Guy Muller's Avatar
Guy Muller is offline
 
Join Date: Apr 2015
Location: Biel CH
Posts: 14
Exclamation

Find the ID of the customer group


hello, I wish to find the ID of the group…
My account is an account of test, I have a Businness account for the marketing of products.
I want to give access to a category of products only to the customers who belong to a group wholesaler, the others one not access to the products.

Muller Guy
  #2  
Old 06-09-2015, 05:35 PM
Cyril D's Avatar
Cyril D Cyril D is offline
Ecwid Team
 
Join Date: Feb 2015
Location: Ecwid HQ
Posts: 530
Default

Hi,

Thanks for your message! I'll be glad to help.

You can restrict access to a specific category using some CSS rules which will hide the products from the storefront, if a customer doesn't belong to a specific customer group, e.g., "Wholesalers".

Let's start from the beginning.

Creating customers groups is easy. Just go to the Ecwid control panel → Customers → Customer Groups, hit the "New customer group" button, specify the name for and save the changes.

Please note that the "Customer Groups" feature is available for paid Ecwid users only, starting from the "Business" plan. I didn't manage to find out your Ecwid account with the "Business" subscription, so, before utilizing this approach, you should upgrade your current account.

Then you should get two IDs: ID of the category you want to hide from other customers, and ID of the customer group which should be able to see products from that category.

The category ID can be found in browser's address bar when you open that category (see the below screenshot):



The customer group ID may be found like this:
  1. Create a test account in your store as a customer
  2. Add that account to the necessary customer group (Ecwid control panel → Customers)
  3. Use the "Inspect Element" function of your browser on any empty space
  4. Search for "customer-group" string in the code inspector
  5. Copy the digit-part of the found string — this is the group ID (see the below screenshot)



Ok, now you the necessary IDs. The next step is adding CSS rules to your custom theme in the Ecwid control panel → System Settings → Design → CSS Themes. Just copy and paste the following code:
Code:
div.ecwid-productBrowser-CategoryPage-CATEGORYID { display: none; }
body.ecwid-customer-group-GROUPID div.ecwid-productBrowser-CategoryPage-CATEGORYID { display: block !important; }
Replace strings marked in red with corresponding values and save the theme.

After these changes, the category that you specified in the CSS, will see only the customers from the certain customer group.

I hope this helps!

In case you have any further questions, feel free to ask them.
__________________
Cyril D.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
  #3  
Old 06-09-2015, 09:51 PM
Pia Blatter's Avatar
Pia Blatter Pia Blatter is offline
Junior Member
 
Join Date: May 2015
Posts: 7
Default

I work with two stores, that which is concerned with this action is it 7016170
super, it is ok, I had not inspected the page.
Thank you for this help,
It is possible to put a message, if there is no article… “you must be a wholesaler to consult the articles”.
  #4  
Old 06-11-2015, 11:09 AM
Cyril D's Avatar
Cyril D Cyril D is offline
Ecwid Team
 
Join Date: Feb 2015
Location: Ecwid HQ
Posts: 530
Default

Quote:
Originally Posted by Pia Blatter View Post
I work with two stores, that which is concerned with this action is it 7016170
super, it is ok, I had not inspected the page.
Thank you for this help,
It is possible to put a message, if there is no article… “you must be a wholesaler to consult the articles”.
Hi,

Thanks for the update.

Sure, it's totally possible. To achieve this, you should slightly change the CSS code:

Code:
div.ecwid-productBrowser-CategoryPage-CATEGORYID { visibility: hidden; }
.ecwid-productBrowser-CategoryPage-CATEGORYID::before { content: "You must be a wholesaler to consult the articles!"; visibility: visible; font-size: 30px; }
body.ecwid-customer-group-GROUPDID div.ecwid-productBrowser-CategoryPage-CATEGORYID { visibility: visible !important; }


Please, try it out and let me know if this worked for you.
__________________
Cyril D.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
  #5  
Old 06-17-2015, 01:43 PM
Pia Blatter's Avatar
Pia Blatter Pia Blatter is offline
Junior Member
 
Join Date: May 2015
Posts: 7
Default

Ok, thank you… I still have small problems!
greetings
Muller Guy
Attached Images
File Type: jpg Capture.JPG (68.3 KB, 179 views)
  #6  
Old 06-17-2015, 03:37 PM
Cyril D's Avatar
Cyril D Cyril D is offline
Ecwid Team
 
Join Date: Feb 2015
Location: Ecwid HQ
Posts: 530
Default

Hi,

Could you please provide me with a link to the page where I can inspect this?

Thank you.
__________________
Cyril D.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
  #7  
Old 06-22-2015, 07:08 AM
Pia Blatter's Avatar
Pia Blatter Pia Blatter is offline
Junior Member
 
Join Date: May 2015
Posts: 7
Default

I cannot reproduce this example any more. !!!
Farmhouse the ideal if the customer does not have access to the category wholesaler, it is to redirect it towards the standard category.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:28 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.