Announcement

Collapse
No announcement yet.

Update Order Status Programmatically?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Update Order Status Programmatically?

    I'm using Miva Merchant 5.5 PR8. Is there a way to update the order status programmatically using Miva Script? We use an older custom mvc that updates the order status through the Viking Coders Order Status Manager plugin. I would like to update this code to utilize the new Miva order status functions. I get the results I want when I manually use the admin Import Data XML and the OrderShipment_Add and OrderShipment_SetStatus xml (from the master provide file - sample below). Is there a way to do this programmatically? Can the same function be called that the Import Data XML uses?


    Code:
    <OrderShipment_Add order_id="1234">
        <ProductList>
            <Product product_code="STDPROD001" quantity="1" />
        </ProductList>
        <Code>01741-20120515-01185</Code>
    </OrderShipment_Add>
    <OrderShipment_SetStatus code="01741-20120515-01185">
        <MarkAsShipped>1</MarkAsShipped>
        <TrackingNumber>0000000012345678912345</TrackingNumber>    
        <TrackingType>USPS</TrackingType>
        <ShipDate>
            <Day>15</Day>    
            <Month>05</Month>
            <Year>2012</Year>
        </ShipDate>
    </OrderShipment_SetStatus>

    #2
    Re: Update Order Status Programmatically?

    Hey Rob,

    Importing the XML you've generated systematically is certainly possible. We've developed a command-line tool that can be implemented through our professional services division. One requirement of running server-level tasks is that you have a dedicated box or sufficient access.

    Please shoot me a direct email ([email protected]) and we can talk further.

    Best,

    -Philip
    Philip Hansen
    Strategy & Solutions Manager // [email protected]

    Comment

    Working...
    X