Dynamic formidable form as a WooCommerce downloadable product

Formidable Forms Released
17 January, 2022 09:17:17
Camille33
Topics: 1
Messages: 8
Hi!

In my simple WooCommerce product, I'm trying to make my E2PDF template mapped with data from a Formidable Form items downloadable but I can't.

In the order confirmation email, when I click on the downloadable link, I have an error message (no defined file).

In my E2PDF template settings, it's linked to the correct Formidable Form item. And when I change the settings to "WooCommerce product", the downloadable link works fine, but it's not populated with my Formidable Form item...

The E2PDF template is activated.

Do you have any idea?

Thanks in advance for your help,
Regards,
Camille
17 January, 2022 10:10:53
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Unfortunately currently "File Download Path" in "WooCommerce" can support only E2Pdf Shortcodes of E2Pdf Template connected to "WooCommerce" -> "Products" or "WooCommerce" -> "Variations".

However you must be able to get entered information by going via below steps:

1. Change connection of E2Pdf Template to "WooCommerce" -> "Products".
2. Change Formidable Forms shortcodes inside E2Pdf Template to [e2pdf-wc-product key="Item Meta Key" order_item_meta="true"] as:

[e2pdf-wc-product key="Radio Buttons" order_item_meta="true"]

* Formidable Forms must duplicate entered information as product meta (screenshot attached).

Let us know please if that solution will work for you.

P.S. We will review the possibility to extend usage as you mentioned.
We would really appreciate your feedback at WordPress.org!
17 January, 2022 10:56:30
Camille33
Topics: 1
Messages: 8
Oh yes, thanks for the tip and the quick answer! It's more tedious but it perfectly works.
Is there a tip to embed a hidden field (from Formidable form)?
18 January, 2022 00:41:35
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Unfortunately It looks like Formidable Forms doesn't include "hidden" field data to WooCommerce Product Meta. It's possible to allow via PHP filters however it will be visible in cart page which we suppose is not expected output...

Our team is now checking adding support of behavior as you mentioned in 1st message like using [e2pdf-download] shortcodes of E2Pdf Template which is connected to Formidable Forms directly which seems is the most correct behavior for your needs and it can be useful for other our users.

We will update thread as soon as get any news.
We would really appreciate your feedback at WordPress.org!
18 January, 2022 01:10:22
Camille33
Topics: 1
Messages: 8
Hi,

Too bad! I'm going to do some css tweaks with that field and I guess it will be ok.

Yes, [e2pdf-download] shortcode will be a very useful feature, and it's already included with gravity form if I correctly understood.
Good luck with the work, I stay connected.

Thanks again for your very quick and involved support,
Camille
18 January, 2022 04:25:44
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

We currently released an update to RC version (1.17.11) which supports setting File Download URL of E2Pdf Template connected to Formidable Forms Form which is used for product.

You can follow steps in current topic to update plugin to latest RC version: https://e2pdf.com/support/desk/how-to-update-plugin-to-rc-release-candidate-version-from-e2pdf-com

Let us know please if solution will work for you and if it will not be any issues. Thank you.

P.S. As about Gravity Forms - it was not also supported till RC version (1.17.11) however Gravity Forms shortcodes can be used inside E2Pdf Template connected to "WooCommerce" -> "Products" / "Variations". Unfortunately to add same support for Formidable Forms requires from us a bit more time as the process of Formidable Forms render values a bit more complex than with Gravity Forms.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
21 January, 2022 08:40:09
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Do you see correct value saved under Formidable Forms Entry? E2Pdf must output same value which is showed under saved entry.

As about data from WooCommerce Order data directly - unfortunately currently E2Pdf Template connected to Formidable Forms can't get it, however you can try to add hook which will save needed data to Formidable Forms created entry along with other data by adding hook.

Formidable Forms has an example to add "Order ID" to Formidable Forms created entry however it must not be too hard to rebuild it to have "Product" price or "Order Total" by knowing item_id, order id and other information available under "action":

https://formidableforms.com/knowledgebase/woocommerce_new_order_item/
We would really appreciate your feedback at WordPress.org!
24 January, 2022 06:22:45
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Can you please clarify which is the type of field and what is the setup of that field? It looks like the data saved exactly as you see.

You can try to use "HTML" object instead "input" or as an alternative try to use preg_replace / [e2pdf-format-output] shortcode wrapper to get needed information but to prepare solution we need to know your setup + do you need all data (without tags)? or outside ()? or inside ()?
We would really appreciate your feedback at WordPress.org!
24 January, 2022 07:23:32
E2Pdf
Support
Topics: 7
Messages: 3156
Hm, very strange that it's formatted like WooCommerce price if it's simple "number" input in Formidable Forms... It looks like some hook applied to the output which formats data as WooCommerce price...

However you must be able to use "Preg Match All" to get only needed data as, it must work also with "input" field:

Preg Match All Pattern: /(.*) \((.*)\)/
Preg Match All Output: 1.0

Screenshots attached.
We would really appreciate your feedback at WordPress.org!
10 April, 2022 10:10:06
Camille33
Topics: 1
Messages: 8
Hi!

I have the same set up as explained above, that is to say:
- a simple downloadable WooCommerce product which is a Formidable Form.
- an E2PDF template which is mapped with data from this Formidable Form.

Everything was working fine, but for some time (most likely since an update of E2PDF and/or Formidable Form pro), the downloadable link in the order confirmation email doesn't work anymore. I have an error message ("file not found').

Do you have any idea what could be wrong?

Thanks a lot in advance,
Regards,
Camille
11 April, 2022 00:56:43
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

The setup looks okay and unfortunately we could not replicate issue on our side, can you try to:
1. Check if your E2Pdf Template is "Activated"
2. Check if you do not have any errors at "E2Pdf" -> "License"
3. Try export data via "E2Pdf" -> "Export". Will it generate PDF without any errors?
If it will work:
4. If you have access, can you check error.log for any errors connected to E2Pdf

If you still fail with finding the issue and it's acceptable for you submit please support ticket with access details to WP Admin Dashboard: https://e2pdf.com/support/request so we can check the setup directly.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 April, 2022 01:12:36
Camille33
Topics: 1
Messages: 8
Hi,

Thanks a lot for your answer.

Items 1., 2., 3. are all good. I also checked error.log files on my host, and I didn't see an E2pdf errors (or even other critical errors). :-(

Yes, it's totally acceptable for me to submit a ticket with access details to WP ; I'm doing it now.

Thanks a lot,
Camille