Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter MagineM

    (@maginem)

    Hi,

    Any support out there for this plugin? All and any help appreciated.

    I’m facing the same issue, @maginem were you able to find a solution?

    Thread Starter MagineM

    (@maginem)

    Hi dmarcelino,

    Didn’t get any help, so what I ended up doing was disabling the footer altogether for the delivery note by adding this bit of code to function.php:

    // disable footer for delivery note
    function example_footer_free_delivery_note() {
        ?>
            <style>
                .delivery-note .colophon-imprint {
                    display: none;
                }
            </style>
        <?php
    }
    add_action( 'wcdn_head', 'example_footer_free_delivery_note', 20 );

    I think that is a pretty good solution. Does it work out for you, or does this remove too much?

    I had a similar thing. WCDN comes with a few API functions, like:

    function my_wcdn_head() {
    	$type =  wcdn_get_template_type();
    
    	if ( $type == 'delivery-note' ) {
    		// do thing you want on only the delivery note type
    	}
    }
    add_action( 'wcdn_head', 'my_wcdn_head' );

    That way you can hook into the actions and apply conditional statements based on the type of note.

    If the API functions are not helping you, there is also the function WCDN() which gets you the main instance of the plugin, allowing you to anything you want ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customise/exclude info from Delivery-Note only?’ is closed to new replies.