WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Print Invoice & Delivery Note
Products and prices missing (9 posts)

  1. cob-web
    Member
    Posted 1 year ago #

    Thanks guys for the great plug-in. Unfortunately it doesn't work properly!
    There aren't any items or prices showing up on the invoice.
    Strangely it works on cancelled orders only, but not on completed ones.
    Is there any work around to solve this?

    (I use the Plugin-Version 2.0.1 together with WooCommerce 2.0.9 and WP 3.5.1. My OS: Mac OS 10.8. and Firefox 20)

    Cheers,
    cob-web

    http://wordpress.org/extend/plugins/woocommerce-delivery-notes/

  2. freischwimmen
    Member
    Posted 1 year ago #

    Same here, no items or prices showing up on the invoice at all.
    As cob-web already stated, all works fine on cancelled orders, but not on completed ones. Would be great to know if this is being adressed.

    Setup: Plugin-Version 2.0.1 | WooCommerce 2.0.9 | WP 3.5.1.
    OS: Mac OS 10.6.8. No

  3. MDesigner0
    Member
    Posted 1 year ago #

    Same here. It was working OK last night, then suddenly today for no reason, it stopped working.

    Screenshot of PDF: http://i.imgur.com/tCtL0gw.jpg

    I'm going to dig into the code and see if I can find out what's going on. Will post here if I find anything.

  4. MDesigner0
    Member
    Posted 1 year ago #

    Ok, problem found.

    You cannot delete products from your store, otherwise the invoice plugin will try to fetch a nonexistent product ID. And in the code, it doesn't actually check for failure.

    Line 139 in class-wcdn-print.php:

    $product = $this->order->get_product_from_item( $item );

    And after, there's no check for failure. $product is coming up empty since it's been deleted from WooCommerce.

    This whole approach is flawed, though, because the order details in Woo will always show the product names and prices, long after the products are deleted. And this plugin is only fetching the name and prices, so why look up the product in Woo? It should just use the details in the $item array to populate the printout. $item already contains everything necessary, as far as I know.

  5. piffpaffpuff
    Member
    Plugin Author

    Posted 1 year ago #

    thanks for looking into it. there are also some other issues that need to be fixed. in the next days i have fortunately some freetime to work on the plugin.

  6. MDesigner0
    Member
    Posted 1 year ago #

    Thanks! I know this is a free plugin so I appreciate the effort :)

  7. piffpaffpuff
    Member
    Plugin Author

    Posted 1 year ago #

    a new version is online. can you please check if it works now? thanks

  8. freischwimmen
    Member
    Posted 1 year ago #

    Works for me, great. Thanks a lot for fixing this!

  9. MDesigner0
    Member
    Posted 1 year ago #

    Works great, thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.