SAP Spartacus PLP not showing all facets - spartacus-storefront

I have a concern about PLP. In OOTB when you get the facet after selecting a filter. it doesn't return the other facets but only shows the specific facets.
example:
I go to this plp: https://spartacus-demo.eastus.cloudapp.azure.com/electronics-spa/en/USD/Open-Catalogue/Cameras/DigitalCameras/Digital-Compacts/c/576?query=:relevance:allCategories:576
it shows 4 facets namely the stores, price, megapixels, and brand
Now I selected a filter in the facets. As you can see, the facets only shows the megapixels. I think this is the current OOTB behavior.
However, I need to get all the facets that are connected to the product. the API response shows the 3 facets. I need to get that and show it again in the facet section.
Please let me know if this is feasible in Spartacus 4.3 version

Related

Spartacus perform search without updating the products in product list page

We have a custom filter functionality which involves adding filters in bulk and applying them at the end. For this, every time a user clicks a breadcrumb, a search call will be performed to update the current list of facets but without updating the product list on PLP. The PLP will be updated only when the user clicks ‘apply’.
The search call needed to update the facet list is done at the moment trough a http call to the search endpoint but is there a better way to do this to benefit more of spartacus (in terms of caching for example)?
Should all the layers of the backend communication be extended for this?
The current spartacus version is 3.3

BigCommerce Stencil - Maximum Faceted Search Items?

We are seeing an issue with the Cornerstone Light theme where the maximum number of facets available is 30 on a category page. Once the user clicks "Show More", the code only lists 30 facets. The client has over 100, so we need to have all of these available. I know Blueprint has the added functionality of the additional facets popup.
Are the additional facets not available currently in Stencil?
Does Stencil limit the facets to 30 options per type?
I would like to be 100% sure on this before I have to develop my own additional functionality to support more facets.
Thanks
Stencil does limit to 30 options per type, but Blueprint allows for 500. We will expand faceted search/stencil to allow for more options in the future.
Cornerstone 1.3 will offer support for this.

VirtoCommerce API getting item prices

I am using VirtoCommerce 2.9 and have some questions regarding the API and what would be the best way to get all the information I need, while keeping the number of API requests down.
Right now I am using the endpoint /api/catalog/search to find items that matches a number of attributes. But the response does not include prices and product texts. Both I would like to present to the end user. What would be the correct or best way to retrieve this information?
Thanks!
Cheers!
Currently search service does not return the description and price for the products.
To get this details you need to use separate queries
api/catalog/product/ids?respGroup='ItemSmall'
to get product detail with description and
api/pricing/evaluate
to retrieve actual products prices. You can call them in parallel for better performance.
Be aware to use WithProperties response group because it may cause
perfomance problem. Anyway product returned with all properties values
and this 'response group' is only responsible for retrieving properties meta-information
(as possible dictionary values, multilingual, required or optional flag etc) this information often used in admin area and in storefront almost not used.
Indexed search module will be serious changed in future versions, and you will be able to have more control over the product details in the search index.

Schema.org mandatory fields and the time needed until Google shows changes

I have implemented Schema.org (using Microdata) inside my product pages and when I check Google Webmaster Tools it is crawled by Googlebot and interpreted successfully. The point is I have not implemented some properties inside Product type like brand.
I need to know whether there is some subset of all product attributes should be implemented essentially?
And the second question is how much it takes for Google to show product rating and price as rich snippet inside search results?
There are no mandatory properties/types in Schema.org.
However, consumers of the data, like Google Search, might have rules under which conditions they will make something with your data (e.g., they are looking for specific properties). So you’d have to check their documentation.
For Google Search, their Rich Snippets are documented at https://developers.google.com/structured-data/rich-snippets/. The Products Rich Snippets lists the required and optional properties/types. As you can see, the brand property is not required by Google for showing their Rich Snippet in the search results.
Hussein
As google has pointed out the structured data required for a snippet are :
Product
Name
Description
Pricespecifications (to include:)
Pricecurrency
Pricevalue
Availability
Validfrom
Image
First you should consider checking if the validfrom and availability attributes are added because both of them are the most common mistakes when you write your first SEO codes.
Then there are some attributes that while they are not in required list by Google's developers there seem to be the once that all successful snippets have (you might have noticed that too ) , the : review and vote attributes including the expect values from schema.org libraries. In some people's opinion ,mine also, having those will "almost" make sure they will get noticed.
Those are not pretty easy to get because u will have to create a way for getting reviews and votes.
Otherwise try using the webmaster new tool search console to highlight data for product snippet. Just make sure that the required attributes have their expected values in the text so you can mark all the above attributes with the tool.
Make sure all the attributes are markup and not meta data as it shows you are just making information up.
About the time , check that the structured data have increase for the peoduct and if not then fetch and submit to index.

Brand filtering on category pages

In Bigcommerce, is it possible to add brand filtering to category pages?
The current options appear to be that you can select from "all brands" by visiting the brands page, or you could use the search engine to narrow your results but you're forced to type a keyword or space. I want to offer a way to narrow the products by brand for the specific category the user is viewing.
I've spoken to tech support and they've informed me that this is NOT an option through the control panel and would have to be done through the API.
In my attempt to do this with the API however, it doesn't appear there is anyway to dynamically identify which category a user viewing. Outside of hard-coding a template for each individual category, how can this be accomplished?
I was informed by API support that this is NOT possible. Their recommendation was to submit the idea to the support team for future implementation, and that I might be able to accomplish it through a combination of javascript and screen scraping.