Search for Shopware6 product variant - shopware

Is it possible in Shopware 6.x (via code or config) to allow users to search for a term, and have a product variant show up in the search result?
As of now, only the parent product is displayed, even if a search term has been added to a variant's Search keywords.
I've added search terms to a product variant, and run the indexer.

You need to change the storefront presentation of the product.
Edit the product in the administration.
Select the tab "Variants".
Click "Storefront presentation".
Select "Product listings" in the sidebar menu.
Select the "Expand property values in product listings" radio option.
Select all property groups you want to be split in the storefront. If you select all every single variant will be listed separately.
This setting will adhere in both the search results as well as regular product listing. There currently is no way to set the storefront representation for just the search results but not the listing and vice versa.

Related

Configurable product

I'm playing with custom module shoppingcart.
I currently have a product part with fields price and sku. What would be the best way to add a configurable product for example a shirt has different colors and sizes. But now all products has to be configurable. I want to have the user select from a dropdown in my view from available sizes.
If I create a new content part and attach enumeration field to i must choose one item when i create product from backend. What I want is to render all the items in the enumeration field in the view and be able to select one.
// Tomas

SharePoint DropDown List Filter

I want to be able to filter a SharePoint list based on the values present (easy by clicking the filter button at the top of the list for each column). However I'd like to give options in a drop down menu and once chosen the list would be refilted based on the options I give. Is this possibile to do in the browser or would it require designer or actual code? Thank you.
This is all SharePoint 2010 Enterprise Server knowledge; I've never used 2007.
What #Ryan is alluding to here is that you can click a down-arrow on most list columns to filter them. One caveat is that if the column is multi-select, it won't display a drop-down. (SharePoint doesn't know how to group, filter, or sort on multi-select columns.) Another caveat could be that if you're displaying the list items in such a way that their headings don't appear (such as in a List View web part, or maybe in some of the styles...) you obviously won't be able to filter.
A solution might be to use a "SharePoint List Filter" web part, which uses a list column as the source for filter values which can then be sent to other web parts -- such as a List View web part. Presumably, you could use the list you're intending to filter as a source for the Filter web part itself. From a UX perspective maybe this might help you display the list with different styling, but still get the drop-down filter directly in the content area.
A caveat with the "SharePoint List Filter" web part is that it's not actually a drop-down per se, but instead shows a little filter icon that pops up a dialog in which users then have to select a value.
Note there's also the "Managed Metadata Navigation" feature that would give users dropdowns (for e.g. choice columns) and metadata filter fields (for managed metadata columns). These show up in the Quick Launch (left-nav area) if configured on the list/library settings. The feature must first be enabled on the site.

Limit Column Options in Advanced Find

In Microsoft Dynamics CRM 2011 you can create views using advanced find. Inside advanced find, you should define for a specific entity which columns you want to see in the result.
What I want to do is limit or hide specific columns that people can choose for the advanced find.
Any ideas?
Thanks!
Hi Rob,
Out of the box you can disable a column from being 'searched' --
listed in the filtering area of the advanced find.
However, all fields that a user can read are avail for selection in
the advanced find. The only method to change this would be custom
code in a 'plug-in'. Then with a plug-in just about anything is
possible as it is compiled code and you could filter out certain
columns from being available.
Alex Fagundes - www.PowerObjects.com
The comments by Alex Fagundes, with all due respect, are wrong. As ckeller suggested, you can limit the columns displayed to the user, and you certainly don't need a plug-in to do this (nor could you even if you wanted to, so far as I know).
In the client, all you have to do is navigate to the entity the advanced find view of which you want to change, click the "Customize" tab, click "System Views", click on the advanced find view, click "Add Columns", select/deselect the columns you do/don't want to see, then publish your changes.
You can also select/deselect columns of any appropriate related entity this way as well.
If you mean search columns (fields they can search by):
To limit the columns they see in an advanced find search, you have a fun job on your hands.
Go to Settings -> Customisations -> and choose the entity you want and list all the fields.
Double click on each field in turn and you will see a drop down menu called 'Searchable'. Set this to 'No' and the field is hidden from Advanced find searches (after you publish your changes).
Repeat this for all fields required.
If you mean fields they see in their results:
Follow the answer by #jamnap
The solution of Peter will only change the default view for advanced find. The user will still be able to add all columns and customize his own view.
Fields cannot be removed from "add column" in advanced find OOTB. This is what Alex Fagundes from PowerObjects has written.

Does comma seperated list in a search box indicate ALL or ANY?

We have a reporting web site and in the search screen most of the fields are comboboxes. We then AND all the fields together to get a filtered list of records. For example if i chose NY in the City dropdown and priority 1 in the priority dropdown and sales in the team dropdown, it would general something that looked like this (pseudo SQL)
Show me all record where City = 'NY' AND Priotity = '1' AND Team = 'Sales'
We now just added tagging to our records so to support searching by tag(s), we added an additional textbox to search by TAG where you can entered a comma seperated list.
Right now this is an autocomplete textbox which supports multiple entries.(similar to the Multiple Cities (local) example on this page.
When we rolled it out people had different expectation on how search would work when you entered multiple items in the text box. Would it:
Do an AND and only return records that had ALL of the tags listed.
Do an OR and return records that has ANY of the tags listed.
It turns out that we rolled out #1 but many people expected #2. Is this just basically preference or is there a default standard here in this example. Our only solution right now is to add a radio button next to the textbox to say ALL or ANY
If your users expect it to work one way then that's the way it should work.
This is a great example of why you should test early and often with actual users.
I'd say it is not basically preference, but expectations based on what users experience in other types of searches. The "OR" was probably expected by your users as use of tagging gets pretty close to being like a search engine searching on any word in a text and most search engines do an "OR" and then order the results according to how many terms (tags) were "hit".
If going all the way supporting AND and OR operators is not feasible right now, then I would indeed offer an "All" versus "Any" radio button and default it to "Any".

Content Query WebPart - Grouping by custom column?

We have a LIST of web pages that we use as News items on our Sharepoint 2007 site.
On our main page, we have a Content Query WebPart that queries this list, and nicely displays the name, and a few lines of the content. This is taken from our Pages Library that was created as part of our Publishing Template.
We would like to "Group" items by categoriezing them (Top Stories, Location-Specific Events, etc) and show them using the Content Query WebPart.
We have created a custom column called "News Category" and we would like to group the items inside the Content Query WebPart by this. Unfortunately the Custom Column doesn't show up when sorting through the "Group By" fields..
Is this at all possible, or am I wasting my time? We are not looking to add 3rd party components to our site at this time...
I believe you need to create a Site Column instead of a custom column within the list. You would then need to add that site column to your list. Here's how:
Select Site Actions->Site Settings.
In the Galleries column, select "Site Columns"
Click "Create"
Enter in the relevant information.
In your list, goto Settings -> List Settings.
Select "Add from existing site columns"
Add your column to the list.
In your list, add data to the column as needed.
Back on the page showing your CQWP, modify the shared part.
Select Presentation. Under Group items by, select your site column.
You need to change the CommonViewFields property of your CQWP

Resources