Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    You can do this by removing those details from the settings under PDF Invoices > General > Shop information

    Thread Starter Caridor

    (@shaar7)

    its already empty. as you can https://ibb.co/ymmZ1n5x

    Plugin Contributor dwpriv

    (@dwpriv)

    Give this code snippet a try

    /**
    * WPO PDF Invoices & Packing Slips - Hide shop address
    */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    if ( $order = $document->order ) {
    ?>
    td.shop-info {
    display: none;
    }
    <?php
    }
    }, 10 , 2 );

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

    We also have a blog post here that you may find helpful about adding custom code to your site.

    Thread Starter Caridor

    (@shaar7)

    i tried the code but doesn’t work

    Plugin Contributor dwpriv

    (@dwpriv)

    Give this updated snippet a try

    /**
    * WPO PDF Invoices & Packing Slips - Hide shop name & address
    */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    if ( $order = $document->order ) {
    ?>
    div.shop-name,
    div.shop-address {
    display: none;
    }
    <?php
    }
    }, 10, 2 );
    Thread Starter Caridor

    (@shaar7)

    it works thank you.
    i just want to check is it possible to add the order time ? and i need to display the product price also not only the total price. for more clarification :
    if customer buy item1 qty=6
    in the invoice it showing the item name and qty and total price. i just need to add one more column before the the total price to be the “product price”.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @shaar7,

    Regarding your second question, please see my reply here: https://wordpress.org/support/topic/show-unit-price-2/#post-18615612

    Thread Starter Caridor

    (@shaar7)

    thank you.

    Plugin Contributor dwpriv

    (@dwpriv)

    @shaar7 Since the snippet worked for you, I will mark this topic as resolved. Feel free to open a new topic if you need help with something else.

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

You must be logged in to reply to this topic.