Copied to clipboard

Flag this post as spam?

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


  • Graham Carr 43 posts 263 karma points c-trib
    Jul 23, 2020 @ 20:39
    Graham Carr
    0

    CustomerInfo attributes

    Hey Matt,

    In my ecommerce implementation I am utilising the Vendr Checkout plugin, however the site I am creating has a separate booking form, so I am capturing first name, last name, email address and address details in that form, the thing I can't work out is how to set the following properties as they seem to be read only when creating the order?

    • CustomerInfo.FirstName
    • CustomerInfo.LastName
    • CustomerInfo.Email

    Basically I want to make some of the above fields on the first page of the Vendr Checkout page to be readonly.

    Lastly I may need to be able to adapt the Vendr checkout process further, so I was wondering if the source code for that plugin is available to adapt?

    Thanks in advance.

    Graham

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jul 24, 2020 @ 06:07
    Matt Brailsford
    100

    Hi Graham,

    These fields are all managed from the orders Properties collection, those are just the only fields we need to expose in a way that Vendr needs to have access to them.

    So to set them you would do it via the properties collection order.SetProperty("firstName", customerFirstName); The expected property aliases are "firstName", "lastName" and "email". These are available as constants in the Vendr.Core.Constants.Properties.Customer namespace.

    Regarding the source code, yes, the Vendr.Checkout package is fully open source and can be accessed from our GitHub account here https://github.com/vendrhub/vendr-checkout

    Hope this helps

    /Matt

  • Graham Carr 43 posts 263 karma points c-trib
    Jul 25, 2020 @ 20:10
    Graham Carr
    0

    Thanks Matt,

    A very prompt and useful reply as always, the properties are now being set as I want and thanks for sending me the link to github for Vendr Checkout

    Graham

Please Sign in or register to post replies

Write your reply to:

Draft