Untitled Document
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Web Shipping Javascript SDK Questions

  1. #11
    Quote Originally Posted by Pat Gibson View Post
    Are there any plans to add drafts to OnAction?
    Could you explain it in more details? Do you want OnAction called when new shipment is saved/closed?

  2. #12
    Quote Originally Posted by SYSOPA View Post
    Could you explain it in more details? Do you want OnAction called when new shipment is saved/closed?
    1. ShipRush is sent data I from another system which includes Address info.
    2. ShipRush creates a draft behind the scenes.
    3. The draft address is changed in ShipRush and the user exits.

    A) Do drafts have a ShipmentId yet?
    B) If so, how do I get the changed data?

    You mentioned saved? Are there other ways to exit the ShipRush other than Ship button and closing?

    thanks

  3. #13
    >>> 1. ShipRush is sent data I from another system which includes Address info.

    I assume that this is done via Javascript API (not via REST API and not via custom webstore connection)?

    >>> A) Do drafts have a ShipmentId yet?

    It depends on where draft was created. If on the server - then yes, it would have a ShipmentId. If draft created on the client (inside browser by javascript) - it would not. I am still not sure what is your workflow (we have many ways of pushing data to ShipRush). To quickly check if you have ShipmentId in your case - check the URL of the shiprush application (if you embed shiprush as IFrame - you may need to pop browser developer tool). The URL ends with shipmentId.

    If it has bunch of zeros like this, then you DO NOT have ShipmentId
    https://sandbox.my.shiprush.com/Ship...0-000000000000

    If it has a valid GUID at the end, then you DO have a ShipmentId
    https://sandbox.my.shiprush.com/Ship...d-a848013f27b6

    >>> B) If so, how do I get the changed data?

    There is no "OnSave" event at the moment. But we can add it if it helps your case. Although if the shipment has no ShipmentId at the time of "save" - would it still be useful?

  4. #14
    Quote Originally Posted by SYSOPA View Post
    >>> 1. ShipRush is sent data I from another system which includes Address info.

    I assume that this is done via Javascript API (not via REST API and not via custom webstore connection)?

    >>> A) Do drafts have a ShipmentId yet?

    It depends on where draft was created. If on the server - then yes, it would have a ShipmentId. If draft created on the client (inside browser by javascript) - it would not. I am still not sure what is your workflow (we have many ways of pushing data to ShipRush). To quickly check if you have ShipmentId in your case - check the URL of the shiprush application (if you embed shiprush as IFrame - you may need to pop browser developer tool). The URL ends with shipmentId.

    If it has bunch of zeros like this, then you DO NOT have ShipmentId
    https://sandbox.my.shiprush.com/Ship...0-000000000000

    If it has a valid GUID at the end, then you DO have a ShipmentId
    https://sandbox.my.shiprush.com/Ship...d-a848013f27b6

    >>> B) If so, how do I get the changed data?

    There is no "OnSave" event at the moment. But we can add it if it helps your case. Although if the shipment has no ShipmentId at the time of "save" - would it still be useful?

    For the ERP integration we have the OnShipmentCompleted handling the ship button actions. It would be ideal to have an OnSave and a better implementation that handles drafts so customers can get proper quotes.
    The ERP has a robust Order Management and if we had the OnSave then our integration with ShipRush would compete better with one of your competitors integration.

  5. #15
    "OnSave" event has been added to builds 111251+. Currently live on sandbox, should be on production by next week.

    You can use the same demo to check it's functionality on sandbox
    https://sandbox.my.shiprush.com/stat...ting-demo.html

    Let us know if you need anything else to solve "drafts" workflow for you...

    Name:  2018-02-07_13-32-11.png
Views: 27
Size:  75.7 KB

  6. #16
    Quote Originally Posted by SYSOPA View Post
    "OnSave" event has been added to builds 111251+. Currently live on sandbox, should be on production by next week.

    You can use the same demo to check it's functionality on sandbox
    https://sandbox.my.shiprush.com/stat...ting-demo.html

    Let us know if you need anything else to solve "drafts" workflow for you...

    Name:  2018-02-07_13-32-11.png
Views: 27
Size:  75.7 KB
    outstanding! I'll look at this soon.
    thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •