Copied to clipboard

Flag this post as spam?

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


  • Ayo Adesina 430 posts 1023 karma points
    Feb 25, 2019 @ 19:41
    Ayo Adesina
    0

    How to add a field to a “order”

    How do add a new data field to an order (or is it shipment?)

    I want to collect a date and time from a user during the checkout process.....

    Anyone, how can this be done.

  • Dave Clinton 31 posts 106 karma points
    Feb 26, 2019 @ 13:28
    Dave Clinton
    0

    Hey Ayo,

    I did something similar in one of our projects. The way I did it was to create a new controller based on the default FastTrack one and use a custom model which contained the new date property (in our case it was CheckoutShipRateQuoteController inheriting from CheckoutShipRateQuoteControllerBase but you should be able to do the same for any of them).

    From there we added overrides for the relevant methods and in our SaveShipRateQuote method we store the new date value in lineItem.ExtendedData so it can be used later on (I think we also use it in a note via CheckoutManager).

    Hope that helps!

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft