Viewing 2 replies - 1 through 2 (of 2 total)
  • Same here, is it able to differentiate footer of invoice and receipt (with the default display)? I dont want to customize the simple template because CSS is totally different. The default one is quite perfect only except footer.

    Thank you

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @handppy & @shiukik ,

    First of all, sorry for the delayed response to this.

    Our developer has created a custom code snippet to achieve your mentioned requirements. Kindly add the below provided code snippet in the “functions.php” file of your currently active theme.

    The below code will hide the footer from the receipt template.

    function removed_footer_receipt(){
    if ( 'receipt' === wcdn_get_template_type() ) {
    ?>
    <style>
    .colophon-imprint{
    display: none !important;
    }
    </style>
    <?php
    }
    }
    add_action( 'wcdn_head', 'removed_footer_receipt', 20 );

    The below code you can use to hide the footer from all the templates i.e. invoice, delivery notes, and receipt.

    function removed_footer_receipt(){
    ?>
    <style>
    .colophon-imprint{
    display: none !important;
    }
    </style>
    <?php
    }
    add_action( 'wcdn_head', 'removed_footer_receipt', 20 );

    Kindly use the provided code snippets and let us know if it is working as expected or not.

    Do let us know if you have any further queries.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.