Hmm, good question. I think at the moment the order line product rule just uses a content picker to pick the product that the discount relates to which would mean unfortunately no it wouldn't work for non umbraco node based products.
This said, we did in the recent update where we added Carts feature to Vendr implement the means to lookup products by the product adapters so I think we should probably update the product rule to use this API instead of assuming umbraco node based products.
I'll add it to our issue tracker to look at, but I can't guarantee when that will be just yet.
Use ProductAdapter for product discount
Hey Matt,
We are using a Product Adapter to get our products, is it possible to add an Order line product rule for these products?
Umbraco 8.15.0, Vendr v1.8.6
Thanks
Kevin
Hi Kevin,
Hmm, good question. I think at the moment the order line product rule just uses a content picker to pick the product that the discount relates to which would mean unfortunately no it wouldn't work for non umbraco node based products.
This said, we did in the recent update where we added Carts feature to Vendr implement the means to lookup products by the product adapters so I think we should probably update the product rule to use this API instead of assuming umbraco node based products.
I'll add it to our issue tracker to look at, but I can't guarantee when that will be just yet.
UPDATE The issue tracker link is https://github.com/vendrhub/vendr/issues/358
Hey Matt,
Thanks for your help, will be looking forward :)
is working on a reply...