{"id":1971,"date":"2018-12-06T11:25:36","date_gmt":"2018-12-06T16:25:36","guid":{"rendered":"http:\/\/www.thatsoftwareguy.com\/blog\/?p=1971"},"modified":"2018-12-06T11:25:36","modified_gmt":"2018-12-06T16:25:36","slug":"enhancements-to-zen-cart-360-sales-reporting","status":"publish","type":"post","link":"https:\/\/www.thatsoftwareguy.com\/blog\/2018\/12\/06\/enhancements-to-zen-cart-360-sales-reporting\/","title":{"rendered":"Enhancements to Zen Cart 360 Sales Reporting"},"content":{"rendered":"<p>I have added an optional feature to\u00a0Zen Cart 360 Sales Reporting (link) which shows recent direct deposits on the admin dashboard.\u00a0 Update <code>admin\/index_dashboard.php<\/code>, and at the end of the file, add this block of code:<\/p>\n<pre>&lt;div id=\"colthree\" class=\"col-xs-12 col-sm-6 col-md-4 col-lg-4\"&gt;\r\n&lt;div class=\"reportBox\"&gt;\r\n&lt;div class=\"header\"&gt;&lt;?php echo \"Recent Direct Deposits\"; ?&gt; &lt;\/div&gt;\r\n&lt;?php\r\nrequire_once(DIR_WS_CLASSES . 'currencies.php');\r\n$currencies = new currencies();\r\n$orders = $db-&gt;Execute( \"SELECT * FROM \" . TABLE_DIRECT_DEPOSIT . \" ORDER BY deposit_date DESC LIMIT 5\");\r\nwhile (!$orders-&gt;EOF) {\r\n?&gt;\r\n  &lt;div class=\"row\"&gt;\r\n  &lt;span class=\"left\"&gt;\r\n    &lt;?php echo substr($orders-&gt;fields['name'], 0, 20); ?&gt;\r\n  &lt;\/span&gt;\r\n  &lt;span class=\"center\"&gt;\r\n     &lt;?php echo $currencies-&gt;format($orders-&gt;fields['amount']); ?&gt;\r\n  &lt;\/span&gt;\r\n  &lt;span class=\"left\"&gt;\r\n     &lt;?php echo $orders-&gt;fields['deposit_date']; ?&gt;\r\n  &lt;\/span&gt;\r\n&lt;\/div&gt;\r\n&lt;?php\r\n$orders-&gt;MoveNext();\r\n}\r\n?&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have added an optional feature to\u00a0Zen Cart 360 Sales Reporting (link) which shows recent direct deposits on the admin dashboard.\u00a0 Update admin\/index_dashboard.php, and at the end of the file, add this block of code: &lt;div id=&#8221;colthree&#8221; class=&#8221;col-xs-12 col-sm-6 col-md-4 col-lg-4&#8243;&gt; &lt;div class=&#8221;reportBox&#8221;&gt; &lt;div class=&#8221;header&#8221;&gt;&lt;?php echo &#8220;Recent Direct Deposits&#8221;; ?&gt; &lt;\/div&gt; &lt;?php require_once(DIR_WS_CLASSES . &#8216;currencies.php&#8217;); &hellip; <a href=\"https:\/\/www.thatsoftwareguy.com\/blog\/2018\/12\/06\/enhancements-to-zen-cart-360-sales-reporting\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Enhancements to Zen Cart 360 Sales Reporting<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,78],"tags":[],"class_list":["post-1971","post","type-post","status-publish","format-standard","hentry","category-that-software-guy","category-zen-cart"],"_links":{"self":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/comments?post=1971"}],"version-history":[{"count":2,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1971\/revisions"}],"predecessor-version":[{"id":1973,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1971\/revisions\/1973"}],"wp:attachment":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/media?parent=1971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/categories?post=1971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/tags?post=1971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}