Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I tried everything I could, but nothing seemed to work. I was finally able to fix the issue by adding the code below to my theme’s functions.php file, and it works perfectly now.

    add_filter( ‘wcdn_locate_template’, function( $path, $template, $type, $source ) {
    $custom = get_stylesheet_directory() . ‘/woocommerce-delivery-notes/’ . $template . ‘.php’;
    return file_exists( $custom ) ? $custom : $path;
    }, 10, 4 );

    The only concern is performance. In the previous version, I could print more than 200 order invoices without any issues, and it was very fast. With the current version, even printing 50 orders is noticeably slow. If I try 200, it takes several minutes and sometimes triggers a max execution time error, even though my server limit is already set to 5 minutes.

    Hopefully the performance issue can be improved in future releases.

    Hi,

    I followed all the steps to override the template, but it doesn’t seem to work. I created the folder woocommerce-delivery-notes/templates in my child theme and copied both base.php and invoice.php, since most of the data appears to be generated in base.php.

    However, when I print the invoice from the order listing or the order edit page, the output still shows the original template with no changes. Could this be a caching issue?

    Everything seems to be working. Except it still doesn’t convert special character in invoice. Instead of $ is shows $ and it says CAD but we need $ sign . I would like to extend existing print to add custom some barcodes and more details in it same i did in previous version. Please help. The default functionality in not enough. We need more details on order receipt for accurate production.

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