Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    The way the WooCommerce Gravity Forms Extension works, it’s not compatible with Gravity PDF. This is because during checkout the WooCommerce order is no longer linked to the original Gravity Form.

    That means that even if you were to regenerate the PDF based on the original entry, it would never know about the order ID.

    Thread Starter Chris Kepinski

    (@phpworker)

    I already managed to store order id in GF form entry on woocommerce_payment_complete hook. Just need to know how to regenrate the PDF.

    Can you help me with that?

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    The GFPDF_Core_Model::gfpdfe_save_pdf($entry, $form) method should work for you, provided you add the 'save' => true option to your configuration.php file (see docs for an example).

    Thread Starter Chris Kepinski

    (@phpworker)

    Thank you for that. Didn’t notice it is static function at first time.

    Got it working!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Need to generate PDF manually’ is closed to new replies.