Gravity forms meta on woocomerce connection

WooCommerce Bug Released
8 November, 2021 05:35:38
jdelamaza
Topics: 4
Messages: 14
Hi!!

I have a Woocommerce connection template, and I'm able to show this field:
[e2pdf-wc-product key="_gravity_forms_history" order_item_meta="true"]
Which brings all GF cart item info, but I need to display only the field: _gravity_for
m_linked_entry_id that is not available on the Map Field.

Any way I can retrieve this field to template?

Thanks!

8 November, 2021 06:53:49
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

It outputs the array of data saved by Gravity Forms so you must be able to use "path" attribute to navigate through the value as:

[e2pdf-wc-product key="_gravity_forms_history" order_item_meta="true" path="_gravity_for
m_linked_entry_id"]

P.S. If your E2Pdf Template connected to WooCommerce "Product" / WooCommerce "Variation" - E2Pdf also can render Gravity Forms merge tags directly inside that E2pdf Template as: {entry_id}, {Name:11}, etc

Merge tags must be printed manually as they are not yet available under "Visual Mapper".

We remain at your service.
We would really appreciate your feedback at WordPress.org!
8 November, 2021 07:25:47
jdelamaza
Topics: 4
Messages: 14
Great. Thanks!!
10 November, 2021 12:22:07
jdelamaza
Topics: 4
Messages: 14
Hi,

It works fine, but if I have 2 items in 1 WC order, the Gravity Forms merge tags brings the same number in both entry_id, even they have diferent numbers.

Any clue why this is happening?

Regards,
10 November, 2021 23:42:58
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Unfortunately Gravity Forms shortcodes currently can be rendered correctly only if E2Pdf Template connected to "WooCommerce" -> "Products" or "WooCommerce" -> "Variations", in other cases it can get information only for 1st purchased product.

In case of connection to "WooCommerce" -> "Orders" it must be used E2Pdf WooCommerce Shortcodes with "index" attribute as:

[e2pdf-wc-product key="_gravity_forms_history" order_item_meta="true" path="_gravity_form_linked_entry_id" index="0"] - for 1st product

[e2pdf-wc-product key="_gravity_forms_history" order_item_meta="true" path="_gravity_form_linked_entry_id" index="1"] - for 2nd product

[e2pdf-wc-product key="_gravity_forms_history" order_item_meta="true" path="_gravity_form_linked_entry_id" index="2"] - for 3rd product

and so on.

P.S. We will review the possibility to extend Gravity Forms Merge Tags with multiple products.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 November, 2021 08:12:23
jdelamaza
Topics: 4
Messages: 14
Thank you, but I'm using E2Pdf Template connected to "WooCommerce" -> "Products" and getting information only for 1st purchased product for {entry_id}.

Images below shows template and result.

Please help! thanks
11 November, 2021 08:50:10
E2Pdf
Support
Topics: 7
Messages: 3163
Hi, thank you for clarification.

It looks like issue connected due the same "Products" added to same order but with different meta. We are now trying to replicate the issue.

Can you let us know please where [e2pdf-download] or [e2pdf-attachment] shortcodes used? Is it used as "File Download URL"?
We would really appreciate your feedback at WordPress.org!
11 November, 2021 09:01:48
jdelamaza
Topics: 4
Messages: 14
Yes, in product -> download file -> file URL.
11 November, 2021 09:04:02
E2Pdf
Support
Topics: 7
Messages: 3163
Thank you. We could replicate issue on our side and currently working on fix.

We will let you know as soon as it will be any news. Sorry for inconvenience.
We would really appreciate your feedback at WordPress.org!
11 November, 2021 09:51:53
E2Pdf
Support
Topics: 7
Messages: 3163
We currently released a hot-fix with RC version 1.17.01. Follow please steps to update plugin to latest RC version in the current topic: https://e2pdf.com/support/desk/how-to-update-plugin-to-rc-release-candidate-version-from-e2pdf-com.

Let us know please if issue will be resolved after update. Thank you.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
11 November, 2021 14:21:55
jdelamaza
Topics: 4
Messages: 14
Now it's working fine. Thank you very much!!
24 January, 2022 08:24:14
jdelamaza
Topics: 4
Messages: 14
Hi there!!

I think I',m having the same problem again.

I have E2Pdf Template connected to WooCommerce "Product" and Gravity Forms merge tags directly inside that E2pdf.

It was working fine, but now if I have 2 items in 1 WC order, the Gravity Forms merge tags brings the same product meta for both products in the order. The "file download url" for both products it's also the same.

Please help, thanks!!
24 January, 2022 09:50:05
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We are sorry for inconvenience.

Current described issue appears only on backend due the way WooCommerce manage downloads and unfortunately WooCommerce doesn't offer any hooks so we can modify output as on frontend...

Frontend links still must be valid and work as expected.

We are working on "custom" solution to output PDF download links on backend, however if WooCommerce will release update with requested hooks earlier - we will integrate in their download system.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
26 January, 2022 05:52:10
jdelamaza
Topics: 4
Messages: 14
OK thanks for your support!