dwpriv
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] For attachingCould you check the WooCommerce logs to see if there are errors with the
wpo-wcpdforfatal-errorsprefix? If so, please share the logs with us. You’ll find the logs under WooCommerce > Status > Logs. See Where to find error logsForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Orders page timing outYes, you’d need to enable the plugin. You can disable it again after you’ve checked the logs
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Regarding Invoice LinksThanks for the information. We had received an email from you earlier, so we will continue this thread there.
Best regardsForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Regarding Invoice LinksWhat plugin are you using to send your whatsapp messages?
Also, regarding you second question, it seems you have a multi-vendor store? If so, what plugin are you using to create the individual stores?
thanks for the information. in the last image of the status page there seems to be some messed up text under the System Configuration settings. Could you share another screenshot of the entire System Configuration settings as well as the Write Permissions section below it, please?
@rbk69 Apologies for the delayed response.
Since you have switched you theme and are getting the same error, could you resend the error log, please? Also, could you share a screenshot of the settings under PDF Invoice > Status as well?
Try this code snippet
/** * Change "vendor:" to "Sold by" for Dokan invoice */ add_filter( 'wpo_wcpdf_shop_name', 'wpo_wcpdf_edit_vendor_name', 10, 2 ); function wpo_wcpdf_edit_vendor_name( $shop_name, $document ) { if ( ! empty( $document->order && class_exists( 'Dokan_Invoice' ) ) ) { $template_settings = get_option('wpo_wcpdf_settings_general'); $dokan_invoice = new Dokan_Invoice(); extract( $dokan_invoice->get_order_id_parent_id( $document ) ); if ( $parent_id == 0 ) { if ( function_exists( 'dokan_get_seller_ids_by' ) ) { $seller_list = dokan_get_seller_ids_by( $order_id ); } else { $seller_list = array_unique( array_keys( dokan_get_sellers_by( $order_id ) ) ); } if ( count( $seller_list ) > 1 ) { return $shop_name; } else { $vendor_id = $seller_list[0]; $vendor = dokan()->vendor->get( $vendor_id ); $store_name = $vendor->get_shop_name(); $store_name = ! empty( $store_name ) ? $store_name : __( 'store_info', 'dokan-invoice' ); $shop_name = $template_settings['shop_name']['default']; return $shop_name . "<br /><br />" . __( 'Sold by: ', 'dokan-invoice' ) . $store_name; } } else { $vendor_id = dokan_get_seller_id_by_order( $order_id ); $vendor = dokan()->vendor->get( $vendor_id ); $store_name = $vendor->get_shop_name(); $store_name = ! empty( $store_name ) ? $store_name : __( 'store_info', 'dokan-invoice' ); return $shop_name . "<br /><br />" . __( 'Sold by: ', 'dokan-invoice' ) . $store_name; } } }Use this guide to see how to apply this snippet to your website.
What’s the plugin that you’re using for the multi-vendor functionality?
Our plugin is pulling that information from some other plugin that’s saving vendor information in the order data. Is your store a multivendor store?
Glad the code worked 🙂
As for the second part of your issue, how are you adding the “Vendor” field to the invoice? Is it with a plugin or custom code?
Please disable this setting WooCommerce > PDF Invoices > General > Extended currency symbol support and add the code snippet below to your theme functions.php file:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 ); function wpo_wcpdf_custom_styles ( $document_type, $document ) { ?> body { font-family: DejaVu Sans; sans-serif; } <?php }If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Let me know if it works.
What currency is used for this order? Does this error happen with all currencies?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Output is gobbledygookGreat 🙂
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Output is gobbledygookWhat version of the plugin are you using? Have you tried updating/reinstalling the plugin?
If those didn’t solve your issue could you try add “&debug=true” to the end of the URL of the opened PDF in the browser and send us a screenshot of what appears there? You can open a PDF in the browser by following this guide.
Note however, that you may see some errors from other plugins or other areas of your site.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Output is gobbledygookAre you using a custom template? Also, have you tried going to the Status tab and clicking “Reinstall fonts”
Best regards