Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.01 KB | None | 0 0
  1. <pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129cd2d-trace').style.display = (document.getElementById('cakeErr5cc079129cd2d-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined index: amount [<b>APP/Controller/DraftOrdersController.php</b>, line <b>192</b>]<div id="cakeErr5cc079129cd2d-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129cd2d-code').style.display = (document.getElementById('cakeErr5cc079129cd2d-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129cd2d-context').style.display = (document.getElementById('cakeErr5cc079129cd2d-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr5cc079129cd2d-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$nonFractionalCurrency</span></span></code>
  2. <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">);</span></span></code>
  3. <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$totalPrice&nbsp;</span><span style="color: #007700">-=&nbsp;</span><span style="color: #0000BB">$item</span><span style="color: #007700">[</span><span style="color: #DD0000">'applied_discount'</span><span style="color: #007700">][</span><span style="color: #DD0000">'amount'</span><span style="color: #007700">];</span></span></code></span></pre><pre id="cakeErr5cc079129cd2d-context" class="cake-context" style="display: none;">$draftOrder = array(
  4. &#039;line_items&#039; =&gt; array(
  5. (int) 0 =&gt; array(
  6. &#039;quantity&#039; =&gt; (int) 1,
  7. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  8. &#039;properties&#039; =&gt; null,
  9. &#039;applied_discount&#039; =&gt; array(
  10. [maximum depth reached]
  11. )
  12. ),
  13. (int) 1 =&gt; array(
  14. &#039;quantity&#039; =&gt; (int) 1,
  15. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  16. &#039;properties&#039; =&gt; null,
  17. &#039;applied_discount&#039; =&gt; array(
  18. [maximum depth reached]
  19. )
  20. ),
  21. (int) 2 =&gt; array(
  22. &#039;quantity&#039; =&gt; (int) 1,
  23. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  24. &#039;properties&#039; =&gt; null,
  25. &#039;applied_discount&#039; =&gt; array(
  26. [maximum depth reached]
  27. )
  28. )
  29. ),
  30. &#039;customer&#039; =&gt; array(
  31. &#039;id&#039; =&gt; &#039;888545869877&#039;
  32. ),
  33. &#039;use_customer_default_address&#039; =&gt; true,
  34. &#039;tags&#039; =&gt; &#039;Upsell Bundles&#039;,
  35. &#039;customer_id&#039; =&gt; (int) 888545869877,
  36. &#039;note&#039; =&gt; null,
  37. &#039;note_attributes&#039; =&gt; array()
  38. )
  39. $nonFractionalCurrency = false
  40. $variantIds = array(
  41. (int) 0 =&gt; &#039;14298918125621&#039;,
  42. (int) 1 =&gt; &#039;14298918060085&#039;,
  43. (int) 2 =&gt; &#039;14298917929013&#039;
  44. )
  45. $prices = array(
  46. (int) 14298918125621 =&gt; (float) 10,
  47. (int) 14298918060085 =&gt; (float) 1150,
  48. (int) 14298917929013 =&gt; (float) 10
  49. )
  50. $lineItems = array(
  51. (int) 0 =&gt; array(
  52. &#039;quantity&#039; =&gt; (int) 1,
  53. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  54. &#039;properties&#039; =&gt; null,
  55. &#039;applied_discount&#039; =&gt; array(
  56. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  57. &#039;value_fixed&#039; =&gt; (int) 10,
  58. &#039;value_percentage&#039; =&gt; (int) 10,
  59. &#039;title&#039; =&gt; &#039;Discount&#039;,
  60. &#039;description&#039; =&gt; &#039;Discount&#039;
  61. )
  62. ),
  63. (int) 1 =&gt; array(
  64. &#039;quantity&#039; =&gt; (int) 1,
  65. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  66. &#039;properties&#039; =&gt; null,
  67. &#039;applied_discount&#039; =&gt; array(
  68. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  69. &#039;value_fixed&#039; =&gt; (int) 10,
  70. &#039;value_percentage&#039; =&gt; (int) 10,
  71. &#039;title&#039; =&gt; &#039;Discount&#039;,
  72. &#039;description&#039; =&gt; &#039;Discount&#039;
  73. )
  74. ),
  75. (int) 2 =&gt; array(
  76. &#039;quantity&#039; =&gt; (int) 1,
  77. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  78. &#039;properties&#039; =&gt; null,
  79. &#039;applied_discount&#039; =&gt; array(
  80. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  81. &#039;value_fixed&#039; =&gt; (int) 10,
  82. &#039;value_percentage&#039; =&gt; (int) 10,
  83. &#039;title&#039; =&gt; &#039;Discount&#039;,
  84. &#039;description&#039; =&gt; &#039;Discount&#039;
  85. )
  86. )
  87. )
  88. $totalPrice = (float) 10
  89. $item = array(
  90. &#039;quantity&#039; =&gt; (int) 1,
  91. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  92. &#039;properties&#039; =&gt; null,
  93. &#039;applied_discount&#039; =&gt; array(
  94. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  95. &#039;value_fixed&#039; =&gt; (int) 10,
  96. &#039;value_percentage&#039; =&gt; (int) 10,
  97. &#039;title&#039; =&gt; &#039;Discount&#039;,
  98. &#039;description&#039; =&gt; &#039;Discount&#039;
  99. )
  100. )
  101. $qty = (int) 1
  102. $price = (float) 10</pre><pre class="stack-trace">DraftOrdersController::fixPercentageDiscounts() - APP/Controller/DraftOrdersController.php, line 192
  103. DraftOrdersController::index() - APP/Controller/DraftOrdersController.php, line 50
  104. ReflectionMethod::invokeArgs() - [internal], line ??
  105. Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 492
  106. Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
  107. Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
  108. [main] - APP/webroot/index.php, line 110</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129cf85-trace').style.display = (document.getElementById('cakeErr5cc079129cf85-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined index: amount [<b>APP/Controller/DraftOrdersController.php</b>, line <b>192</b>]<div id="cakeErr5cc079129cf85-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129cf85-code').style.display = (document.getElementById('cakeErr5cc079129cf85-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129cf85-context').style.display = (document.getElementById('cakeErr5cc079129cf85-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr5cc079129cf85-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$nonFractionalCurrency</span></span></code>
  109. <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">);</span></span></code>
  110. <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$totalPrice&nbsp;</span><span style="color: #007700">-=&nbsp;</span><span style="color: #0000BB">$item</span><span style="color: #007700">[</span><span style="color: #DD0000">'applied_discount'</span><span style="color: #007700">][</span><span style="color: #DD0000">'amount'</span><span style="color: #007700">];</span></span></code></span></pre><pre id="cakeErr5cc079129cf85-context" class="cake-context" style="display: none;">$draftOrder = array(
  111. &#039;line_items&#039; =&gt; array(
  112. (int) 0 =&gt; array(
  113. &#039;quantity&#039; =&gt; (int) 1,
  114. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  115. &#039;properties&#039; =&gt; null,
  116. &#039;applied_discount&#039; =&gt; array(
  117. [maximum depth reached]
  118. )
  119. ),
  120. (int) 1 =&gt; array(
  121. &#039;quantity&#039; =&gt; (int) 1,
  122. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  123. &#039;properties&#039; =&gt; null,
  124. &#039;applied_discount&#039; =&gt; array(
  125. [maximum depth reached]
  126. )
  127. ),
  128. (int) 2 =&gt; array(
  129. &#039;quantity&#039; =&gt; (int) 1,
  130. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  131. &#039;properties&#039; =&gt; null,
  132. &#039;applied_discount&#039; =&gt; array(
  133. [maximum depth reached]
  134. )
  135. )
  136. ),
  137. &#039;customer&#039; =&gt; array(
  138. &#039;id&#039; =&gt; &#039;888545869877&#039;
  139. ),
  140. &#039;use_customer_default_address&#039; =&gt; true,
  141. &#039;tags&#039; =&gt; &#039;Upsell Bundles&#039;,
  142. &#039;customer_id&#039; =&gt; (int) 888545869877,
  143. &#039;note&#039; =&gt; null,
  144. &#039;note_attributes&#039; =&gt; array()
  145. )
  146. $nonFractionalCurrency = false
  147. $variantIds = array(
  148. (int) 0 =&gt; &#039;14298918125621&#039;,
  149. (int) 1 =&gt; &#039;14298918060085&#039;,
  150. (int) 2 =&gt; &#039;14298917929013&#039;
  151. )
  152. $prices = array(
  153. (int) 14298918125621 =&gt; (float) 10,
  154. (int) 14298918060085 =&gt; (float) 1150,
  155. (int) 14298917929013 =&gt; (float) 10
  156. )
  157. $lineItems = array(
  158. (int) 0 =&gt; array(
  159. &#039;quantity&#039; =&gt; (int) 1,
  160. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  161. &#039;properties&#039; =&gt; null,
  162. &#039;applied_discount&#039; =&gt; array(
  163. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  164. &#039;value_fixed&#039; =&gt; (int) 10,
  165. &#039;value_percentage&#039; =&gt; (int) 10,
  166. &#039;title&#039; =&gt; &#039;Discount&#039;,
  167. &#039;description&#039; =&gt; &#039;Discount&#039;
  168. )
  169. ),
  170. (int) 1 =&gt; array(
  171. &#039;quantity&#039; =&gt; (int) 1,
  172. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  173. &#039;properties&#039; =&gt; null,
  174. &#039;applied_discount&#039; =&gt; array(
  175. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  176. &#039;value_fixed&#039; =&gt; (int) 10,
  177. &#039;value_percentage&#039; =&gt; (int) 10,
  178. &#039;title&#039; =&gt; &#039;Discount&#039;,
  179. &#039;description&#039; =&gt; &#039;Discount&#039;
  180. )
  181. ),
  182. (int) 2 =&gt; array(
  183. &#039;quantity&#039; =&gt; (int) 1,
  184. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  185. &#039;properties&#039; =&gt; null,
  186. &#039;applied_discount&#039; =&gt; array(
  187. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  188. &#039;value_fixed&#039; =&gt; (int) 10,
  189. &#039;value_percentage&#039; =&gt; (int) 10,
  190. &#039;title&#039; =&gt; &#039;Discount&#039;,
  191. &#039;description&#039; =&gt; &#039;Discount&#039;
  192. )
  193. )
  194. )
  195. $totalPrice = (float) 1160
  196. $item = array(
  197. &#039;quantity&#039; =&gt; (int) 1,
  198. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  199. &#039;properties&#039; =&gt; null,
  200. &#039;applied_discount&#039; =&gt; array(
  201. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  202. &#039;value_fixed&#039; =&gt; (int) 10,
  203. &#039;value_percentage&#039; =&gt; (int) 10,
  204. &#039;title&#039; =&gt; &#039;Discount&#039;,
  205. &#039;description&#039; =&gt; &#039;Discount&#039;
  206. )
  207. )
  208. $qty = (int) 1
  209. $price = (float) 1150</pre><pre class="stack-trace">DraftOrdersController::fixPercentageDiscounts() - APP/Controller/DraftOrdersController.php, line 192
  210. DraftOrdersController::index() - APP/Controller/DraftOrdersController.php, line 50
  211. ReflectionMethod::invokeArgs() - [internal], line ??
  212. Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 492
  213. Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
  214. Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
  215. [main] - APP/webroot/index.php, line 110</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129d267-trace').style.display = (document.getElementById('cakeErr5cc079129d267-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined index: amount [<b>APP/Controller/DraftOrdersController.php</b>, line <b>192</b>]<div id="cakeErr5cc079129d267-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129d267-code').style.display = (document.getElementById('cakeErr5cc079129d267-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc079129d267-context').style.display = (document.getElementById('cakeErr5cc079129d267-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr5cc079129d267-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$nonFractionalCurrency</span></span></code>
  216. <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">);</span></span></code>
  217. <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$totalPrice&nbsp;</span><span style="color: #007700">-=&nbsp;</span><span style="color: #0000BB">$item</span><span style="color: #007700">[</span><span style="color: #DD0000">'applied_discount'</span><span style="color: #007700">][</span><span style="color: #DD0000">'amount'</span><span style="color: #007700">];</span></span></code></span></pre><pre id="cakeErr5cc079129d267-context" class="cake-context" style="display: none;">$draftOrder = array(
  218. &#039;line_items&#039; =&gt; array(
  219. (int) 0 =&gt; array(
  220. &#039;quantity&#039; =&gt; (int) 1,
  221. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  222. &#039;properties&#039; =&gt; null,
  223. &#039;applied_discount&#039; =&gt; array(
  224. [maximum depth reached]
  225. )
  226. ),
  227. (int) 1 =&gt; array(
  228. &#039;quantity&#039; =&gt; (int) 1,
  229. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  230. &#039;properties&#039; =&gt; null,
  231. &#039;applied_discount&#039; =&gt; array(
  232. [maximum depth reached]
  233. )
  234. ),
  235. (int) 2 =&gt; array(
  236. &#039;quantity&#039; =&gt; (int) 1,
  237. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  238. &#039;properties&#039; =&gt; null,
  239. &#039;applied_discount&#039; =&gt; array(
  240. [maximum depth reached]
  241. )
  242. )
  243. ),
  244. &#039;customer&#039; =&gt; array(
  245. &#039;id&#039; =&gt; &#039;888545869877&#039;
  246. ),
  247. &#039;use_customer_default_address&#039; =&gt; true,
  248. &#039;tags&#039; =&gt; &#039;Upsell Bundles&#039;,
  249. &#039;customer_id&#039; =&gt; (int) 888545869877,
  250. &#039;note&#039; =&gt; null,
  251. &#039;note_attributes&#039; =&gt; array()
  252. )
  253. $nonFractionalCurrency = false
  254. $variantIds = array(
  255. (int) 0 =&gt; &#039;14298918125621&#039;,
  256. (int) 1 =&gt; &#039;14298918060085&#039;,
  257. (int) 2 =&gt; &#039;14298917929013&#039;
  258. )
  259. $prices = array(
  260. (int) 14298918125621 =&gt; (float) 10,
  261. (int) 14298918060085 =&gt; (float) 1150,
  262. (int) 14298917929013 =&gt; (float) 10
  263. )
  264. $lineItems = array(
  265. (int) 0 =&gt; array(
  266. &#039;quantity&#039; =&gt; (int) 1,
  267. &#039;variant_id&#039; =&gt; (int) 14298918125621,
  268. &#039;properties&#039; =&gt; null,
  269. &#039;applied_discount&#039; =&gt; array(
  270. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  271. &#039;value_fixed&#039; =&gt; (int) 10,
  272. &#039;value_percentage&#039; =&gt; (int) 10,
  273. &#039;title&#039; =&gt; &#039;Discount&#039;,
  274. &#039;description&#039; =&gt; &#039;Discount&#039;
  275. )
  276. ),
  277. (int) 1 =&gt; array(
  278. &#039;quantity&#039; =&gt; (int) 1,
  279. &#039;variant_id&#039; =&gt; (int) 14298918060085,
  280. &#039;properties&#039; =&gt; null,
  281. &#039;applied_discount&#039; =&gt; array(
  282. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  283. &#039;value_fixed&#039; =&gt; (int) 10,
  284. &#039;value_percentage&#039; =&gt; (int) 10,
  285. &#039;title&#039; =&gt; &#039;Discount&#039;,
  286. &#039;description&#039; =&gt; &#039;Discount&#039;
  287. )
  288. ),
  289. (int) 2 =&gt; array(
  290. &#039;quantity&#039; =&gt; (int) 1,
  291. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  292. &#039;properties&#039; =&gt; null,
  293. &#039;applied_discount&#039; =&gt; array(
  294. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  295. &#039;value_fixed&#039; =&gt; (int) 10,
  296. &#039;value_percentage&#039; =&gt; (int) 10,
  297. &#039;title&#039; =&gt; &#039;Discount&#039;,
  298. &#039;description&#039; =&gt; &#039;Discount&#039;
  299. )
  300. )
  301. )
  302. $totalPrice = (float) 1170
  303. $item = array(
  304. &#039;quantity&#039; =&gt; (int) 1,
  305. &#039;variant_id&#039; =&gt; (int) 14298917929013,
  306. &#039;properties&#039; =&gt; null,
  307. &#039;applied_discount&#039; =&gt; array(
  308. &#039;value_type&#039; =&gt; &#039;combined&#039;,
  309. &#039;value_fixed&#039; =&gt; (int) 10,
  310. &#039;value_percentage&#039; =&gt; (int) 10,
  311. &#039;title&#039; =&gt; &#039;Discount&#039;,
  312. &#039;description&#039; =&gt; &#039;Discount&#039;
  313. )
  314. )
  315. $qty = (int) 1
  316. $price = (float) 10</pre><pre class="stack-trace">DraftOrdersController::fixPercentageDiscounts() - APP/Controller/DraftOrdersController.php, line 192
  317. DraftOrdersController::index() - APP/Controller/DraftOrdersController.php, line 50
  318. ReflectionMethod::invokeArgs() - [internal], line ??
  319. Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 492
  320. Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
  321. Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
  322. [main] - APP/webroot/index.php, line 110</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc0791319009-trace').style.display = (document.getElementById('cakeErr5cc0791319009-trace').style.display == 'none' ? '' : 'none');"><b>Warning</b> (2)</a>: Cannot modify header information - headers already sent by (output started at /var/www/services/draft-orders-test/lib/Cake/Utility/Debugger.php:800) [<b>APP/Controller/RestProxyController.php</b>, line <b>74</b>]<div id="cakeErr5cc0791319009-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc0791319009-code').style.display = (document.getElementById('cakeErr5cc0791319009-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr5cc0791319009-context').style.display = (document.getElementById('cakeErr5cc0791319009-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr5cc0791319009-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">output</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$code&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">200</span><span style="color: #007700">)</span></span></code>
  323. <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{</span></span></code>
  324. <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;header</span><span style="color: #007700">(</span><span style="color: #DD0000">'HTTP/1.1&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$code</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$code</span><span style="color: #007700">);</span></span></code></span></pre><pre id="cakeErr5cc0791319009-context" class="cake-context" style="display: none;">$data = object(stdClass) {
  325. draft_order =&gt; object(stdClass) {}
  326. }
  327. $code = (int) 200</pre><pre class="stack-trace">header - [internal], line ??
  328. RestProxyController::output() - APP/Controller/RestProxyController.php, line 74
  329. DraftOrdersController::index() - APP/Controller/DraftOrdersController.php, line 65
  330. ReflectionMethod::invokeArgs() - [internal], line ??
  331. Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 492
  332. Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
  333. Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
  334. [main] - APP/webroot/index.php, line 110</pre></div></pre>{
  335. "draft_order": {
  336. "id": 161302970421,
  337. "note": null,
  338. "email": "tatsiana.s@spur-i-t.com",
  339. "taxes_included": true,
  340. "currency": "EUR",
  341. "invoice_sent_at": null,
  342. "created_at": "2019-04-24T17:56:18+03:00",
  343. "updated_at": "2019-04-24T17:56:18+03:00",
  344. "tax_exempt": false,
  345. "completed_at": null,
  346. "name": "#D400",
  347. "status": "open",
  348. "line_items": [
  349. {
  350. "variant_id": 14298918125621,
  351. "product_id": 1628462874677,
  352. "title": "Product 104",
  353. "variant_title": null,
  354. "sku": null,
  355. "vendor": "tatyana-test-store4",
  356. "quantity": 1,
  357. "requires_shipping": true,
  358. "taxable": true,
  359. "gift_card": false,
  360. "fulfillment_service": "manual",
  361. "grams": 0,
  362. "tax_lines": [
  363. {
  364. "rate": 0.2,
  365. "title": "VAT",
  366. "price": "1.66"
  367. }
  368. ],
  369. "applied_discount": null,
  370. "name": "Product 104",
  371. "properties": [],
  372. "custom": false,
  373. "price": "10.00",
  374. "admin_graphql_api_id": "gid:\/\/shopify\/DraftOrderLineItem\/47716552474677"
  375. },
  376. {
  377. "variant_id": 14298918060085,
  378. "product_id": 1628462809141,
  379. "title": "Product 103",
  380. "variant_title": null,
  381. "sku": null,
  382. "vendor": "tatyana-test-store4",
  383. "quantity": 1,
  384. "requires_shipping": true,
  385. "taxable": true,
  386. "gift_card": false,
  387. "fulfillment_service": "manual",
  388. "grams": 0,
  389. "tax_lines": [
  390. {
  391. "rate": 0.2,
  392. "title": "VAT",
  393. "price": "191.67"
  394. }
  395. ],
  396. "applied_discount": null,
  397. "name": "Product 103",
  398. "properties": [],
  399. "custom": false,
  400. "price": "1150.00",
  401. "admin_graphql_api_id": "gid:\/\/shopify\/DraftOrderLineItem\/47716552507445"
  402. },
  403. {
  404. "variant_id": 14298917929013,
  405. "product_id": 1628462743605,
  406. "title": "Product 101",
  407. "variant_title": null,
  408. "sku": null,
  409. "vendor": "tatyana-test-store4",
  410. "quantity": 1,
  411. "requires_shipping": true,
  412. "taxable": true,
  413. "gift_card": false,
  414. "fulfillment_service": "manual",
  415. "grams": 0,
  416. "tax_lines": [
  417. {
  418. "rate": 0.2,
  419. "title": "VAT",
  420. "price": "1.67"
  421. }
  422. ],
  423. "applied_discount": null,
  424. "name": "Product 101",
  425. "properties": [],
  426. "custom": false,
  427. "price": "10.00",
  428. "admin_graphql_api_id": "gid:\/\/shopify\/DraftOrderLineItem\/47716552540213"
  429. }
  430. ],
  431. "shipping_address": {
  432. "first_name": "Tanya",
  433. "address1": "test",
  434. "phone": null,
  435. "city": "test",
  436. "zip": "222160",
  437. "province": null,
  438. "country": "Belarus",
  439. "last_name": "Tanya",
  440. "address2": "",
  441. "company": null,
  442. "latitude": null,
  443. "longitude": null,
  444. "name": "Tanya Tanya",
  445. "country_code": "BY",
  446. "province_code": null
  447. },
  448. "billing_address": {
  449. "first_name": "Tanya",
  450. "address1": "test",
  451. "phone": null,
  452. "city": "test",
  453. "zip": "222160",
  454. "province": null,
  455. "country": "Belarus",
  456. "last_name": "Tanya",
  457. "address2": "",
  458. "company": null,
  459. "latitude": null,
  460. "longitude": null,
  461. "name": "Tanya Tanya",
  462. "country_code": "BY",
  463. "province_code": null
  464. },
  465. "invoice_url": "https:\/\/tatyana-test-store4.myshopify.com\/7356940341\/invoices\/beb31e9557fcfba3c20e9617722b210d",
  466. "applied_discount": null,
  467. "order_id": null,
  468. "shipping_line": null,
  469. "tax_lines": [
  470. {
  471. "rate": 0.2,
  472. "title": "VAT",
  473. "price": "1.66"
  474. },
  475. {
  476. "rate": 0.2,
  477. "title": "VAT",
  478. "price": "191.67"
  479. },
  480. {
  481. "rate": 0.2,
  482. "title": "VAT",
  483. "price": "1.67"
  484. }
  485. ],
  486. "tags": "Upsell Bundles",
  487. "note_attributes": [],
  488. "total_price": "1170.00",
  489. "subtotal_price": "1170.00",
  490. "total_tax": "195.00",
  491. "admin_graphql_api_id": "gid:\/\/shopify\/DraftOrder\/161302970421",
  492. "customer": {
  493. "id": 888545869877,
  494. "email": "tatsiana.s@spur-i-t.com",
  495. "accepts_marketing": false,
  496. "created_at": "2019-03-21T14:44:28+03:00",
  497. "updated_at": "2019-04-24T17:56:16+03:00",
  498. "first_name": "Tanya",
  499. "last_name": "Tanya",
  500. "orders_count": 3,
  501. "state": "enabled",
  502. "total_spent": "2332.64",
  503. "last_order_id": 785040670773,
  504. "note": "",
  505. "verified_email": false,
  506. "multipass_identifier": null,
  507. "tax_exempt": false,
  508. "phone": null,
  509. "tags": "GIFT",
  510. "last_order_name": "#1015",
  511. "currency": "EUR",
  512. "accepts_marketing_updated_at": "2019-03-21T14:44:28+03:00",
  513. "marketing_opt_in_level": null,
  514. "admin_graphql_api_id": "gid:\/\/shopify\/Customer\/888545869877",
  515. "default_address": {
  516. "id": 1042376130613,
  517. "customer_id": 888545869877,
  518. "first_name": "Tanya",
  519. "last_name": "Tanya",
  520. "company": null,
  521. "address1": "test",
  522. "address2": "",
  523. "city": "test",
  524. "province": null,
  525. "country": "Belarus",
  526. "zip": "222160",
  527. "phone": null,
  528. "name": "Tanya Tanya",
  529. "province_code": null,
  530. "country_code": "BY",
  531. "country_name": "Belarus",
  532. "default": true
  533. }
  534. }
  535. }
  536. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement