GetCategoryName($productSku) only seems to return anything if the particular product is in one category only... perhaps this is by design, but it'd be neat if it just returned the first parent category if it also had other parents. Or perhaps theres room for a GetMultipleParents, or something similar.
Other than that, thanks for making the effort to make this package, it's helped me immensely
If anyone else comes across this problem, I downloaded the uCommerceContrib source off codeplex and changed GetCategoryName to use query.FirstOrDefault().Category.Name instead of query.SingleOrDefault().Category.Name and that did the trick for me.
GetCategoryName bug?
GetCategoryName($productSku) only seems to return anything if the particular product is in one category only... perhaps this is by design, but it'd be neat if it just returned the first parent category if it also had other parents. Or perhaps theres room for a GetMultipleParents, or something similar.
Other than that, thanks for making the effort to make this package, it's helped me immensely
cheers,
- Tim
If anyone else comes across this problem, I downloaded the uCommerceContrib source off codeplex and changed GetCategoryName to use query.FirstOrDefault().Category.Name instead of query.SingleOrDefault().Category.Name and that did the trick for me.
is working on a reply...