• Resolved texnavi2024

    (@texnavi2024)


    Hello, I found and started using the free version 3.8.2 of your plugin recently and it works great (THANK YOU!), however I am encountering 2 problems I would like to sort if possible:

    1. “Disable for” option doesn’t seem to work on my website, I am trying to get the PDF Invoice sent out only to orders marked as “Completed” (paid for) but the invoices are being sent to orders marked as “Pending Payment” too. I have attached a picture with my saved settings here: https://ibb.co/wMbsKvB
    2. I would like that the Notes I am adding on orders (as shown here: https://ibb.co/SBrMjCR) and appear on PDF Invoices sent to customers not to be placed on the same level as “Subtotal / Shipping / Total” as shown here: https://ibb.co/6P5xwm9 but to be spaced further down as illustrated here: https://ibb.co/7Vw3HdM

    Any advise/help would be much appreciated.

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hello @texnavi2024,

    The “Disable-for” feature is part of our Professional extension and WordPress does not allow for support of paid software here – it is banned. Please email us at [email protected]. ??

    Thread Starter texnavi2024

    (@texnavi2024)

    Hi @dpeyou, I didn’t knew the “Disable-for” feature is part of the Professional extension since it appears and it looks like I can use it in my dashboard (as you can see in the screenshot attached previously). It would’ve been nice for users to have either a message telling us that is part of the Professional extension or not show it at all in the plugin. thank you

    Thread Starter texnavi2024

    (@texnavi2024)

    Anyone help with point 2 please? tia

    Plugin Contributor dwpriv

    (@dwpriv)

    @texnavi2024 Give this code snippet a try

    //Push customer note section further down on the document
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	if ( $order = $document->order ) {
    		?> 
    			.customer-notes {
    				position: relative;
    				margin-top: 100px;
    			}
    		<?php
    	}
    }, 10 , 2 );

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide:?How to use filters

    Thread Starter texnavi2024

    (@texnavi2024)

    @dwpriv tried this in functions.php and it doesn’t work :/

    Plugin Contributor dwpriv

    (@dwpriv)

    Do you have any errors in your logs as outlined here? If not, are you using a custom template?

    Thread Starter texnavi2024

    (@texnavi2024)

    @dwpriv Yes I have errors there:

    2024-05-21T05:55:15+00:00 Critical syntax error, unexpected end of file (home/samplepublic_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php:115)

    Plugin Contributor dwpriv

    (@dwpriv)

    Have you edited the invoice.php? If not, could try updating/reinstalling the plugin from the zip file, please? This will re-add the default template files but will not affect your settings

    Thread Starter texnavi2024

    (@texnavi2024)

    @dwpriv not edited invoice.php.. tried to reinstall from zip file again (cleared cache and etc) and it’s same, Notes are displayed as shown in my initial post

    Plugin Contributor dwpriv

    (@dwpriv)

    Has the error been cleared as well or is it still present? If it’s still there, could you share a screenshot of where you placed the code, please?

    Thread Starter texnavi2024

    (@texnavi2024)

    @dwpriv I deleted the errors when you told me to check for them so there’s no error anymore. here’s screenshot of how/where I placed the code: https://ibb.co/3hkWZ8f

    Plugin Contributor dwpriv

    (@dwpriv)

    Thanks for the screenshot. Try this snippet instead

    //Push customer note section further down on the document
    
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    		?> 
    			.customer-notes {
    				margin-top: 100px;
    			}
    		<?php
    }, 10 , 2 );
    Thread Starter texnavi2024

    (@texnavi2024)

    @dwpriv thank you very much! your snippet only works for the notes added by customer on checkout, I needed it to work for notes I add as an admin too on the order page in woocommerce. I just added .document-notes to your snippet and it works great. thank you ??

    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    		<style>
    			.customer-notes,
    			.document-notes {
    				margin-top: 100px;
    			}
    		</style>
    	<?php
    }, 10, 2 );
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘“Disable For” and “Notes” problems’ is closed to new replies.