gato72
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [OceanWP] How to change title of description tab?Thank you!
I solved it by contacting oceanwp support who quickly replied.
They changed something via code.Forum: Themes and Templates
In reply to: [OceanWP] Anchor stop WorkingI also have the same problem and I also noticed that turning off ocean extra works, but ocean extra is needed.
We hope they will show us a solution.Good morning @alexmigf
thanks to you, I solved it like this:add_action( 'wpo_wcpdf_after_order_details', function( $document_type, $order ) { if( ! empty($order) && $document_type == 'receipt' ) { $notes = wc_get_order_notes( array( 'order_id' => $order->get_id(), 'type' => 'internal' ) ); $last_note_key = array_key_last( $notes ); ?> <div class="last-internal-note"> <?php echo wpautop( wptexturize( wp_kses_post( $notes[$last_note_key]->content ) ) ); ?> </div> <?php } }, 10, 2 );
Perhaps using also an add on “WooCommerce PDF Invoices Italian Add-on” it was necessary to replace “invoice” with “receipt” and wpo_wcpdf_after_order_details instead of wpo_wcpdf_after_document_notes.
Thank you very much, you have been of great help!
Thanks again for your help, but still nothing comes out in the pdf receipt.
Let me recap the problem:
If I add your code, nothing comes out.
If I add this:add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_order_notes', 10, 2 ); function wpo_wcpdf_order_notes ($template_type, $order) { $document = wcpdf_get_document( $template_type, $order ); $document->order_notes(''); }
I get too many things, and I would like me to come out only the last line as in the image that I attach.
https://1drv.ms/u/s!AkI75V9SXREPu06exa8FWgSiGT0J?e=WF7ysU
Thank you ??Thanks for the help, but unfortunately it doesn’t work.
If I put what you suggested in the function.php, I don’t get any notes on the pdf receipt.Thanks for your help! But I couldn’t get what I wanted.
Obviously by manually deleting the notes that don’t interest me in the order details screen (right side), I get what I want. In doing so, I realized that I always need only the first note in chronological order. Can anything be done to make only the first note appear in chronological order in the pdf receipt?
I have attached an image with the note I need circled: https://1drv.ms/u/s!AkI75V9SXREPu0a_FyFtLENXSmW3?e=Dvb2DQThanks again.
- This reply was modified 4 years, 1 month ago by gato72.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Invoice pdf and wp-listerI solved it by simply adding the order notes as stated in the official documentation, adding this code in function.php.
add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_order_notes', 10, 2 ); function wpo_wcpdf_order_notes ($template_type, $order) { $document = wcpdf_get_document( $template_type, $order ); $document->order_notes(); }
Forum: Plugins
In reply to: [WooCommerce] Pack of variants of the same product.After much research, at the moment I believe that with these 2 plugins, Woocommerce bulk variation and Woocommerce min / max quantities, I should be able to do that.
However, I would prefer to simplify having a single plug that manages everything for me, to avoid installing too many plugins.
Do you have any suggestions?
Thanks