PageRenderTime 37ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/wp-lister-for-ebay/views/transaction_details.php

https://bitbucket.org/sanders_nick/my-maxi-skirt
PHP | 134 lines | 111 code | 23 blank | 0 comment | 6 complexity | b448a5eb1f70ba038eed15a7255821f0 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause, AGPL-1.0, GPL-3.0, LGPL-2.1
  1. <?php
  2. $d = $wpl_transaction['details'];
  3. ?><html>
  4. <head>
  5. <title>Transaction details</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <style type="text/css">
  8. body,td,p { color:#2f2f2f; font:12px/16px Verdana, Arial, Helvetica, sans-serif; }
  9. </style>
  10. </head>
  11. <body>
  12. <h2>Details for transaction #<?php echo $wpl_transaction['id'] ?></h2>
  13. <table width="100%" border="0">
  14. <tr>
  15. <td width="20%">
  16. <b>Datum:</b>
  17. </td><td>
  18. <?php echo $wpl_transaction['date_created'] ?>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td>
  23. <b>eBay Item ID:</b>
  24. </td><td>
  25. <?php echo $wpl_transaction['item_id'] ?>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td>
  30. <b>eBay Buyer:</b>
  31. </td><td>
  32. <?php echo $d->Buyer->UserID ?>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>
  37. <b>Buyer Email:</b>
  38. </td><td>
  39. <?php echo $d->Buyer->Email ?>
  40. </td>
  41. </tr>
  42. <?php if ( $d->BuyerCheckoutMessage != '' ) : ?>
  43. <tr>
  44. <td>
  45. <b>Message:</b>
  46. </td><td>
  47. <?php echo $d->BuyerCheckoutMessage ?>
  48. </td>
  49. </tr>
  50. <?php endif; ?>
  51. </table>
  52. <h2>Shipping and Payment</h2>
  53. <table width="100%" border="0">
  54. <tr><td width="50%">
  55. <b>Shipping address:</b><br>
  56. <?php echo $d->Buyer->BuyerInfo->ShippingAddress->Name ?> <br>
  57. <?php echo $d->Buyer->BuyerInfo->ShippingAddress->Street1 ?> <br>
  58. <?php if ($d->Buyer->BuyerInfo->ShippingAddress->Street2): ?>
  59. <?php echo $d->Buyer->BuyerInfo->ShippingAddress->Street2 ?> <br>
  60. <?php endif; ?>
  61. <?php echo $d->Buyer->BuyerInfo->ShippingAddress->PostalCode ?>
  62. <?php echo $d->Buyer->BuyerInfo->ShippingAddress->CityName ?> <br>
  63. <?php echo $d->Buyer->BuyerInfo->ShippingAddress->CountryName ?> <br>
  64. <br>
  65. <b>Shipping service:</b><br>
  66. <?php echo $d->ShippingServiceSelected->ShippingService ?> <br>
  67. <br>
  68. </td><td width="50%">
  69. <b>Payment address:</b><br>
  70. <?php echo $d->Buyer->RegistrationAddress->Name ?> <br>
  71. <?php echo $d->Buyer->RegistrationAddress->Street1 ?> <br>
  72. <?php if ($d->Buyer->RegistrationAddress->Street2): ?>
  73. <?php echo $d->Buyer->RegistrationAddress->Street2 ?> <br>
  74. <?php endif; ?>
  75. <?php echo $d->Buyer->RegistrationAddress->PostalCode ?>
  76. <?php echo $d->Buyer->RegistrationAddress->CityName ?> <br>
  77. <?php echo $d->Buyer->RegistrationAddress->CountryName ?> <br>
  78. <br>
  79. <b>Payment method:</b><br>
  80. <?php echo $d->Status->PaymentMethodUsed ?> <br>
  81. <br>
  82. </td></tr>
  83. </table>
  84. <h2>Order</h2>
  85. <table width="100%" border="0">
  86. <tr><th>
  87. <?php echo __('Quantity','wplister') ?>
  88. </th><th>
  89. <?php echo __('Name','wplister') ?>
  90. </th><th>
  91. <?php echo __('Price','wplister') ?>
  92. </th></tr>
  93. <tr><td width="20%">
  94. <?php echo $wpl_transaction['quantity'] ?>
  95. </td><td>
  96. <?php echo $wpl_auction_item->auction_title ?>
  97. <?php if ( is_object( @$d->Variation ) ) : ?>
  98. <?php foreach ($d->Variation->VariationSpecifics as $spec) : ?>
  99. <br> -
  100. <?php echo $spec->Name ?>:
  101. <?php echo $spec->Value[0] ?>
  102. <?php endforeach; ?>
  103. <?php endif; ?>
  104. </td><td>
  105. <?php echo number_format_i18n( $wpl_auction_item->price, 2 ) ?> &euro;
  106. </td></tr>
  107. </table>
  108. <pre><?php #print_r( $d ); ?></pre>
  109. <pre><?php #print_r( $wpl_auction_item ); ?></pre>
  110. </body>
  111. </html>