Code

Discussion on WooCommerce Order Approval

Discussion on WooCommerce Order Approval

Cart 532 sales

vanquish supports this item

Supported

340 comments found.

I use your plugin to facilitate the acceptance of orders by my customers at reisresearch.com.

For some reason, the text in the emails is not changing when I change it in your plugin.

Can you get into the site and take a look at what is going on?

I will follow your steps and respond. I am actually on vacation as well, so I respect your time. I just need to know why I can’t change any of the email text.

If you are simply not able to save the texts (you change the text, save and the modification do not take effect), It depend on a too low value of the PHP php max input vars var. Check the WooCommerce -> Status -> PHP Max Input Vars. It should be above 12000, if not please your PHP.ini file and set the max_input_vars variable to a value greater than 12000. Once done, restart your server and go in the Status menu and make sure that the change took effect

I set max input vars to 14000 and Then went and pressed save in your plugin after I could see that the change worked. The email text being sent still does NOT match what is going out.

Just tried your demo and have a few questions

1. When we set for pay and approve (meaning 1st customer pays and then it will be approved), the stock for items in the order will be reduced and shown in order notes ? Kindly confirm.

2. We use email customiser for outgoing emails so when an order is pending approval, where will we edit the email contents ?

3. I saw the approval timeline messages in non-english language, hope they are editable ?

4. Can we rename “Approval area” heading and other status messages within your plugin ?

5. Can you do some custom paid changes in this plugin ? If so how do we reach out to you ?

  1. yes, it is. The stock management is not altered in any way by the plugin
  2. The plugin hasn’t support for the email customizer plugin. Email contents can be customized via the Texts menu: https://nimb.ws/UkyKBE
  3. yes, they can be customized via the Text</stong> menu
  4. You can customize the timeline text and eventually the timeline template. It can be copied into your theme folder, so you can update the plugin without worrying about restoring the customization
  5. I’m sorry, I do not offer such service

Hello, i have a question about your woocommerce order approval plugin. It works really fine and its awesome, but can you tell me if its possible, that you can approve an order by not signing in to the page with an account?

I mean only with the link, which is in the email?

Many thanks in advance!

Kind regards profinos

Hi,
Thank you for your appreciation! I’m sorry, for security reasons it is not possible.

I’m trying to add the categories from different language or the products for manual approval but its only showing EN products and categories. how can I add different language products and categories?

as you can see here the WooCommerce timestamp and the approval time stamp are different https://ibb.co/hR4nrdC I didnt change anything, the plugin is using the 0UCT time not the website time or woocomerce time

unfortunately, it seems a WooCommerce issue.

The plugin just invokes the native method get_date_created() on the order object (https://woocommerce.github.io/code-reference/classes/WC-Abstract-Order.html#method_get_date_created )

  1. time line template: https://www.dropbox.com/s/cvv2jk6rix8f2kq/wcoa_template.jpg?dl=0
  2. orde com: https://www.dropbox.com/s/4s7v1evjb2di6sn/wcoa_order_com.jpg?dl=0

For that, unfortunately, there isn’t much I can do. Make eventually surer that the date has not been manually modified.

I’ll however perform some additional tests!

much appreciated! thank you for the explanation. If you can find a solution that would be great! because on the order page the time is right everywhere at woocommerce the timestamp is right except the approval page.

Hello, how are you? I am interested in buying… I have more than one site, can I use the license on another site? how many? thankful

Hi,
the license allows you to use the software on one site at a time. However, there isn’t any activation system that prevents you to use the software on more than one site.

Is there any way to specify who (ADMIN) should receive the email for the approval?

Alternatively is there a way to enable approval links to be used in AutomateWoo? At the moment they cannot be used:(

I’m sorry, but approval emails are sent to the customer, not to the admin.

The plugin hasn’t any support for AutomateWoo.

Hi – admin definitely receives an email with links to approve / disapprove the order (you set it up in Texts / Email / New order email sent to the admin). There are two shortcakes: - [approve_order_link]: It will generate an URL to directly approve the order - [reject_order_link]: It will generate an URL to directly reject the order

but I cannot make it work outside of the New order email – any way to change that?

Ok, I thought you were referring to the notification sent when an order is approved.

The approval links are embedded in the “new order” email sent by woocommerce, so you eventually have to alter the recipient of that kind of email.

I’m sorry, I do not know what you mean by “make it work outside the new order email”.

You can eventually customize the code, just edit the Email_Manager.php file you find inside the classes\com folder. The plugin hooks to the woocommerce_email_before_order_table action triggered when WooCommerce is sending any order notification email. The handler for that action is defined at line 137, the function is named embed_approval_links()

On line 139, the plugin checks if the current email type is the New Order. You can eventually customize that code to include the links in any other notification (it has to trigger, however, the woocommerce_email_before_order_table action).

Hello,

My multivendor plugin uses the wc_get_orders array to get a list of all the arrays, but with your plugin, the wc_get_orders array is not showing the new orders made. Are the “waiting for approval” orders kept in another array?

Hi,
I’m sorry, I do not understand what you mean for keeping in another array. The “waiting for approval” is just a custom status, make eventually sure that the function is retrieving also the orders marked as “waiting for approval”.

I figured out the issue was on my end! thank you!!

No problem, you’re welcome! :)

At last but not least, I would ask you to help me: If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars…It would help me with sales, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/v6zaoe0p6cs4x2o/rating.png?dl=0 )

Have a great day!

Hello, i have bought the order approval plugin and im completely satisfied.

But i have one problem, im form germany and the time and date format is american,

Is it possible to change the date and time format for example for the after order page?

Many thanks in advance for the help1

for that, you cn give a look to the Order.php file, located in the classes\com folder. The order times printend in via the approval_area.php template (you find in the templtes folder inside the pluging folder) are:
  1. get_greation_dte() defined at line 526
  2. get_approva_date() defined at line 529

Hello, thank you for the quick answer!

I have found the files you mentioned.

Unfortunately im not a php expert. Could you tell me which lines of code i have to add and where to add the Uhr suffix after the time and how can i add the german months like “März” , “Juni” etc.

Thank you in advance!

I’m sorry, but that is not an easy transformation that can be suggested in a few lines.

In those functions, you can retrieve the dates you need by using the existing code, for example the order date can be retrieved by invoking the $order->get_date_created() method and the status change via the $order->get_meta(‘wcoa_status_chage_date’) method.

Once you retrieve the date data, you need to manipulate it according to your needs. For example, extracting the month data, transforming it using the german text, attaching the suffix you need, and then format the final sting.

Hey, My customer didn’t get order rejected email. If I reject/cancel the order then my customer didn’t get the order rejected/cancelled email. Instead of getting rejection email they got the order invoice in which there is no any statement is writing regarding cancellation of orders

It seems then that your WooCommerce installation has some issue on managing email notification sending.

From my tests, in a fully working envoriement, the notification emails are properly sent: https://nimb.ws/j2nx0Q

Make sure that there isn’t any 3rd party plugin that is altering email managment or interfering in any way.

Hello, when I select any other status it goes from Waiting for approval to Approved. how to solve this? we have 2 custom statuses that we use internally but these statuses act as approved statuses.

Hello,
yes this is the normal plugin behaviour, it is also reported in the plugin description page, in the Note on order statuses paragraph.

Please, however, I’ve just released the new 6.2 version that now allows you to select which statuses can be considered as “Waiting for approval”: https://nimb.ws/p3xqBK

This should help! Give it a try and let me know!

Hello,
was the new feature ok? :)

Hello, was the new version ok? :)

Hi, I hope you can understand because I’m using a translator. A developer friend indicated his plugin, but he told me that every time he changes to any status the plugin will update to “approved” I would like the plugin to update to approved only for a specific status, and no other. It would be possible? For my friend it’s not a problem because he works with deliveries, but for me I need him to change it to approved only when a specific status. Thanks for the reply, as soon as you confirm if it is possible I will make the purchase Thank you!

it’s just a doubt

Could you just answer if it is possible to trigger the “approved” status only for a specific status, so that I can make the purchase??

I’m sorry, but your scenario is not clear. The status is set as approved only if set the approved status via the “bulk actions” menu or the special icon: https://www.dropbox.com/s/5eq0n3yw25kq4ax/wcoa_order_status.jpg?dl=0

The plugin, however, has a demo site where you can fully tests its features in order to be sure it actually works as you need and expect: https://codecanyondemo.work/wcoa/wp-admin/ (user: demo, pass: demo).

I used the plugin on my staging site on https://www.cahbiz.com/venzit. I am now moving it to the live domain at https://www.venzit.shop. Is there anything else I have to do besides inform you?

Hi,
no there is nothing more to do.

Hello, I bought the wrong plugin. I though this was a design approval plugin. Is it possible to get a refund?

Hi,
The refund can be granted only if you haven’t downloaded the plugin. If not, you can ask a refund via the CodeCanyon refund form (note that in the request will result if you have downloaded the software).

Vanquish. When an order has been approved by the store owner, I need the Approval Conformation Email sent to multiple recipients so that our supply partners, warehousing and fulfilment companies are also notified of the confirmation. Where can I update this setting so that not only the customer receives the confirmation, but others in the supply chain are also notified that the order has been approved? Can you please reply as soon as possible. Thank you.

Hi,
if you wish to send the confermation email to other recipients other than the customr, you can edit the Email_Manager.php file you find inside the classes\com folder and replace line 46 as follows:
$recipients = $order->get_billing_email().",email1@email.com,email2@email.com";
where email1@email.com, email2@email.com and so on are the email address you wish to notify the approval.

Vanquish. Thank you so much for the super fast reply and for the solution to my issue. I award you 5 Stars for your excellent plug-in with some good karma thrown in. Thank you kind sir. Have a great day. Cheers.

Yeah, thank you very much for the rating and your words, I really appreciate it! :)

Have a great day! :)

Compatible with plugins for Autocomplete WooCommerce Orders or WooCommerce Order Status Control? Thanks

The plugin has never been tested with those plugins.

Hello sir, I am intrested on your plugin woocommerce order approval plugin. I have some doubt regading these please reply me. 1) Is it possible to use 1 licence more than 1 website. 2) If i activated this plugin licence for 1 domain name for testing purpose later i changed licence for other website it will work or not. 2) I am using razor pay plugin for Payment gateway is it work for these plugin.

please reply me as soon as possible, Thankyou

Hello,
  1. No, you should buy a license for each end product (web site) in which you wish to use the plugin
  2. the activation system has been disabled, so yes you can test the plugin in a demo site and then move to the production siste
  3. No specific tests have been performed with that payment gateway

can you offer licence for 1 day so that we can check for our payment gateway system. if it work properly we will definetly purchase this product.

I’m sorry, Envato license system doesn’t offer such an option.

If you however send me a private message (click on my name then use the low-right box) reporting your email, I reply with mine where you can send me that plugin. I can set up a demo site where you can test both plugin in action.

Buongiorno, Ho comprato il plugin per un sito di food delivery, molto utile come plugin, però mi da dei problemi, in specifico con metodo pagamento di stripe, mi è successo un paio di volte,(soprattutto nei casi in cui ho approve automatico) che quando un cliente fa un ordine e paga a me non arriva l’email del ordine, ed è un po’ problematico perchè poi non riusciamo a portarlo a termine in tempo, inoltre ho visto che se uno inserisce i dati della carta di credito sbagliati, l’ordine va sempre avanti, viene segnato approve anche se non effettivamente pagato, ed anche questo da problemi, potremmo sentirci grazie!

Si ma allora non si spiega perchè se uno inserisce dati a caso nella carta di credito, quindi non va rediretto nella pagina thank you, e non penso stripe lanci pagamento effettuato, allora l’ordine viene messo in approve automaticamente.

e succede solo con il plugin attivo ovviamente, quindi se avessi una idea del perchè ti sarei molto grato, poi a modificare codice ci penso io grazie

Mi dispiace, ma purtroppo non saprei come mai Stripe causa quel tipo di malfunzionamento. Prova ad aggiornare alla versione 6.1 del plugin dove ho implementato un ulteriore controllo sullo stato degli ordini.

Quel gateway sembra alterare il workflow di pagamento, cosa potrebbe interferire con le funzionalità del plugin. Non avendo pero progettato quel plugin, non saprei quale dei suoi componenti o workflow causano il malfunzionamento. Quello che ti posso è come funziona WooCommerce Order Approval e a quale actions si aggancia. Non escludo che quel plugin triggeri le actions alle quale l’Order Approval si aggancia anche quando non dovrebbe (questo spiegherebbe il comportamento anomalo da te riportato).

Per questo motivo è stato scritto il disclaimer che puoi leggere nel paragrafo. Note on 3rd party payment gateway plugins

I have used the plugin for a while now and have it dialed in for my needs however, I have a few customers that have discovered that the “approval / reject” link works multiple times for same order changing the status after the order is complete. Let me give a few examples

1. order comes in and is approved, we ship and complete order. A few days later the person that approves order reapproves the order changing order from complete to Approved which causes our shipping person to possible double ship the item.

2. order comes in and is approved, after order is shipped and changed to complete the approver goes back and rejects the order causing status to go from complete to rejected which could affect billing.

Is there a way to make it so once the order is at “complete” status that the approve/reject link would no longer be able to change the order status?

Hi,
for customers, you mean admin users, right? Because the approval order links are embedded only in the “new order” email sent to the admin user.

Please update the plugin to the latest 6.0. The approval links won’t change the order status once it hits the “approved” status! Give it a try and let me know!

Ok that did what I wanted. So now once an order is approved it becomes something that the approval link will not change again.

However….....

Now it seems that the site will not change the status unless you are logged in and it appears there is a permission that is needed to do this. I do have managers that i want to be able to approve the orders but not necessairly access the dashboard. Is there a limited permission to allow this?

Yes, that’s for security reasons and because the link redirects to the admin order details page, page for which WooCoommerce needs the user to be logged in order to access that page.

You can eventually try editing the Order.php file you fin in the classes\com and replace line 78 with
if(!$order || $order_key != $order->get_order_key() || $order->get_status() == 'completed')
In that way accessing the link should approve the order without logging (but woocommerce will ask you to log into the system if you wish to visit the page anyway).

I haven’t tested this modification, Give it a try anyway.

Hello,

I have a strange problem with this plugin (which I like very much).

I have used it for a couple of months now, in conjunction with Woocommerce Paypal and Stripe paiements gateways, and it worked like a charm.

Since two weeks, however, I have some strange problems all over my woocommerce website.

It started with emails notifications : when paid with Paypal or Stripe (standard Woocommerce gateways), the notification emails were not sent. I was able to understand why : workflow in the order changed (it skipped the “Processing” part, which trigger the order notification email). Also, the response, after paiement, from Paypal or Stripe (which inputs an order ID in the woocommerce order) was not received.

At first, I tought they were some compatibility problems with Stripe or Paypal (even though it worked well before).

But then I also had problem with my Yoast plugins wich seems now unable to connect to my website (and is completly unrelated to paiement gateways), and furthermore, my shipping company cannot connect anymore to my website to retrieve the orders via API (it worked before with no problem).

Those problems disappear when I deactivate the plugin.

I do not think there is a problem per se with the paiement gateways : somehow, when the plugin is active, Woocommerce API or webhooks seem impossible to reach from an external source (Yoast, Stripe, Paypal, my shipping company), it sort of blocks any incoming calls.

Thanks for your support,

Jeremy

Hi Jeremy,
It sounds very strange, because the plugin doesn’t implement any feature related to the WooCommerce API or webhooks that might be interfering.

Furthermore, it sounds very strange that it worked without any issue for months and suddenly it stopped without any alteration of its code.

I’ve performed some tests using the PayPal sandbox, and all seems working.
Without any further clue, it is quite hard to determine the cause and the suggest you a solution.

Please try eventually to enable the WordPress debug mode and debug log ( https://wp-staging.com/docs/enable-wordpress-debug-log-mode/ ). To do that just insert the following lines in the wp-config.php you find in the root you of your site:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
reperform the test and see if in the debug.log located in the wp-content folder are reported more clues.

Please make also sure you are running the latest 5.9 plugin version. Thank you.

Hello ! Thanks, I’ll do that and come back to you.

Hello, I bought your ‘Order approval module’. Here are purchase infos : f9da83e3-e203-4e8f-b6b5-0c34ff875d46 – 5 Jan 2022 REGULAR LICENSE

I encounters an issue while validating order when customer pays it by credit card. The whole process of payment by credit card operates very well, but when customer is send back to my woocommerce website, a message saying that order hasn’t been paid my credit card is displayed, therefore everything processed without any problem. In the Back Office, the concerned order records a ‘good’ payment, but it’s status is still ‘approved’. Or, I’d like this status to change to ‘pending’.

I don’t encounter this issue while paying my order by bankwire or chèque, only by CC.

I can give you all access to the website if needed. Let me know.

Best regards.

Romaric PIBOLLEAU, From Lyon, France.

indeed, I use your module with the setting ‘approval and pay’ selected. I am trying to study the payment gatway code to understand what happens when order is paid. Apparently, there is a get_transient function called, and that may be the central point of this issue. For your information, I use the plugin ‘woocommerce-gateway-atos2’. I think this plugin may be widely used in France.

Unfortuantely it seems that is not properly designed to manage payment performed in a second step.

Thank you however for reporting the name of the plugin, I’ll try performing some further investigation!

I’ll contact the module’s developer in order to know more about status change while payment is validated. We stay in touch !

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey