Copied to clipboard

Flag this post as spam?

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


  • Michelle 9 posts 109 karma points
    Aug 16, 2022 @ 06:40
    Michelle
    0

    Can't remove discount code from checkout

    Hello! I just tried playing around with the discounts and added a discount code in the Vendr Commerce. Everything works fine in the checkout, I can add the code and see my discount. However, when I try to take away the discount again with the black X I get an error page (see picture). enter image description here If I reverse to the last page again it works fine, the discount is no longer there and I can continue with my payment. I do not believe the customers who get this error page will understand that though....

    Is this a bug or something we can fix on our side?

    Kind regards Michelle

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 16, 2022 @ 07:47
    Matt Brailsford
    0

    Hi Michelle,

    I see what the issue is here and I'll get a patch release out this week (I need to make a Vendr Checkout update anyway).

    It looks like out method for checking if the request is an ajax requests attempts to check for a field in the forms collection without first checking if the request is actually a POST request (which throws an error in .NET Core where it didn't in .NET Framework).

    I'll get that updated and a new release out soon.

    Matt

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 16, 2022 @ 08:13
    Matt Brailsford
    0

    Hey Michelle,

    If you want to test this, I have a 2.1.1-beta0001 build on our unstable nuget feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json

    If you can confirm this resolves the issue for you that would be great.

    Many thanks

    Matt

  • Michelle 9 posts 109 karma points
    Aug 16, 2022 @ 09:09
    Michelle
    0

    Hello again and thank you for that quick answer! With this fix, will there be any changes to the view or css?

    Kind regards, Michelle

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 16, 2022 @ 09:16
    Matt Brailsford
    0

    Hi Michelle,

    No, it's just a change to the CartSufaceController that when checking to see if the request is an ajax request, it doesn't read Request.Form without first checking the request is a POST request.

    Matt

  • Michelle 9 posts 109 karma points
    Oct 20, 2022 @ 14:55
    Michelle
    0

    Hello Matt!

    Is this fixed in a newer version that is not on unstable nudget feed?

    Kind regards Michelle

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Oct 21, 2022 @ 07:19
    Matt Brailsford
    100

    Hi Michelle,

    This should have been fixed in 2.1.1 which is released yes. I just realized yesterday though that I haven't released a Vendr Checkout v3 for Vendr v3 yet so I'll get that released shortly.

    The v3 release is on the unstable feed right now if you want to test it and make sure it works as I think it's just the testing side of things I need to complete.

Please Sign in or register to post replies

Write your reply to:

Draft