Hi @macpheek,
Based on your screenshot, this data is being added as item metadata, which is within the item itself. Unfortunately, it is not possible to create a separated line for this item meta on our PDF documents, without writing some advanced programming logic, which would be quite complex because there are price amounts involved, without mentioning that this is not covered by the support.
However, I would ask the developers of the extra product options plugin if there is a way to store the add-on data as a separated item, within the order data, after placing the order. If so, you would not need to do any customization to the PDF Invoices, since it would be displayed as a regular line item.
Hope it helps!
OK great, thanks for your help! I’ll await your reply after talking to the developers ๐
Hi, when do you think you might be able to get a reply from your developers? Thanks a lot
Hi @macpheek,
Sorry for the mix-up. When I said “I would ask the developers”, I meant if I were you, that’s what I would do.
In other words, please contact them directly, since they know their product and will most likely be able to help you get what you want.
Hi, I asked the other plugin author and it looks like this isn’t possible. Is it I can make the text on the extra product option larger so it’s easier to see on the invoice?
Hi @macpheek,
You can try to achieve that with this code snippet:
/**
* PDF Invoices & Packing Slip for WooCommerce:
* Add custom styles to the PDF documents
*/
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
?>
.wc-item-meta {
font-size: 8pt;
line-height: 8pt;
}
.wc-item-meta li {
margin-left: 0;
}
<?php
}, 10, 2 );
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
thanks so much! Appreciate all your help
We are happy to help, @macpheek!
If you don’t mind and have the time, do you think you could leave us a review?
Thanks in advance and all the best with your store!
I have read your 5-stars review, @macpheek: You have made my week! ๐บ
Let me know if you ever need anything else! ๐