Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • wolulcmit 357 posts 693 karma points
    Sep 05, 2011 @ 19:28
    wolulcmit
    0

    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

  • wolulcmit 357 posts 693 karma points
    Sep 22, 2011 @ 17:03
    wolulcmit
    1

    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.

Please Sign in or register to post replies

Write your reply to:

Draft