Developer forum

Forum » Development » Getting products for current eCom language only

Getting products for current eCom language only


Reply
Hi there,

I am using Product.getProductsFromGroups as follows:

products


Here, myGroups is a GroupCollection containing three groups (which are nested childs in the backend) for the current language, LANG1. However, after this code executes, products contains 3 products: the same product localized into my three different languages (LANG1, LANG2, LANG3).

Is there a way to tell Dynamicweb to fetch products for a specific language only? I can easily filter the unwanted products out of the collection, but this feels like a lot of overhead.

Thanks in advance for a reply!

Imar
= Product.getProductsFromGroups(myGroups, true);

Replies

 
Reply
 Hi Imar,

Unfortunately this is not supported.

You're idea is good, though, and I've created a feature request. Thanks for the input!

Regards /Snedker
 
Nicolai Høeg Pedersen
Reply
It has number TFS5646 and is part of 7.2

Public Shared Function getProductsFromGroups(ByVal groups As GroupCollection, ByVal LanguageID As String, ByVal isFrontEnd As Boolean) As ProductCollection
 
Reply
 My goodness!  :-)
 
Reply
Great, thanks!

Imar
 
Reply
BTW, are you planning to do the same for the singular version, getProductsFromGroup?

Imar
 
Nicolai Høeg Pedersen
Reply
Done already...

 

You must be logged in to post in the forum