TaperVaper
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Numbering of pages on invoicesOK thanks for your quick response.
I have an offtopic last question.
How can I show the ship costs without tax in the modern template?Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] How to change the filename!Perfect now works great.
Finally I added the suffix % city for the file to become so :
$ name-$ number-$ company$ city
but I get to put some separator between company and city .to complete the invoice template I’ve done I’ve seen things of premium templates that I have liked .
I wonder if it is relatively easy to edit these premium templates.
If so will I buy .
I hope your recommendation.Greetings and thank you very much for technical support
add_filter( 'wpo_wcpdf_filename', 'wpo_wcpdf_custom_filename', 20, 4 ); function wpo_wcpdf_custom_filename( $filename, $template_type, $order_ids, $context ) { global $wpo_wcpdf; $count = count($order_ids); switch ($template_type) { case 'invoice': $name = _n( 'Factura_TaperVaper', 'Facturas_TaperVaper', $count, 'wpo_wcpdf' ); $company = $wpo_wcpdf->export->order->shipping_company; $city = $wpo_wcpdf->export->order->shipping_city; $number = $wpo_wcpdf->export->get_display_number( $order_ids[0] ); break; case 'proforma': $name = _n( 'Proforma_TaperVaper', 'Proformas_TaperVaper', $count, 'wpo_wcpdf' ); $company = $wpo_wcpdf->export->order->shipping_company; $city = $wpo_wcpdf->export->order->shipping_city; $number = $wpo_wcpdf->export->order->get_order_number(); break; case 'packing-slip': $name = _n( 'Albaran_TaperVaper', 'Albaranes_TaperVaper', $count, 'wpo_wcpdf' ); $company = $wpo_wcpdf->export->order->shipping_company; $city = $wpo_wcpdf->export->order->shipping_city; $number = $wpo_wcpdf->export->order->get_order_number(); break; default: $name = $template_type; $company = $wpo_wcpdf->export->order->shipping_company; $city = $wpo_wcpdf->export->order->shipping_city; $number = $wpo_wcpdf->export->order->get_order_number(); break; } if ( $count == 1 ) { $suffix = $number . '-' . $company . $city; } else { $suffix = date('Y-m-d'); // 2020-11-11 } $filename = $name . '-' . $suffix . '.pdf'; return $filename; }
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] How to change the filename!Right, now works perfectly but with the proforma invoice. And I do not understand why.
Thanks againForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] How to change the filename!The first thank you for the fast answer.
I am a relative novice with these things and can not get the code to work.
I would add to fuction.php my son and no matter if it’s the right thing and neither is where I have to put the name of my template in this case is called TaperVaper .
A greeting and thanks in advanceForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] How to change the filename!Hi can I use the billing or shipping company like a suffix in the pdf file name?
Now I use this code to the file name:add_filter( 'wpo_wcpdf_filename', 'wpo_wcpdf_custom_filename', 10, 4 ); function wpo_wcpdf_custom_filename( $filename, $template_type, $order_ids, $context ) { global $wpo_wcpdf; $count = count($order_ids); switch ($template_type) { case 'invoice': $name = _n( 'Factura TaperVaper', 'Facturas TaperVaper', $count, 'wpo_wcpdf' ); $number = $wpo_wcpdf->export->get_display_number( $order_ids[0] ); break; case 'proforma': $name = _n( 'Proforma TaperVaper', 'Proformas TaperVaper', $count, 'wpo_wcpdf' ); $number = $wpo_wcpdf->export->order->get_order_number(); break; case 'packing-slip': $name = _n( 'Albaran TaperVaper', 'Albaranes TaperVaper', $count, 'wpo_wcpdf' ); $number = $wpo_wcpdf->export->order->get_order_number(); break; default: $name = $template_type; $number = $wpo_wcpdf->export->order->get_order_number(); break; } if ( $count == 1 ) { $suffix = $number; } else { $suffix = date('Y-m-d'); // 2020-11-11 } $filename = $name . '-' . $suffix . '.pdf'; return $filename; }
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Price per product columnHi
I have the pro version and I would like to know how to add price per product WITHOUT TAX to my invoice.Thank You
Forum: Reviews
In reply to: [Html New User Notification] not worksYes and I haven′t mails in spam. I receipt other mails from the web without problems.
Forum: Reviews
In reply to: [Html New User Notification] not worksHi thanks for reply, the administrator does not receive the email, and the new user either.