• Resolved macpheek

    (@macpheek)


    Hi, we are using Woocommerce Extra Product Options to add an installation add on field to some of our products.

    The PDF invoice only shows a total price, I was wondering if it’s possible to show the product add on as it’s own line on the PDF, with a clearer breakdown. If you look at this link, you can see what we’re trying to achieve. Hope you can help

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    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!

    Thread Starter macpheek

    (@macpheek)

    OK great, thanks for your help! I’ll await your reply after talking to the developers ??

    Thread Starter macpheek

    (@macpheek)

    Hi, when do you think you might be able to get a reply from your developers? Thanks a lot

    Plugin Contributor Yordan Soares

    (@yordansoares)

    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.

    Thread Starter macpheek

    (@macpheek)

    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?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    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

    Thread Starter macpheek

    (@macpheek)

    thanks so much! Appreciate all your help

    Plugin Contributor Yordan Soares

    (@yordansoares)

    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!

    Thread Starter macpheek

    (@macpheek)

    review left ??

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I have read your 5-stars review, @macpheek: You have made my week! ??

    Let me know if you ever need anything else! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PDF Invoice – layout question’ is closed to new replies.