{"id":3130,"date":"2013-03-17T22:08:19","date_gmt":"2013-03-18T05:08:19","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=3130"},"modified":"2014-06-11T14:27:19","modified_gmt":"2014-06-11T21:27:19","slug":"dapshowtransactions","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/dapshowtransactions\/","title":{"rendered":"[DAPShowTransactions]"},"content":{"rendered":"<p><strong>[DAPShowTransactions][\/DAPShowTransactions]<\/strong><\/p>\n<p>1) You can use this shortcode to show ALL transactions (it&#8217;s just a dump of user&#8217;s transaction history. Shows every single transaction for the logged-in user). Currently only one transaction template is available (template1).<\/p>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/showalltransactions-noinvoice.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-3108\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/showalltransactions-noinvoice.png\" alt=\"showalltransactions\" width=\"436\" height=\"185\" \/><\/a><\/p>\n[DAPShowTransactions template=&#8221;template1&#8243; showinvoice=&#8217;N&#8217;][\/DAPShowTransactions]\n<p>2) You can also use this shortcode to show an &#8216;invoice&#8217; link per user order \/ transaction. When the users click on the invoice link, a new window will open where the invoice will be displayed in pdf format. You can set the DAPShowTransactions shortcode to use invoice <strong>template1 <\/strong>or <strong>template2<\/strong>.<\/p>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/showalltransactions-invoice.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-3108\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2013\/03\/showalltransactions-invoice.png\" alt=\"showalltransactions\" width=\"436\" height=\"185\" \/><\/a><\/p>\n<p>The invoice pdf that opens up when the users click on the invoice hyperlink (View PDF) depends on whether the shortcode is set to invoicetemplate=template1 or invoicetemplate=template2.<\/p>\n<p><strong>PDF Example:<\/strong><br \/>\nShortcode with Invoice template 1:<br \/>\n[DAPShowTransactions template=&#8221;template1&#8243; invoicetemplate=&#8217;template1&#8242; adminemail=&#8217;joe@example.com&#8217; companyname=&#8217;DigitalAccessPass.com&#8217; showinvoice=&#8217;Y&#8217; logo=&#8217;\/home\/mysite\/mysite.com\/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/transactions\/invoices\/template1\/images\/logo.png&#8217; showinvoice=&#8217;Y&#8217;][\/DAPShowTransactions]\n<p><strong>IMPORTANT NOTE:<\/strong><\/p>\n<p>Make sure the &#8220;logo&#8221; field is set correctly in the shortcode. It should contain the FULL path to the logo image.<\/p>\n<p>If you add logo image to a folder called images at the root of your site. Then the logo image should be set to point to the FULL path of this image.<\/p>\n<p>For ex- \/home\/mysite\/mysite.com\/images\/logo.png<\/p>\n<p>If you do not know how to get the full path to a folder on your site, your webhost can help with it.<\/p>\n<p>Shortcode with Invoice template 2:<br \/>\n[DAPShowTransactions template=&#8221;template1&#8243; invoicetemplate=&#8217;template2&#8242; adminemail=&#8217;joe@example.com&#8217; companyname=&#8217;DigitalAccessPass.com&#8217; showinvoice=&#8217;Y&#8217; logo=&#8217;\/home\/mysite\/mysite.com\/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/transactions\/invoices\/template1\/images\/logo.png&#8217; showinvoice=&#8217;Y&#8217;][\/DAPShowTransactions]\n<p><strong>Here&#8217;s the list of all shortcode options:<\/strong><br \/>\n&#8216;template&#8217; =&gt; &#8216;template1&#8217;<br \/>\n&#8211; only valid value is &#8216;template1&#8217;<br \/>\n&#8216;invoicetemplate&#8217; =&gt; &#8216;template1&#8217;<br \/>\n&#8211; valid values are &#8216;template1&#8242;,&#8217;template2&#8217;<br \/>\n&#8216;adminemail&#8217;=&gt; =&gt; &#8216;joe@example.com&#8217;<br \/>\n&#8211; Admin Email displayed in the invoice pdf report<br \/>\n&#8216;companyname&#8217;=&gt; &#8216;Your Site Name&#8217;<br \/>\n&#8211; Company name displayed in the invoice pdf report<br \/>\n&#8216;companyurl&#8217;=&gt; &#8216;http:\/\/YOURSITE.com&#8217;<br \/>\n&#8211; Company website link displayed in the invoice pdf report<br \/>\n&#8216;logo&#8217;=&gt;&#8217;\/home\/mysite\/mysite.com\/wp-content\/plugins\/DAP-WP-LiveLinks\/includes\/transactions\/invoices\/template1\/images\/logo.png&#8217;<br \/>\n&#8211; Company logo<br \/>\n&#8216;notranmsg&#8217;=&gt; &#8216;Sorry, no transactions found&#8217;<br \/>\n&#8211; If there are no orders \/ payment transactions for the user, this message will be displayed<br \/>\n&#8216;showinvoice&#8217; =&gt;&#8217;Y&#8217;<br \/>\n&#8211; if set to &#8220;N&#8221;, invoice column with hyperlink to the pdf report will not be displayed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[DAPShowTransactions][\/DAPShowTransactions] 1) You can use this shortcode to show ALL transactions (it&#8217;s just a dump of user&#8217;s transaction history. Shows every single transaction for the logged-in user). Currently only one transaction template is available (template1). [DAPShowTransactions template=&#8221;template1&#8243; showinvoice=&#8217;N&#8217;][\/DAPShowTransactions] 2) You can also use this shortcode to show an &#8216;invoice&#8217; link per user order \/ transaction. [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3130"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=3130"}],"version-history":[{"count":24,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3130\/revisions"}],"predecessor-version":[{"id":4657,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3130\/revisions\/4657"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=3130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=3130"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=3130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}