WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Print Invoice & Delivery Note
[resolved] [Plugin: WooCommerce Print Invoices & Delivery Notes] Invoice/delviery note printing issues (3 posts)

  1. zombiecheese
    Member
    Posted 2 years ago #

    when ever i goto print/view the invoice or delivery note i am met with the below errors

    Warning: number_format() expects parameter 1 to be double, string given in /home/content/90/8835990/html/wp-content/plugins/woocommerce/classes/class-wc-order.php on line 270

    Warning: number_format() expects parameter 1 to be double, string given in /home/content/90/8835990/html/wp-content/plugins/woocommerce/classes/class-wc-order.php on line 277

    any idea?

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

  2. piffpaffpuff
    Member
    Plugin Author

    Posted 2 years ago #

    this happens when you order a product with no price (empty field, not 0!). this is a woocommerce issue and also happens on your customers order overview page. it would be great if you could report the issue to woccommerce: https://github.com/woothemes/woocommerce/issues?state=open

  3. johno69
    Member
    Posted 1 year ago #

    I am getting this error now even on the preview page of the plugin:

    Warning: number_format() expects parameter 1 to be double, string given in /home/xxxxxx/public_html/wp-content/plugins/woocommerce/classes/class-wc-order.php on line 678

    Line 678 is:

    return apply_filters( 'woocommerce_order_amount_line_subtotal', ($round) ? number_format( $price, 2, '.', '') : $price );

    Any help is appreciated

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic