Copied to clipboard

Flag this post as spam?

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


  • Daniel Nielsen 17 posts 102 karma points notactivated
    May 23, 2022 @ 07:34
    Daniel Nielsen
    0

    Getting exception when adding tax to product

    Hi.

    I'm getting a exception when trying to use the Vendr Store Entity Picker on the Product Page. Tried in my own store and the try.vendr.com, same result.

    enter image description here

    But when i use Vendr: Tax Class Picker [Obsolete, use Store Entity Picker instead] it works fine.

    What should be the preferred way to add tax to a product, using the obsolete way, or the new way?

    Best Regards Daniel

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 23, 2022 @ 08:21
    Matt Brailsford
    0

    Hi Daniel,

    The Store Entity Picker is the prefered option, but I seem to be unable to replaicate this. I've just setup a tax class field on try.vendr.net on a product node using the store entity picker and it all eappears to work correctly.

    Do you have some other config I'm not aware of?

    Matt

  • Daniel Nielsen 17 posts 102 karma points notactivated
    May 23, 2022 @ 08:27
    Daniel Nielsen
    0

    Hi Matt.

    I think i know what's "wrong", when adding Store Entity Picker on the product page, the alias needs to be taxClass right?

    https://try.vendr.net/umbraco#/content/content/edit/1152?list=1147&page=1&filter=&orderBy=sortOrder&orderDirection=asc Here i have added Tax with the alias rax (I misspelled tax)

    Best Regards Daniel.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 23, 2022 @ 08:34
    Matt Brailsford
    0

    Hey Daniel,

    Id does yea. you can find details about the expected names here https://vendr.net/docs/core/2.1.0/umbraco-v9/key-concepts/umbraco-properties/#properties

    Still, that shouldn't really pose a problem untill you attempt to add a product to an order. Looking at your configuration though I can see what the problem is. You've set up a Store Entity Picker, but you haven't configured what type of entity you want that picker to be able to pick

    enter image description here

    To pick Tax Classes you need to pick "Tax Class" from this dropdown.

  • Daniel Nielsen 17 posts 102 karma points notactivated
    May 23, 2022 @ 08:35
    Daniel Nielsen
    0

    Hi.

    Yeah i had just discovered my error, now it works as it should.

    Thanks for your fast replies.

    Best regards Daniel.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 23, 2022 @ 08:42
    Matt Brailsford
    100

    No problem 👍

Please Sign in or register to post replies

Write your reply to:

Draft