Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I'm trying to query for products in Merchello using the following query.
var queryResult = _merchello.Query.Product.Search(1, 20).Items.Select(x => (ProductDisplay)x).Where( x => x.Length == 620);
Although I have a product with the defined Length, the query returns 0 results?
Hi Supun,
How may products do you have in your catalog? The query you are running returns a max of 20 products.
Also, you are not including variants in the the Linq query, so if your product has any options, it is not being considered in your expression...
Hi Rusty,
Thanks for the reply.
I have about 150 products and no variants. I tried querying for 150 products but still can't get a result.
However if I change the query to search by name, I get the expected results but still the dimension fields are empty.
Thanks in advance for your help.
Thanks Supun - sounds like you may have found a bug since the dimensions should not be empty. Can you log this at http://issues.merchello.com and post your code snippets so I can have a look?
Much appreciated!
Sure, will do.
Thanks for a great product.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Merchello - Query Products
Hi All,
I'm trying to query for products in Merchello using the following query.
Although I have a product with the defined Length, the query returns 0 results?
Hi Supun,
How may products do you have in your catalog? The query you are running returns a max of 20 products.
Also, you are not including variants in the the Linq query, so if your product has any options, it is not being considered in your expression...
Hi Rusty,
Thanks for the reply.
I have about 150 products and no variants. I tried querying for 150 products but still can't get a result.
However if I change the query to search by name, I get the expected results but still the dimension fields are empty.
Thanks in advance for your help.
Thanks Supun - sounds like you may have found a bug since the dimensions should not be empty. Can you log this at http://issues.merchello.com and post your code snippets so I can have a look?
Much appreciated!
Sure, will do.
Thanks for a great product.
is working on a reply...