Copied to clipboard

Flag this post as spam?

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


  • Neil Hodges 338 posts 987 karma points
    Mar 11, 2020 @ 16:09
    Neil Hodges
    0

    Additional Details added to Order in Edit-Order.cshtml page

    HI again!

    I'm trying to add two additional text boxes in the Edit-Order.cshtml:

    Courier Name 
    Courier Tracking Code
    

    enter image description here

     <tr>
                        <td>
                            Courier Name
                        </td>
                        <td>
                            <input type="text" value="@Model.Properties[ "courier_Name" ]" name="shipping_city" class="orderProperty" />
                        </td>
                </tr>
                <tr>
                    <td>
                        Courier Tracking Number
                    </td>
                    <td>
                        <input type="text" value="@Model.Properties[ "courier_TrackingNumber" ]" name="shipping_city" class="orderProperty" />
                    </td>
                </tr>
    

    When saving the order do i have to capture these values and add them to the Order? Not sure where i do this, can someone point me in the right direction.

    The idea is once admin has sent the order they can update the order with the tracking number and courier, move it to a new Shipped state which fires off an email to the customer.

    That part works fine, however it's not sedning the new properties for Courier Name and Courier Tracking number.

  • Neil Hodges 338 posts 987 karma points
    Mar 11, 2020 @ 16:24
    Neil Hodges
    100

    Ugh...

    Just realised my mistake!!

    copy paste trigger happy

    name=

    that needs to be the property name as well! :)

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 11, 2020 @ 16:40
    Matt Brailsford
    0

    Yup 😁

Please Sign in or register to post replies

Write your reply to:

Draft