Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Peter Jensen 32 posts 137 karma points
    Aug 21, 2013 @ 09:53
    Peter Jensen
    0

    How to get properties from product

    hey Ucommerce, first very nice product and for free to start with.. just amazing.

    I have watched u videos on how to install the razor store and all that, but i cant really get my head around why it dont take the english string that are defined on the product like short description and long description. (they where predefined as i installed the shop.)

    What do i have to do to get that showning on the product it self ?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Aug 21, 2013 @ 10:20
    Nickolaj Lundgreen
    0

    Hello Peter

    The two properties you are looking for is multilingual properties for a product, so you need to use the culture code to fetch them, like this:

    product.GetDescription(cultureCode).LongDescription
    
  • Peter Jensen 32 posts 137 karma points
    Aug 21, 2013 @ 12:19
    Peter Jensen
    0

    works like a charm, but isnt there and more flexible way, using host headers. i just recall something about setting the host header in the older version made some magic

  • Peter Jensen 32 posts 137 karma points
    Aug 21, 2013 @ 12:29
    Peter Jensen
    101

    Dot peak is a life saver

    product.LongDescription() does the job.. and returns the localized version

Please Sign in or register to post replies

Write your reply to:

Draft