19

[DAPShowTransactions]

[DAPShowTransactions][/DAPShowTransactions]

1) You can use this shortcode to show ALL transactions (it’s just a dump of user’s transaction history. Shows every single transaction for the logged-in user). Currently only one transaction template is available (template1).

showalltransactions

[DAPShowTransactions template=”template1″ showinvoice=’N’][/DAPShowTransactions]

2) You can also use this shortcode to show an ‘invoice’ 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 template1 or template2.

showalltransactions

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.

PDF Example:
Shortcode with Invoice template 1:
[DAPShowTransactions template=”template1″ invoicetemplate=’template1′ adminemail=’joe@example.com’ companyname=’DigitalAccessPass.com’ showinvoice=’Y’ logo=’/home/mysite/mysite.com/wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/invoices/template1/images/logo.png’ showinvoice=’Y’][/DAPShowTransactions]

IMPORTANT NOTE:

Make sure the “logo” field is set correctly in the shortcode. It should contain the FULL path to the logo image.

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.

For ex- /home/mysite/mysite.com/images/logo.png

If you do not know how to get the full path to a folder on your site, your webhost can help with it.

Shortcode with Invoice template 2:
[DAPShowTransactions template=”template1″ invoicetemplate=’template2′ adminemail=’joe@example.com’ companyname=’DigitalAccessPass.com’ showinvoice=’Y’ logo=’/home/mysite/mysite.com/wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/invoices/template1/images/logo.png’ showinvoice=’Y’][/DAPShowTransactions]

Here’s the list of all shortcode options:
‘template’ => ‘template1’
– only valid value is ‘template1’
‘invoicetemplate’ => ‘template1’
– valid values are ‘template1′,’template2’
‘adminemail’=> => ‘joe@example.com’
– Admin Email displayed in the invoice pdf report
‘companyname’=> ‘Your Site Name’
– Company name displayed in the invoice pdf report
‘companyurl’=> ‘http://YOURSITE.com’
– Company website link displayed in the invoice pdf report
‘logo’=>’/home/mysite/mysite.com/wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/invoices/template1/images/logo.png’
– Company logo
‘notranmsg’=> ‘Sorry, no transactions found’
– If there are no orders / payment transactions for the user, this message will be displayed
‘showinvoice’ =>’Y’
– if set to “N”, invoice column with hyperlink to the pdf report will not be displayed

Click Here to Leave a Comment Below 19 comments
Connor - April 8, 2013

This is not working. There’s no DAP-ShortCodes-XXX files in the plugin folder as there is with the other shortcodes. Using this shortcode, wordpress just spits it out as text because it doesn’t know what to do with it.

Was this intended for a future release?

Reply
Veena Prashanth - April 9, 2013

>>Was this intended for a future release? << Yes, this feature will be available in the next dap release.

Reply
Daisy - January 8, 2014

So, now that the new release is out, if I upgrade to it, will this work? Such a neat (and overlooked) feature! Thanks for all you do,

D

Reply
Veena Prashanth - January 8, 2014

Hi Daisy,

Yes, it should work. We have not made this feature official yes, as the release was all about dap cart but it’s there and should work.

Thanks,
Veena

Reply
Thomas - January 9, 2014

Hello,

It works partially for me :

When clicking on the “view PDF” link, the PDF file is not generated, and the browser shows a “error 404, page not found” message.

Thanks in advance for your help

Any Idea ?

Reply
Veena Prashanth - January 10, 2014

Hi Thomas,

It’s because in dap 4.5.2, we didnot include the invoice library that is required for this feature. We have not made this feature official yet as we are still testing it.

Please open a support ticket with us and we will give you access to the invoice library.

Thanks,
Veena

Reply
Thomas - January 11, 2014

OK, Thanks Veena !

Reply
Daisy - February 8, 2014

Thanks for a wonderful update!

Reply
Andrew G - May 8, 2014

Veena – cool update
Tx are shown but PDF generation is not working. On more digging I find there is no file under /dap/inc/tp/invoices/converter.php
Pls have a look.

Reply
Veena Prashanth - May 8, 2014

Hi Andrew,

Please login to your members area on http://www.digitalaccesspass.com/dappers and download the invoice library. Extract the contents of the zip file and upload it to /dap/inc/tp folder on your site.

Thanks,
Veena

Reply
Andrew G - May 8, 2014

Veena –

The invoice library is neither present as a separate download nor present under any of the zip files below (in the member’s area). Kindly have a look.

[BETA] DAP v4.6.1 (released 05/05/2014)
[BETA] LiveLinks v1.10.1 (goes with DAP v4.6.1 – released 05/05/2014)

Reply
Veena Prashanth - May 8, 2014

Hi Andrew,

Please open a support ticket with us and we will make sure it’s added to your account.

Thanks,
Veena

Reply
Matt - October 29, 2014

I don’t want to show all transactions. Is there a way to set this up so it only shows the purchase just made on the page after the shopping cart page?

For example, they buy XYZ (recurring or not, doesn’t matter), on the thank you page after purchase I would like to show a receipt and confirmation of purchase with the product name, purchase amount, etc.

Will this work for that or will it show all prior purchases too?
Thanks.

Reply
Jerry - August 22, 2015

Hi Veena,

Is this working for version 4.9.1? I tried it but it says “template not found.” I also added manually the invoices folder into /dap/inc/tp but I got the same error. Please advise. Thanks.

Reply
Veena Prashanth - August 22, 2015

Currently the shortcode does not have the option to only show currently purchased product but it’s on our to-do list along with mobile-responsive templates.

Reply
Veena Prashanth - August 22, 2015

Hi Jerry,

Yes, it should work with version 4.9.1.

1. When you copy this shortcode on a page, replace all occurrences of backticks character (”) with double or single quote character (WP automatically replaces quotes with backticks in the document).

2. Set the ‘logo’ path correctly for your site in the shortcode.

The example we have used in this post is just a sample path :

logo=’/home/mysite/mysite.com/wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/invoices/template1/images/logo.png’

Please replace the path with the right one for your site.

Thanks,
Veena

Reply
Jerry - August 22, 2015

Hi Veena,

It worked! Thank you so much!

Reply
Terri Schulze - September 23, 2015

I have the invoice working as template 1 but template 2 doesn’t load.

Are we able to make any changes to the invoice as here in Australia we must add our ABN number for tax purposes.

Reply
Veena Prashanth - September 23, 2015

Hi Terry,

You can update the invoice template.
You will find it in this folder :
/wp-content/plugins/DAP-WP-LiveLinks/includes/transactions/invoices/template1

Copy the contents of invoicetemplate.html to custominvoicetemplate.html and then update custominvoicetemplate.html.

Not sure why the template 2 is not working. Please open a support ticket so we can take a look.

Thanks,
Veena

Reply

Leave a Reply: