Copied to clipboard

Flag this post as spam?

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


  • Arun 85 posts 235 karma points
    1 week ago
    Arun
    0

    Error while calling TC.GetPrice(store_ID, product_Node_ID)

    I'm getting an error while calling
    TC.GetPrice(store_ID, product_Node_ID)
    Error i got is "Object reference not set to an instance of an object."
    What will be the reason for this error?
    The price fields have values.
    Tea commerce version i'm using is 3.4.0
    -Arun

  • Matt Brailsford 2852 posts 14824 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    0

    Hi,

    Can you supply the complete stack trace please as it will give us a clue as to what it thinks I’d null.

    Many thanks

    Matt

  • Arun 85 posts 235 karma points
    1 week ago
    Arun
    0

    Hi Matt,
    This is the detailed exception while calling TC.GetPrice(storeID, productNode_ID)
    Tea commerce version i'm using is 3.4.0
    enter image description here

    -Arun

  • Matt Brailsford 2852 posts 14824 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    0

    Hmmm,

    I'm not actually sure what is null here, it could be you have a null country that has been returned for some reason but that shouldn't really be possible.

    The only thing I can suggest is to make sure you have the store picker setup correctly on the root node, with the alias "store" and then also make sure your order has a currencyId defined on it.

    Matt

  • Arun 85 posts 235 karma points
    1 week ago
    Arun
    0

    Yes..
    I have selected Store and given Currency Id in Product node
    -Arun

  • Matt Brailsford 2852 posts 14824 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    0

    Hmmm, have you tried recycling your app pool? If there is a corrupt, null, currency in the cache, this could be why.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft