Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $key: string;
  2.  
  3. datePlaced: number;
  4.  
  5. items: any[] = [];
  6.  
  7. netPrice: number;
  8.  
  9. this.datePlaced = new Date().getTime();
  10.  
  11. this.items = shoppingCart.items.map(i => {
  12.  
  13. return {
  14.  
  15. product: {
  16.  
  17. title: i.product.title,
  18.  
  19. imageUrl: i.product.imageUrl,
  20.  
  21. price: i.product.price
  22.  
  23. },
  24.  
  25. quantity: i.quantity,
  26.  
  27. totalPrice: i.totalPrice
  28.  
  29. };
  30.  
  31. });
  32.  
  33. this.netPrice = shoppingCart.totalPrice;
  34.  
  35. }
  36.  
  37. this.orderId = this.route.snapshot.paramMap.get('id');
  38.  
  39. this.order$ = this.orderService.getOrderById(this.orderId);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement