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 252 posts 713 karma points
    24 days ago
    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 252 posts 713 karma points
    24 days ago
    Neil Hodges
    100

    Ugh...

    Just realised my mistake!!

    copy paste trigger happy

    name=

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

  • Matt Brailsford 2403 posts 11654 karma points MVP 6x c-trib
    24 days ago
    Matt Brailsford
    0

    Yup 😁

Please Sign in or register to post replies

Write your reply to:

Draft