mirror79
Forum Replies Created
-
Yes, this beta solved the problem. Thank you
It is obivious from this video: https://www.youtube.com/watch?v=HootfwDWOVM
I get the error result that I do not have rights to download the invoice.
Forum: Plugins
In reply to: [WPify Woo Czech] Overeno Zakazniky – Certification widget codePardon, u? jsem to na?el. Je to na Heuréce v Administrace eshopu, dále vlevo Ově?eno zákazníky a podsekce Nastavení a data z dotazník? a dále cca uprost?ed je sekce “Ikony certifikátu” a tam je link “Zde naleznete r?zné podoby ikon certitikátu Ově?eno zákazník?” a tím se odkryjou pot?ebné kódy.
Tak jen kdyby tu byla je?tě nějaká lama jako já ??
Forum: Plugins
In reply to: [WooCommerce] ‘Pending payment’ order status (not reducing stock)Hi, yes, it is more complicated, then it seems above. It is much more complex.
I made two steps to make it working correctly:
1. you have to control the _reduced_stock (search web how it works) – like manually deleting this flag when order is cancelled etc.
2. you have to move the force switching to on-hold (mentioned above) into the source code of payments (like PayPal, etc.)
The complete guide would take several screens and a lot of time. If you really want to, I will do it, just let me know, if you are interested. But beware: it will not be only about Snippets, but even the source code of payment gates must be edited (which means that if you will update it – like PayPal, you have to edit the code again) – I made my own app which automatically overwrite part of a code after every update … so if you are interested even in this kind of high level editing, let me know.
Forum: Plugins
In reply to: [WooCommerce] ‘Pending payment’ order status (not reducing stock)Well I found solution. This is the only snippet working for me:
add_action( 'woocommerce_checkout_create_order', 'force_new_order_status', 20, 1 ); function force_new_order_status( $order ) { if( ! $order->has_status('on-hold') ) $order->set_status( 'on-hold', 'Forced status by a custom script' ); }
But it is not putting back the stock when payment failed. It will have to be fixed using another hook.
Forum: Plugins
In reply to: [WooCommerce] ‘Pending payment’ order status (not reducing stock)Hi, I have absolutely same situation as @fcacic and the snippet mentioned above is not working. Did you test in on the latest version of wordpress and woocommerce? It probably stopped working due to some update. I need to reduce the stock in all new orders, which has been created in “pending” status, because the customer choosed to pay by any payment gateway like PayPal etc. Could you please test or provide another solution? Thank you very much. M.Hr.
- This reply was modified 4 years, 2 months ago by mirror79.