Issue with product search in Shopware 6.4.13.0 - shopware

the product search doesn't seem to work as expected. Products are obviously supposed to be searchable by their product number according to the search settings in the backend. But when I search by product number there are no results. I tried to set the ranking to a higher number than 1000, but also no success.
A possible workaround would be to add a product number to the search keyword field, which actually works. But this is not really a good solution considering that the shop contains thousands of products.
Is there something I might have missed in the system settings? Or does the search function probably have a problem with product numbers with dashes (example: 99-670-846-0)?
Thanks in advance!

Related

Saved Search criteria/results seem to have a different naming scheme from everything else

I'm trying to find a resource or explanation for how to determine how a field will display in the criteria or results dropdown of a saved search. For instance, in the results I would like to see the PO# field (fieldId:otherrefnum). But when looking through the drop down, I see neither of these as options. This has been a serious source of frustration for me with many other fields, I'd like to find a definitive way to avoid wasting time on this in the future.
Thank you!
There are a number of contributing factors to this.
The field names you see on forms may have been re-labeled by form customizations
Netsuite normalizes transaction searches to which leads to some (IMO) odd column name re-use.
A lot of old fields or fields tied to functionality (e.g. transaction status fields) don't follow the regular pattern of numeric id and text name.
The records browser helps quite a bit. You can search here and see that otherrefnum is named 'PO/Check Number' in the search editor. (An example of field name normalizing referred to above)
If you look at transaction you'll see it is just search filters and columns. If you compare to Sales Order you'll see something perhaps more familiar in terms of fields.
Even armed with the records browser experience is still needed. e.g.
A sales order has an items sublist and one of its fields is itemtype. In order to get that value in a search you need to select Item fields and then choose Type. A Sales Order's items.description column becomes the line level memo field in search results.
Hope this helps

Restart ID of an item in Mongoose

Good morning friends. I'm using Google translator, so I apologize for mistakes in the text.
I'm developing a system based on MEAN.
I'm using a plugin called mongoose-auto-increment to generate the ID numbers of each item in my database. So far so good, but the problem is that every January 1st at 00:00 hours that ID must be restarted again, ie, the first item stored in the database the new year must have the ID Number 1 and go adding the following.
This obviously without overwriting the article with the ID number 1 of the previous years.
I've been researching a lot but can not find any solution to my situation, I'm probably not using the right keywords. I appreciate any help you can give me.
Best regards :-)
ID's are unique. If you want to use the same incrementing range twice, you'll need to make it unique somehow. Perhaps make the id custom and prepend the year. 2014_1, 2014_2 etc will play nice with 2015_1, 2015_2 etc
Your alternative is just to index a secondary field (perhaps named "alternateID" or whatever) and leave the _id to generate by itself - then query from the alternateID field instead.

Return most common value in a list based on criterion

I found a similar question here (Return the count of the most frequently occurring string based on multiple criteria) but did not see a satisfactory answer. Please help if you can!
I have a list of Manufacturers and their products:
Manf.......Product..........Metric
Adobe......Photoshop.....User
Adobe......Acrobat.........User
Microsoft..Office............Device
Microsoft..Access.........Device
Microsoft..MSDN..........MSDN Named User
In another table I have a list of unique Manufacturer names, and I need to be able to say what the most common (and then second most common, hopefully) metric per manufacturer is, as below.
Manf.........Most Common Metric
Adobe.......User
Microsoft...Device
I would prefer not to have a VBA solution in this case, but will use if necessary. I have seem some INDEX MATCH attempts but nothing is working quite right yet. Thank you!
EDIT: I thought of another way to search for answers and found this, which worked! http://answers.microsoft.com/en-us/office/forum/office_2010-excel/formula-to-return-most-common-value/06383764-3c7d-e011-9b4b-68b599b31bf5?auth=1
Anyone know how to modify it to find the second and third most common values?
If I understand the requirement, a PivotTable should show you what you want:
This is in Tabular form without Totals and without Subtotals but with 'Metric' sorted Descending by Count of Metric. Repeat items labels is not checked as this may help with identifying where 'most common' starts for each Manf.

TFS nearly identical queries - only one works

In VS2012 Team Explorer Query Editor, I have two queries that are identical, except
that the order of two of the criteria is swapped. (Both criteria are 'and ...' so
order should not matter.) One query works correctly, but the other returns nothing.
How can I see what's really going on?
I found the problem. The search terms in one of the criteria was different. There is a 'wide hyphen' in the particular field in the work items. One of my queries had the search term with the wide hyphen, so it matched items. The search term in the non-working query was entered from the keyboard, and contained a narrow hyphen, so it didn't match an items.
I realize this doesn't really 'answer the question'. (How can I see what's really going on with the two queries?) But hopefully, if anyone else is having a problem with queries, this will give them one more possibility to check.

Expression Engine - How do I randomly display one of the last seven entries?

I would like to randomly display one of the last seven entries from a particular channel. I tried using offset="" but that happens to be exactly the opposite of what I need. I also considered using a date option: only show entries after a certain date, but that would only last for a while before it had to be modified.
Any serious suggestions will be seriously considered.
Thanks.
There's really no great way to do this natively with expressionengine.
Check out the AB entry ids addon. here's a specific example that should be what you're looking for: http://www.addonbakery.com/docs/ab-entry-ids.html
Just add orderby="random" to the nested channel entries tag pair and limit the entry ids query to 7.
http://devot-ee.com/add-ons/ab-entry-ids

Resources