lukaaa
Forum Replies Created
-
Forum: Plugins
In reply to: [Invoices for WooCommerce] Double currency display for TotalHi there,
I’ve managed to sort this out like this:<?php $totalkn = (float)$this->order->get_total(); $totaleur = round($totalkn/7.5345,2).'€'; echo $totaleur; ?>
Floatval() doesn’t seem to work here while (float) works just fine.
Hope this will help someone. Bye.Forum: Plugins
In reply to: [Invoices for WooCommerce] No invoices in the new yearYup, something is wrong… I’m geting this:
Fatal error: Uncaught exception ‘MpdfException’ with message ‘Unable to create output file: /home/carnosin/public_html/carnomed-adria.hr/wp-content/uploads/sites/1/woocommerce-pdf-invoices/attachments/2018/0001-02-01.pdf’ in /home/carnosin/public_html/carnomed-adria.hr/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php:9442 Stack trace: #0 /home/carnosin/public_html/carnomed-adria.hr/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(204): mPDF->Output(‘/home/carnosin/…’, ‘F’) #1 /home/carnosin/public_html/carnomed-adria.hr/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php(321): BEWPI_Abstract_Document->generate(‘F’) #2 /home/carnosin/public_html/carnomed-adria.hr/wp-content/plugins/woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php(383): BEWPI_Abstract_Invoice->generate() #3 [internal function]: BE_WooCommerce_PDF_Invoices->admin_pdf_callback(”) #4 /home/carnosin/public_html/carnomed-adria.hr/wp-includes/class-wp-hook.ph in /home/carnosin/public_html/carnomed-adria.hr/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php on line 9442