Copied to clipboard

Flag this post as spam?

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


  • Paul Crowdy 40 posts 111 karma points
    Dec 12, 2020 @ 13:43
    Paul Crowdy
    0

    Vendr Custom Product Adapter (v1.4 Licensing)

    Hi Matt,

    I have just updated a site that has been in development for a while to Vendr 1.4, an I am now getting the error:

    Can't add a Product to an Order as custom product adapter has been configured which is not allowed by your license.

    Is there any way that I can test the product adapter is still working correctly in the dev environment before I buy a license?

    Thanks,

    Paul.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Dec 12, 2020 @ 15:39
    Matt Brailsford
    0

    Hi Paul,

    Yea, I noticed this when I was testing the Vendr demo store. I'll be releasing a 1.4.1 soon with an update that allows this.

    If you are just using the product adapter to change the product name like we did in the demo store, we do have a new IUmbracoProductNameExtractor you can use instead.

    public class MyUmbracoProductNameExtractor : IUmbracoProductNameExtractor
    {
        public virtual string ExtractProductName(IPublishedContent content, string languageIsoCode)
        {
            return /* Your Generated Product Name */;
        }
    }
    

    To replace the existing one, you register it like

    composition.RegisterUnique<IUmbracoProductNameExtractor, MyUmbracoProductNameExtractor>();
    

    If you are doing something other than generating the product name, then yea, a Product Adapeter is necessary and the fix will b in 1.4.1.

    Matt

  • Paul Crowdy 40 posts 111 karma points
    Dec 12, 2020 @ 16:22
    Paul Crowdy
    0

    Thanks Matt,

    Unfortunately I'm not just changing the product name, so I will wait for the new release.

    Do you have an ETA by any chance please?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Dec 13, 2020 @ 08:05
    Matt Brailsford
    100

    No worries

    It’ll probably be the back end of next week to see if any other 1.4.0 issues pop up, but I’ll make sure it’s deployed to our nightly feed tomorrow so you can get early access if it’s holding you back.

    Matt

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Dec 14, 2020 @ 09:11
    Matt Brailsford
    0

    Hi Paul,

    You can find our unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json where you can install the latest 1.4.1-beta which should include this fix.

    I'll be looking to make the official release towards the end of the week.

    Hope this helps

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft