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.

  • Kenneth Jakobsen 67 posts 203 karma points hq
    Mar 11, 2015 @ 10:19
    Kenneth Jakobsen
    0

    Get Product Price when Request is not available?

    Hi i'm trying to index my products using lucene at Application_Startup, but I get an Exception saying that Request is not available at this time.

    Is there any way of getting the price without Request?

    Regards Kenneth

  • Martin 181 posts 740 karma points
    Mar 11, 2015 @ 19:14
    Martin
    0

    Hi Kenneth,

    First of all how do you get the price right now, which method cause the trouble? You can also post some code so it's easier to see what you have and what you're missing.

    Best regards Martin

  • Kenneth Jakobsen 67 posts 203 karma points hq
    Mar 11, 2015 @ 23:28
    Kenneth Jakobsen
    0

    Hi Martin

    Im using Product.GetPrice(PriceGroup.Get(7)).Value, it seems like it is accessing the Request object behind the scenes...

     

    Kenneth

  • Martin 181 posts 740 karma points
    Mar 13, 2015 @ 20:05
    Martin
    0

    Hi Kenneth,

    Which version of uCommerce are you using? Can you paste your StackTrace as well? I have tried to take a look inside uCommerce but I can't find some specific code using HttpContext so a stacktrace will be awesome :)

    best regards Martin

Please Sign in or register to post replies

Write your reply to:

Draft