Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Actually, I’m having the same issue. Since September 22nd, the time to complete for all all quizzes reads 0. Plugin is always fully up to date. Our last submissions were oct 6th, and the time still reads 0.

    https://snipboard.io/CoRW2b.jpg

    Thread Starter raymc

    (@raymc)

    Okay, I believe I have resolved the issue!

    For anyone else in the future that has this same problem, where you get a 404 on the redirect after the final step to authorize the plugin, in this instance, it was related to ModSecurity. Go into cpanel, or whatever your host systems use to administer itself, and temporarily disable MobSecurity while you complete the authorization process. Then, after the authorization completes successfully, and the test emails come through, just turn ModSecurity back on.

    I hope this helps someone!

    Thread Starter raymc

    (@raymc)

    Okay, I believe I have resolved the issue!

    For anyone else in the future that has this same problem, where you get a 404 on the redirect after the final step to authorize the plugin, in this instance, it was related to ModSecurity. Go into cpanel, or whatever your host systems use to administer itself, and temporarily disable MobSecurity while you complete the authorization process. Then, after the authorization completes successfully, and the test emails come through, just turn ModSecurity back on.

    I hope this helps someone!

    Thread Starter raymc

    (@raymc)

    THANKS, AND SENT!

    Thread Starter raymc

    (@raymc)

    Thanks for the updates, however, now there appear to be a conflict with another plugin that I use for gravity forms, called gravity pdf. I didn’t realize until just now. Is there way to fix this, here is the error:

    Fatal error: Uncaught Mpdf\MpdfException: Cannot find TTF TrueType font file “DejaVuSans.ttf” in configured font directories. in /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33 Stack trace: #0 /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(3861): Mpdf\Fonts\FontFileFinder->findFontFile(‘DejaVuSans.ttf’) #1 /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(4154): Mpdf\Mpdf->AddFont(‘dejavusans’, ”) #2 /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(10875): Mpdf\Mpdf->SetFont(‘dejavusans’) #3 /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Mpdf.php(1483): Mpdf\Mpdf->SetDefaultFont(‘dejavusans’) #4 /home/regencyi in /home/regencyinteracti/ladybug.regencyinteractive.net/wp-content/plugins/gravity-forms-pdf-extended/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php on line 33

    Thread Starter raymc

    (@raymc)

    YES, thank you, I have it working now. You’ve been very gracious in your help!

    However, is there a means to collect the users contact information and send that as well? Something simple, like name, email, phone and company? I think someone else had asked this question also, a couple of months ago.

    Thanks again!

    Thread Starter raymc

    (@raymc)

    I apologize for this code, it’s embarrassingly bad. Again, I’m NOT a programmer!

    It “partially” works. If I include both the add_action, and the do_action in functions.php, it will at least send an e-mail, but it doesn’t have the attachment. It’s just a plain email with the message body specified below. Where and how do I trigger it properly and by what means can I attach the generated pdf.

    // START Email Pdf code – this is in functions.php, but should it be?

    add_action(‘wc_cart_pdf_output’, ‘my_pdf_mail_function’, 10, 1);
    function my_pdf_mail_function($mpdf) {
    $to = ‘[email protected]’;
    $subject = ‘Test Email’;
    $body = ‘Testing out sending this’;
    $headers = array(‘Content-Type: text/html; charset=UTF-8′,’From: [email protected]’);
    $attachments = $mpdf;
    wp_mail( $to, $subject, $body, $headers, $attachments );
    }

    // END Email Pdf code

    // Where does this go?
    do_action( ‘wc_cart_pdf_output’, $mpdf );

    Thread Starter raymc

    (@raymc)

    Also, is there a means to display what product options were selected for products in the cart? In my instance, I’m using the Advanced Product Fields plugin that allows me to create custom fields for each product, from which users can select available options. So, as an example, you might have a “Color” option, a “Size” option and a “material” option, and each option choice has a different cost added. So, how would I include these option in the pdf?

    I don’t mean to be a nuisance, I just trying to find out what options I have available to achieve a solution I’m looking for.

    UPDATE: I think I’ve figured this part out. There was an option in Advanced Product Fields to enable selected options to be shown in cart, and this plugin pulled in those options into the pdf!

    • This reply was modified 3 years, 10 months ago by raymc.
    Thread Starter raymc

    (@raymc)

    Thanks! I believe I figured out the footer, and have that implemented. However, I haven’t had much experience with software development. Could someone provide an example of using the do_action mentioned above to send an email with the pdf to the admin or other specified email?

    I’m Having the same issue. I did all of the tests mentioned above with no effect. I tried having it submit to various email address and none of them would receive. The server can send emails just fine. Contact form 7 and gravity form work fine.

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