Umbraco commerce "ProductAdapaters".
# help-with-umbraco
r
Hello, I am building on an ecommerce site using Umbraco commerce. I have a situation where I would like to return two price options when calling for a product snapshot. From the documentation(https://docs.umbraco.com/umbraco-commerce/key-concepts/product-adapters), I see that there is a product adapter for cases like this. However, I have two major issues: 1. The IProductAdapter is marked obsolete and I am directed to use the "ProductAdapterBase". 2. After making this change to use the base class I do not get expected results. I had the expectation that a call to get a product snapshot would hit this code ( I did add it via composer at startup), but it never does. Via any call using the product api, I cannot get it to hit my breakpoint. With this, I'm wondering how a custom product adpater or even the UmbracoProductAdapater are intended to be used? what is the best practice to altering your product snapshot in your application? Thanks in advance for any help on this!
s
If you haven't done so yet, I would suggest you shoot an email to support instead since there's been no replies here.
2 Views