PDF as a downloadable product

28 May, 2020 12:05:30
liamrabbitt
Topics: 1
Messages: 6
Can I make the a downloadable PDF into a product that has to be paid for before you can download it?

I have A PDF that they will add details to before downloading.
Kind Regards

Liam
28 May, 2020 12:22:00
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,

Unfortunately at this moment there is no default option to organize such behavior, however we are actively working on WooCommerce integration, which was already delayed and it's currently under "beta" test stage. As soon as it will be released, we will notify you so you can test E2Pdf to see if it will fit your needs.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
28 May, 2020 12:55:26
liamrabbitt
Topics: 1
Messages: 6
Ok so what I need is a pdf that allows the customer to enter some information that we use in our database and they pay for a downloadable version or we can print and send it to them. The PDF is a what you see is what you get.
Regards

Liam Rabbitt

Look forward to hearing all about your update. We hope to go live in July
28 May, 2020 14:24:45
E2Pdf
Support
Topics: 7
Messages: 3331
As a solution you can try to combine Formidable Forms with E2Pdf. Formidable Forms has support of Conditional Statements, Conditional Logic for emails, Views and can be combined with some payment solutions.

So in theory process can look like this:
- User to fills out the form and redirected to payment
- User completes payment
- After Payment you update user submitted entry
- Depending on updated data you send or generate PDF download link with submitted information to user email or output data inside Formidable Forms View.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
28 May, 2020 15:46:04
liamrabbitt
Topics: 1
Messages: 6
After Payment you update user submitted entry... This would need to be automated as anyone buying a downloadable product will expect it available as soon as they pay for it. But its close.

Regards

Liam
29 May, 2020 04:38:43
E2Pdf
Support
Topics: 7
Messages: 3331
Regarding Formidable Forms documentation it's possible to update user entry in automated process: https://formidableforms.com/knowledgebase/formidable-paypal/#kb-save-payment-status-in-a-field.

So after update it can be page with "Formidable Forms View" where depending on this field status will be showed or not showed downloadable PDF.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
30 May, 2020 10:30:08
liamrabbitt
Topics: 1
Messages: 6
I would be happy to test your "beta" WooCommerce integration,

Kind Regards

Liam
30 May, 2020 12:39:15
liamrabbitt
Topics: 1
Messages: 6
Ok i am test that, Is there away to offer a Preview of the finished pdf before you submit the form for completion ? I under stand this may need to be added to the form builder.
30 May, 2020 14:59:02
E2Pdf
Support
Topics: 7
Messages: 3331
Unfortunately no. E2Pdf works with already submitted data. As a solution it can be used Formidable Forms Front-End Edit option (https://formidableforms.com/knowledgebase/set-up-front-end-editing/) + Formidable Forms view where will be used [e2pdf-view id="1" dataset="[id]"] shortcode.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
31 May, 2020 19:58:00
liamrabbitt
Topics: 1
Messages: 6
So one other prob I have is,,,, I have a input text and the text is not wrapping see attached screen shoot. Any Ideas?
1 June, 2020 06:06:51
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,

It looks like you are using "input" field instead of "textarea" field / "html" object, so changing field to "textarea"/"html" must solve issue.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
1 June, 2020 06:19:03
Liam Rabbitt
Topics: 0
Messages: 12
you were right, thanks for your help, cheers
3 June, 2020 08:25:41
Liam Rabbitt
Topics: 0
Messages: 12
Morning, I have switched to Gravity forms, and need to know is there away I can add the shortcode link [e2pdf-download id="4"] to a woocommerce email.

Kind Regards

Liam
3 June, 2020 08:50:14
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,

Unfortunately there is no yet built-in support for WooCommerce emails, however you can try to use WooCommerce PHP action to add processing of [e2pdf-download] shortcode.

Here is small example: https://codeshare.io/GLEQrl

It could be need to update conditions depending on how orders connected to Gravity Forms entries.

$template_id - is your E2Pdf Template ID
$dataset_id - is Gravity Forms Entry ID. If it's dynamic depending on purchased product, update it from products "foreach" iteration.

Simply you must fire shortcode in 'woocommerce_email_order_details' action hook:


$template_id = '4';
$dataset_id = '1';
echo "<p>" . do_shortcode('[e2pdf-download id="' . $template_id . '" dataset="' . $dataset_id . '"]') . "</p>";


We remain at your service.


We would really appreciate your feedback at WordPress.org!
3 June, 2020 09:05:20
Liam Rabbitt
Topics: 0
Messages: 12
Ok that way above me sorry (but I will ask). Option 2 the gravity forms does send a email on completion with working links to admin. Is there away to add the email of the customer collected at payment in WooCommerce or id they had to become a member of the site?
3 June, 2020 09:38:31
E2Pdf
Support
Topics: 7
Messages: 3331
Do you use Gravity Forms Product Add-ons for WooCommerce with "Update Payment and Transaction Details" option checked?

Or you have different setup?

As we understand, you currently created Gravity Form where you collect all completed orders as entries but you can't create email notification for customer as it's not included in entry? Is it correct?.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
3 June, 2020 10:12:32
Liam Rabbitt
Topics: 0
Messages: 12
i use Gravity Forms Product Add-ons for WooCommerce with "Update Payment and Transaction Details" option checked?
I created Gravity Form where I collect 3 text fields the rest of the order information is part of WooCommerce. So no email is collected in gravity form only in WooCommerce checkout.
3 June, 2020 10:15:10
Liam Rabbitt
Topics: 0
Messages: 12
Ok 1 under option I would like is the gravity form overlaid on the PDF see attached PDF. not sure if it can be done
3 June, 2020 10:19:48
E2Pdf
Support
Topics: 7
Messages: 3331
Unfortunately no, it can't be done with E2Pdf, however, as a solution, you can try to modify form output with image background and place fields in needed places, it will require CSS/PHP knowledge for Templates edit.

As a about sending PDF to payment email we are now reviewing the request, and will notify as soon as will get any solution.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
3 June, 2020 10:22:25
Liam Rabbitt
Topics: 0
Messages: 12
Really enjoying your plugin and working with your team, It's a breath of fresh air to find a support that is so helpful. Thank You

Regards

Liam

6 June, 2020 09:18:26
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,

After reviewing your request it looks like possible to accomplish task with following steps:

- It was created 2 fields under Gravity Forms (screenshot 1)
-- Payment Status (Field ID 7)
-- Payment Email (Field ID 8)

- It was created email notification where "Send to Email" was set to Hidden Field {Payment Email:8} (screenshot 2) and was added condition to send email only when "Payment Status" field is set to "completed" (screenshot 3). For admin email you can set condition to send only if "Payment Status" field is not set to "completed" to avoid duplicated notifications.

- After this it was added hook (https://codeshare.io/29WO67) to functions.php which will update entry values after payment status changed and hook will resend emails:
-- "Payment Email" will be set to Order billing email address
-- "Payment Status" will be changed to completed if it will be paid.

Do not forget please to change Field IDs to yours in added hook (7 and 8) to yours.

After all applied steps notifications can be controlled by Gravity Forms.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
6 June, 2020 12:19:35
Liam Rabbitt
Topics: 0
Messages: 12
Thanks for getting back to me. OK SCREEN SHOOTS SHOWING WHAT I DID INCLUDING WHERE I ADDED THE CODE TO functions.php AND WHAT I ADDED, BUT STILL NOT SENDING EMALE AS REQUIRED.


add_action('woocommerce_gravityforms_entry_details_updated', 'gf_wc_update_order_status_email', 30, 2);

function gf_wc_update_order_status_email($entry_id, $order_id) {

//Field IDs to Update
$payment_status_field_id = ‘6’;
$payment_email_field_id = ‘7’;

$the_order = wc_get_order($order_id);

if ($the_order->is_paid()) { // comment if not need to check if order paid
GFAPI::update_entry_field($entry_id, $payment_status_field_id, $the_order->get_status());
GFAPI::update_entry_field($entry_id, $payment_email_field_id, $the_order->get_billing_email('email'));

$entry = GFAPI::get_entry($entry_id);
if ($entry && isset($entry['form_id'])) {
$form_id = $entry['form_id'];
$form = GFAPI::get_form($form_id);
$notification_ids = array();
foreach ($form['notifications'] as $id => $info) {
array_push($notification_ids, $id);
}
GFCommon::send_notifications($notification_ids, $form, $entry);
}
} // comment if not need to check if order paid
}
6 June, 2020 13:56:14
E2Pdf
Support
Topics: 7
Messages: 3331
Do you see any changes in created Gravity Forms entries like updated Payment Status or Payment Email?

If not:
- Recheck if you updated functions.php of your activate theme
- Try please replace added code at functions.php to: https://codeshare.io/2EYkZK (it was removed check if order payment completed). After updating, check if it will be any changes in created entries under Gravity Forms.

If it will still not work (as it looks like you added all correctly), unfortunately we will need to take a look your installation directly. If it's acceptable for you, you can submit support ticket with access details to your WP Admin Dashboard: https://e2pdf.com/support/request. It will be also very helpful if you will include access details to FTP. We will be able to troubleshoot issue on Monday due the weekend.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
6 June, 2020 15:01:36
Liam Rabbitt
Topics: 0
Messages: 12
ok i sent you all login details, Please note site (oneinamillion) is only a test site for experimenting and testing solutions to be used on a different site.
8 June, 2020 10:25:04
Liam Rabbitt
Topics: 0
Messages: 12
Cool that worked perfect, thank you for all your help, I look forward to using your brilliant plugin. Regards. Liam
23 June, 2020 21:45:01
Liam Rabbitt
Topics: 0
Messages: 12
This is a long shot, I am experimenting with your product and gravity forms. I have different pdf for each variation of a product. Is there any way I can have the pdf change in E2PDF by variation ?
24 June, 2020 09:36:02
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,

Unfortunately built-in support for WooCommerce is not yet released. We are doing our best to release as soon as possible. Sorry for inconvenience. The only way is to use hooks and custom coding via PHP at this moment.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
25 June, 2020 22:21:10
Liam Rabbitt
Topics: 0
Messages: 12
Do you have someone that can do some customising of your plugin ?
25 June, 2020 23:42:55
Liam Rabbitt
Topics: 0
Messages: 12
https://youtu.be/qGHFLeCJlic this is what I am looking for. Regards Liam
26 June, 2020 11:35:51
E2Pdf
Support
Topics: 7
Messages: 3331
Unfortunately it would be very hard to connect it in the way that you request. We have in plans some similar functionality for forms with PDF image background, however it only in plans as it will require fully new form plugin developed by us as in most cases such integration not possible with 3rd party forms due their CSS/HTML structure and different way of rendering forms so the only way is to modify CSS on each product.

As about sending different templates, as a solution, it must be updated hidden field under created gravity forms entry and depending on it send needed mail confirmation via conditional logic which will contains different [e2pdf-download] or [e2pdf-attachment] shortcodes. We currently updated code which must save needed attribute under created Gravity Forms entry:

https://codeshare.io/2KxEoM

You must copy the code between comments and add it to your PHP code snippet in same place:
//start update entry with selected product options
...code
//end update entry with selected product options


- It must be updated '11' to your hidden field that will be created under Gravity Forms form.

- We used 'style' attribute key as in your form so it must be ok without change, however we added comment //style attribute key where it can be changed if your attribute key will be different.

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