Download not showing in Divi theme

16 August, 2018 02:55:49
martin
Topics: 4
Messages: 15
We are running a membership certification website combined with Woocommerce.
Basically clients renew their annual membership in Woo Commerce and then get sent a pdf certificate.
The current issue is that the shortcode: [e2pdf-download id="1"] does not show in the front end of the theme at all.
Nor does it attach to the Woo Commerce confirmed order email.

However it show in the Formidable confirmation message and is able to download the pdf correctly.
All plugins are disabled except Formidable & E2pdf.
Our Wordpress version is: 4.9.8 and Divi is: Version: 3.12.1 e2pdf version is: Version 0.01.62

Any ideas why this might be?
16 August, 2018 04:09:40
E2Pdf
Support
Topics: 7
Messages: 3163
Hi.

The shortcode that your are trying to use within page can't "understand" which entry to use.

Is your E2Pdf template static or dynamic (with data that filled by user with Formidable Form)?

» If it's static you will need to use shortcode:

[e2pdf-download id="1" dataset="14"] - where 14 the ID of Formidable Entry.

» If you need to show dynamic inputs you will need to use Formidable View with shortcode inside:

[e2pdf-download id="1" dataset="[id]"]

And at page:

[display-frm-data id="322" filter="limited"] - where 322 the ID of View.

Do not forget to set correctly filters according your needs.

Regarding WooCommerce attachment and link inside WooCommerce email - it is need to see how organized the process at your website. But unfortunately it could be need to develop and add custom code to add as attachment until we release module for it.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
17 August, 2018 07:16:45
martin
Topics: 4
Messages: 15
Thank you,
I still get and error, can you perhaps assist according to the screenshot attached?
Kind regards
17 August, 2018 07:31:28
E2Pdf
Support
Topics: 7
Messages: 3163
Your view will show last entry submitted via Form "PDF 1" by current user if you will remove Filter "Entry ID".

The ID of the current last entry is: [id]

So actually this shortcode must work for this current view if you will remove filter by "Entry ID":

[e2pdf-download id="1" dataset="[id]"]

E2Pdf template must be connected to form "PDF 1".

A bit unclear about [167] field. Which information contains [167] field?

We remain at your service.



We would really appreciate your feedback at WordPress.org!
17 August, 2018 13:00:38
martin
Topics: 4
Messages: 15
Thanks a mil, its working perfectly!
[167] is the User ID, but not needed.
I just changed [e2pdf-download id="1" dataset="[167]"] with [e2pdf-download id="1" dataset="[id]"] and removed the Entry ID in the filters.

It would really be nice if the plugin was easier to combine with Woocommerce, this way custom forms can be sold as products.
Thanks for the help.
Kind regards.
17 August, 2018 13:22:25
E2Pdf
Support
Topics: 7
Messages: 3163
Glad to hear that solution worked for you.

We have already WooCommerce in our TODO list. Extension will be published as soon as will be fully ready.

We remain at your service.
We would really appreciate your feedback at WordPress.org!