Answered

Can't Access/Edit the Order Invoice Modal

0

This is on the "complete" page, after a user has ordered an item. There's a link that opens a modal with the full invoice, however I can't find that modal/component on the retail admin site. I found the link that's being used within the "Complete" page, but not the actual code for that modal.

Here is the link: "Component/Modals/OrderInvoice/OrderInvoice.tpl.html"

I'd like to access the data within that modal in order to populate the "Complete" page with a summary of the order.

Comments

2 comments
  • Official comment

    @TJ: In addition to what Akshay shared regarding creating your own custom invoice page, we definitely want to enable customization of the invoice page template, so we’ve added this to the planned work.

  • TJ Whidby

    Currently we have not added Order Invoice component as a Editable component so this will not allow you to Edit.

    But if you want to show OrderData on complete page then you can call GetOrders Api 

    https://retailapi.directscale.com/api/Orders/GetOrderDetail?OrderId=XXXX  by creating custom Complete Page  and  it will return the data which we are showing on Order Invoice Page. 

    Api Response Sample :

    {
      "Data": {
        "Order": [
          {
            "OrderID": "251",
            "customerId": "2",
            "FirstName": "Sam Space",
            "MiddleName": "",
            "LastName": "",
            "OrderDate": "2020-03-10T12:19:28",
            "Address1": "770 E Main",
            "Address2": "",
            "City": "American Fork",
            "State": "UT",
            "Country": "us",
            "Zip": "84003",
            "WarehouseID": "10",
            "WarehouseDescription": "US Will Call",
            "WarehouseAddress1": "",
            "WarehouseAddress2": "",
            "WarehouseCity": "American Fork",
            "WarehouseState": "Utah ",
            "WarehouseZip": "84003",
            "WarehouseCountry": "us",
            "CurrencyCode": "usd",
            "CurrencySymbol": null,
            "OrderTypeID": "1",
            "OrderTypeDescription": "Standard",
            "OrderStatusID": "",
            "OrderStatusDescription": "Paid",
            "ShipMethodID": "31",
            "ShipMethodDescription": "Standard Shipping",
            "ShippedDate": "0001-01-01T07:00:00",
            "TrackingNumber1": "",
            "Notes": "",
            "SubTotal": 125,
            "DiscountTotal": 0,
            "DiscountPercent": 0,
            "ShippingTotal": 2,
            "TaxTotal": 0,
            "Total": 127,
            "TotalPaid": 127,
            "TotalDue": 0,
            "BackOfficeID": "15FFF",
            "TaxRate": "0",
            "DecimalPoint": "2",
            "Coupons": [],
            "ShipTo": "Sam Space"
          }
        ],
        "OrderDetails": [
          {
            "OrderID": "251124",
            "ItemCode": "0360121006",
            "ItemDescription": "XYZ",
            "Quantity": 1,
            "PriceEach": "125",
            "BVEach": 100,
            "BV": 100,
            "CVEach": 100,
            "CV": 100,
            "PriceTotal": "125",
            "FlagCancer": false,
            "FlagBirthDefect": null
          }
        ]
      },
      "Status": 0,
      "ErrorDescription": "",
      "Message": "Success",
      "ErrorTransactionId": null
    }
    1

Please sign in to leave a comment.

Didn't find what you were looking for?

New post