Is there any way to display the details of an item...
# suitecommerce
j
Is there any way to display the details of an item not in stock while keeping the item from being indexed? We want to have item information available for past transactions such as specifications and manuals but don't want the item to show up on the site search. We did this using Sitebuilder by faking the template into the customize text error message for no longer available items.
s
In short, yes. We don't, for example, use the search service (/ index) for things like fetching item data when looking up past orders in the order history for example. This is all done with good old SuiteScript.
j
pre note: I have not done a suitecommerce site yet, we are currently working with a company to get setup So using SuiteScript we could prevent out of stock items from showing in the search while allow out of stock items to be on the site? I checked the box "Include Out of Stock Items in Web Store" and after it was done with the indexing the item did show the page, however, it also showed in the search bar as seen in the attached image.
s
OK, I'm a little confused about what you want. You still want a PDP to be visitable by customers if they have the link but not show up in search results?
PDPs use search index data; if the item is not available in the search index then it can't have a PDP
If "instock" is a facet on your site, you could set a global filter so that all search results apply instock=true, thus hiding out of stock items
But that is a code level customisation AFAIK and would require SCA
j
Sorry for the confusion, I could have explained that better. Yes, we want the PDP but not to have it show in the search bar or facets. We are currently on SuiteCommerce Basic and I do see a Field Sets tab on the Web Site Setup. Under Search it has the following: isinstock: In Stock. For the Type ahead though it does not have that field. Is this an area to research?
s
When you make an API call you specify what data you want back. For ease, we can group these fields into field sets. For something like a PDP, you will have one item in a lot of detail; for something like a search result or typeahead, you will have a lot of items but in less detail. Just messing with those field sets won't make the change you want. What I am talking about is like a global facet; facets are filters. Regardless, as I said, this change is not something that can be achieved with configuration -- you would need to change the way the code works under the hood, and that is not something we make available to SuiteCommerce (ie not Advanced) editions
j
Thank you for the information Steve, it is truly appreciated! I will take this back to the stakeholders and developers and see if there is a better solution we can work out then. Happy Holidays!