Custom Product Adapter & Snapshot not working as it did in Vendr #588
-
I'm migrating a working Umbraco V8 & Vendr website over to Umbraco 13.5.2 & Commerce 13.1.13 I've followed the documentation here: https://docs.umbraco.com/umbraco-commerce/key-concepts/product-adapters and tweaked our existing CustomProductAdapter & CustomProductSnapshot It's being added inside the IUmbracoCommerceBuilder: The CustomProductAdapter has been changed to inherit from ProductAdapterBase:
but when adding a product to the cart, we're getting a pricing error, but also, we're not hitting the custom adapter when debugging. Have we missed a step somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Can you show me the code where you are calling |
Beta Was this translation helpful? Give feedback.
Yup, I was just about to say the latter. You need to inherit the base class, but you need to register it with the di container via the interface so that should be correct now 👍🏻