Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. @using UCommerce.EntitiesV2
  2. @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
  3.  
  4. @using UCommerce.Api;
  5. @{
  6. Layout = null;
  7.  
  8. string strOrderGuid = Request.QueryString["orderGuid"] as string;
  9. Guid orderGuid = Guid.Empty;
  10. PurchaseOrder purchaseOrder = null;
  11. if (Guid.TryParse(strOrderGuid, out orderGuid))
  12. {
  13. purchaseOrder = TransactionLibrary.GetPurchaseOrder(orderGuid);
  14. }
  15. }
  16.  
  17. @if(purchaseOrder != null)
  18. {
  19. <div>
  20. @foreach(var ol in purchaseOrder.OrderLines)
  21. {
  22. <h1>@ol.Sku</h1>
  23. }
  24.  
  25. </div>
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement