Reply
 
Thread Tools Display Modes
  #11  
Old 08-03-2017, 02:26 PM
Edward M.'s Avatar
Edward M. is online now
Ecwid Team
 
Join Date: Dec 2016
Posts: 121
Default


Hi there,

Edward here, Ecwid Team.

Thank you for the message. Let's try to sort that out.

Quote:
the regular customers can still see the "storefront" that was created for the wholesale customers.
It's possible to display certain categories/products for particular customer groups only.

The first method requires a bit of CSS coding.

In order to do so, please follow the steps below:

1) Create as many customer groups as needed.
2) Create a root category for each group.
3) Add necessary products and subcategories to each root category.
4) Go to the Ecwid Control Panel → Settings → Design → Edit theme → Add CSS that will show a specific category for a particular group only to the bottom of the field → Activate and Save

You can find a detailed guide on what CSS you should use in the following forum post: https://www.ecwid.com/forums/showpos...32&postcount=2

Secondly, you can make certain categories available by the link only. For example, you'll be able to share this link with your wholesale customers.

The steps are the following: create a root category -> create a sub-category in the root category -> add products to the sub-category -> open the sub-category on your website and copy the link -> disable the root category.

Then this category will be available with the link only and it won't be visible in your storefront.

Thirdly, you can create a password-protected page on your website and add a wholesale category there. So only visitors with the password will be able to see it.

In order to do so, you should use the following approach: https://support.ecwid.com/hc/en-us/a...differentsites

Quote:
2 - when anyone does a search, it brings up the wholesale priced items as well. This will confuse both parties.
This one is a bit more complicated in terms of effort, however, it's still quite easy to do.

It can also be done with a bit of CSS coding.

With the below code, you can hide any product you want. The code looks like that:

Code:
/* Hides a product from the search results  */
div.ecwid-productBrowser-SearchPage td.ecwid-product-id-PRODUCTID {
display: none;
}
/* Shows a product in the search results to the customers from a customer group*/
body.ecwid-customer-group-CUSTOMERID .ecwid-productBrowser-SearchPage td.ecwid-product-id-PRODUCTID {
display: block;
}

Where PRODUCTID is the ID(number) of the product. Here's how you can find the product ID: https://support.ecwid.com/hc/en-us/a...ct-or-category Note that the product ID should be the same in both codes.

CUSTOMERID is the ID(number) of the customer group. The process to find this one is described above.

You should copy both these codes for each product you want to hide from the search result. The only thing that will change is the PRODUCT ID. Everything else remains the same.

Then add the code to hide the number of results found because the number won't match with actually found products as we hide some of them.

Code:
/* Hides the number of results found */
html#ecwid_html body#ecwid_body div.ecwid-results-topPanel div.ecwid-results-topPanel-itemsCountLabel {
display: none;
}
Also, it's possible to customize a search widget specifically for your store. So the widget will operate under the rules that you define.

This widget can be created with the help of our API, which is open and free for all paid users.

The creation of such solution will require programming skills. If you need assistance with this, our Customization Team will be happy to help you for an extra fee. If you are interested, please fill out this form: https://ecwidcom.typeform.com/to/vIlijv they will get back to you with the details.

I hope this helps.
__________________
Ecwid Customer Care Team
More tips and hints on Ecwid use in Ecwid Help Center

Last edited by Edward M.; 08-03-2017 at 02:29 PM.
Reply With Quote
  #12  
Old 08-03-2017, 03:38 PM
Insane Comics's Avatar
Insane Comics Insane Comics is offline
 
Join Date: Jan 2015
Posts: 12
Default

"You should copy both these codes for each product you want to hide from the search result. The only thing that will change is the PRODUCT ID. Everything else remains the same. "

So, if I have 100+ products that I want to hide from the search function, I have to do this for each product?

Is there not a way to eliminate a product from a certain root category from the search option versus having to do this for every product?

Thank you!
Reply With Quote
  #13  
Old 08-17-2017, 07:07 PM
Scully's Avatar
Scully Scully is offline
Ecwid Team
 
Join Date: Nov 2016
Posts: 91
Default

Hi!

Alexandra with Ecwid team here. We are incredibly sorry for the radio silence. Please, let me address your question.

Quote:
Is there not a way to eliminate a product from a certain root category from the search option versus having to do this for every product?
I am sorry, there's no way to erase all products in the category from search results with a single CSS code. The search widget doesn't recognize the category ID when it comes to CSS changes to certain products.

I understand that this process seems to be quite time-consuming, however, to my regret, there's no other built-in way to achieve it.

Although, as Edward mentioned in his previous post, you can create a custom search widget specifically for your store with the help of our API. Basically, anyone can develop a custom solution for your store if they have enough programming knowledge—you can do it by yourself, hire a developer, ask a friend, hire our team or anyone you want, it's totally up to you.

If you would like our team to help you with that, please fill in the form and they will get back to you with the details and quote shortly.

This way, the widget will function by the rules you set yourself.

Hope this helps!
__________________
Alexandra Scully,
Ecwid Customer Care team
Reply With Quote
Reply

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:40 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.