Copied to clipboard

Flag this post as spam?

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


  • seanrock 262 posts 483 karma points
    Sep 12, 2023 @ 13:26
    seanrock
    0

    Updating a product's price in Vendr

    Hi

    I'm using Vendr/umbraco commerce and have a situation where the product data is not in umbraco. I've implemented a ProductAdapter to fetch the product data, however the pricing is customer specific so I need to get the current logged in user. Problem is the ProductAdapter is a singleton so a child scope is needed to use any scoped dependencies. IMemberManager being scoped, is not playing nice and loses the current context so it cannot see there is a logged in user.

    Anyone else come across that issue or now how to persist authentication data to a child ioc container scope?

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft