Generate invoice if number is not an integer
-
I am currently having problems generating invoices if the number of an item is not an integer. I found a post that addresses the same topic = The table in the generated invoice then looks like this:
Order Number under 1
Is there a solution to this issue?
-
Hey there Tim,
Can you please copy and paste the system report for this site? You can find it under WP Admin > WooCommerce > Status > Get system report > Copy for support.
Also, can you let me know why you’d have a quantity of zero set? I do think this is something we need to tets out a bit more on our end, I just want to make sure I understand the use case and other influences properly.
Thanks!
Hey mother.of.code.a11n,
Thanks for your quick reply. It is a merchandise management system with minimum order quantities for certain products, for example 0.6 or 0.1 kg.
Since the system is hidden I can show you an excerpt from the report. I’m sorry my english is really bad.
This is the report from our development environment
### WordPress Environment ### WordPress address (URL): .... Site address (URL): .... WC Version: 4.9.0 REST API Version: ? 4.9.0 WC Blocks Version: ? 4.0.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.8.3 Log Directory Writable: ? WP Version: ? 5.6 - Es ist eine neuere Version von WordPress verfügbar (5.7.2) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: de_DE External object cache: – ### Server Environment ### Server Info: Apache/2.4.25 (Debian) PHP Version: 7.3.21-1+0~20200807.66+debian9~1.gbp18a1c2 PHP Post Max Size: 64 MB PHP Time Limit: 30 PHP Max Input Vars: 5000 cURL Version: 7.52.1 OpenSSL/1.0.2u SUHOSIN Installed: – MySQL Version: 5.6.49 Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? wp_remote_post() ist fehlgeschlagen. Kontaktiere deinen Webhosting-Anbieter. Remote Get: ? ### Database ### WC Database Version: 4.0.1 WC Database Prefix: wp_ Datenbank-Gesamtgr??e: 300.13MB Datenbank-Datengr??e: 262.45MB Datenbank-Indexgr??e: 37.68MB wp_woocommerce_sessions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Daten: 2.52MB + Index: 1.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Daten: 16.55MB + Index: 18.03MB + Engine InnoDB wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Daten: 0.05MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_aiowps_events: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_failed_logins: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_global_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_login_activity: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_login_lockdown: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_permanent_block: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Daten: 1.52MB + Index: 0.41MB + Engine InnoDB wp_layerslider: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_layerslider_revisions: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Daten: 3.36MB + Index: 0.09MB + Engine InnoDB wp_postmeta: Daten: 4.52MB + Index: 6.03MB + Engine InnoDB wp_posts: Daten: 0.47MB + Index: 0.39MB + Engine InnoDB wp_revslider_css: Daten: 0.13MB + Index: 0.00MB + Engine InnoDB wp_revslider_css_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Daten: 0.08MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_stock_log: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Daten: 0.06MB + Index: 0.05MB + Engine InnoDB wp_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Daten: 221.67MB + Index: 3.03MB + Engine InnoDB wp_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wcpdf_invoice_number: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Daten: 4.52MB + Index: 6.06MB + Engine InnoDB wp_wc_order_stats: Daten: 0.16MB + Index: 0.17MB + Engine InnoDB wp_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Daten: 0.06MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfblockediplog: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Daten: 0.45MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Daten: 2.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Daten: 0.11MB + Index: 0.05MB + Engine InnoDB wp_wfhoover: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Daten: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Daten: 0.45MB + Index: 0.17MB + Engine InnoDB wp_wfls_2fa_secrets: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Daten: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wftrafficrates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_products: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_packaging: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_packagingmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipmentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipment_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipment_items: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 63 nav_menu_item: 2 page: 6 post: 3 product: 341 revision: 35 shop_order: 1164 testimonials: 2 wpcf7_contact_form: 3 ### Security ### Secure connection (HTTPS): ? Dein Shop benutzt kein HTTPS. Erfahre mehr über HTTPS und SSL-Zertifikate. Hide errors from visitors: ? ### Active Plugins (11) ### Better Search Replace: von Delicious Brains – 1.3.4 Contact Form 7: von Takayuki Miyoshi – 5.3.2 Maintenance: von WebFactory Ltd – 3.99 New Order Notification for Woocommerce: von Mr.Ebabi – 1.3.3 User Role Editor: von Vladimir Garagulya – 4.58.2 Woocommerce Multishop Stock: von ...... – 1.0.0 – Die installierte Version wurde nicht mit der aktiven WooCommerce-Version 4.0 getestet WooCommerce PDF Invoices & Packing Slips: von Ewout Fernhout – 2.7.4 WooCommerce Unit Of Measure: von Bradley Davis – 3.0.2 – Die installierte Version wurde nicht mit der aktiven WooCommerce-Version 4.0 getestet WooCommerce: von Automattic – 4.9.0 (Update auf Version 5.3.0 ist verfügbar) Wordfence Security: von Wordfence – 7.4.14 ### Inactive Plugins (1) ### WooCommerce Stock Manager: von StoreApps – 2.1.0 – Die installierte Version wurde nicht mit der aktiven WooCommerce-Version 4.0 getestet ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop-Basis: ? Seite nicht festgelegt Warenkorb: ? Seite nicht festgelegt Kasse: ? Seite nicht festgelegt Mein Konto: ? Seite nicht festgelegt Allgemeine Gesch?ftsbedingungen: #2354 - /agb/ ### Theme ### Name: Twenty Twenty Version: 1.6 (Update auf Version 1.7 ist verfügbar) Author URL: https://de.www.ads-software.com/ Child Theme: ? – Wenn du WooCommerce mit einem Theme das du nicht selbst entwickelt hast an eigene Bedürfnisse anpasst dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.) WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Abgeschlossen: 55 Oldest: 2020-11-21 18:16:09 +0100 Newest: 2020-12-22 13:38:17 +0100 Ausstehend: 12 Oldest: 2021-01-12 15:25:40 +0100 Newest: 2021-05-20 10:23:47 +0200
Hi – I’d recommend trying to do test order again with
WooCommerce Unit Of Measure
deactivated. Does that change anything?Hi @tim77777,
We’ve not heard back from you in a while and we’ll soon mark this thread as resolved for the general health of the forums.
Just to check, were you able to make some tests as advised above?
Kindly update us on this.
Thanks.
the problem got solved. However, not by us but by another service provider who made a change in the functions.php and other files
- The topic ‘Generate invoice if number is not an integer’ is closed to new replies.