Cold
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Testimonials] Translate Read moreI have this same problem, please fix it!
A temporary solution is to edit the testimonials-plugin.class.php file and find line 506, which contains:
'language' => 'en',
and replacing en with the language we need.- This reply was modified 5 months, 3 weeks ago by Cold.
Forum: Fixing WordPress
In reply to: Blank page showing when attempting to edit postwhat plugins do you use on your website?
Forum: Plugins
In reply to: [LiteSpeed Cache] Enabled Cache and problem with contact form 7This same:
“ONE OR MORE FIELDS HAVE AN ERROR. PLEASE CHECK AND TRY AGAIN”
After restoring the default settings, “Enabled Cache” is ON. As soon as I disable it, the forms work fine.
I’ve received the answer:
Thank you for reaching out to us. We are here to assist you. All strings used in our plugin are translatable and we provide full compatibility with?WPML. Unlike the WPML plugin, the Polylang plugin handles translation with XML files. We are sorry to let you know that our plugin currently does not support it. The compatibility with Polylang is already in our development pipeline and since it requires some development efforts and internal changes we cannot commit to it at this moment.
I’m closing the thread.
You missed the double _ on “Download Invoice”, working code:
function download_invoice_button($actions, $order) { $actions['download_invoice'] = array('url' => wp_nonce_url(home_url('/?attaching_pdf=1&print_packinglist=true&email=' . base64_encode($order->get_billing_email()) . '&post=' . base64_encode($order->get_id()) . '&type=download_invoice&user_print=1&wpnonce=' . wp_create_nonce('wf-woocommerce-packing-list')), 'wf-woocommerce-packing-list'), 'name' => __('Download Invoice', 'textdomain')); return $actions; } add_filter('woocommerce_my_account_my_orders_actions', 'download_invoice_button', 10, 2);
Obviously you have to customize it for your site, but the code itself works because I implemented it yesterday. It doesn’t matter where you want to insert it, you just need to correctly pass the order id and user email address that are used in this snippet.
- This reply was modified 1 year, 8 months ago by Cold.
And what exactly is happening? Because literally yesterday I implemented it on my website and everything works.
Hi, this topic has already been discussed here:
https://www.ads-software.com/support/topic/function-to-get-the-url-to-print-or-download-the-invoice/
Good luck! ??