Code

Discussion on WooCommerce Order Approval

Discussion on WooCommerce Order Approval

Cart 532 sales

vanquish supports this item

Supported

340 comments found.

Hello.

I use the file approval plugin to wait for validation of the attachments before proceeding to payment. I would like to give the possibility to my clients to choose not to have to validate files. do you think you could add a checkbox or a checkbox on the order validation page, for example: “I wish to confirm my order automatically” (without file validation)

with the possibility for the administrator to customize the text at this location.

the order would then be approved automatically

a bit as if he was selecting a specific payment method.

with the possibility of not displaying this box if products of a certain category are in the basket.

good to you

clement jonathan

ok thanks, and do you think an automatic approval when all files are when all the fils are validate ? without confirmation and text custumize admin text ?

I’m sorry, both plugins are not designed for that :(

okay it’s too bad. the two used together are very complementary but it precisely misses a connection between the two …

good to you

Hi thisi is my purchse code 94089f98-e69d-4c96-8050-d556cc1b4d39. How can i disable price data from /checkout/order-received/ when i place ordere? I’m using the approval workflow type “wait for approval and pay” and i don’t want to show price because they may change before approval. I can’t do it with css because thera are no classes for “approval status” and thisi is the same page for the real paymente checkout where i want to show prices. Can you help me please? Thanks in advance

I’m sorry, but the plugin hasn’t such a feature to hide items price during the checkout process.

Hi ! Great plugin ! Just a question : Is it possible that when the customer pays (Stripe for example), the order status changes to Completed ? Because I can’t see a difference between an order thats has been approved but not paid, and an order approved AND paid. They appear both as “Approved” in the orders list.

Thank you very much. Cedric.

Hi Cedric,
for that you should contact the Payment gateway plugin developer. Usually, as an order has been paid should be marked as “Processing” or “On-Hold”.

That action, however, should be performed by the payment gateway. Unfortunately, WooCommerce doesn’t trigger any specific action after payment is performed. It exists the ‘woocommerce_payment_complete_order_status’ action, but it is not so reliable, because for example, in the case of PayPal, it is triggered even also when the payment is canceled.

So unfortuantely I haven’t any hook I can eventually suggest to use in order to assign a custom order status after the user paid an order :(

Hum I understand. I tried this : add_filter( ‘woocommerce_payment_complete_order_status’, ‘autocomplete_processing_orders’, 9999 );

function autocomplete_processing_orders() { return ‘completed’; }

It works, the order is set to completed for a second but then your plugin overwrites the status and set it again to “Approved”. Any advice ?

Or do you think there is just a way to differenciate “Approved but waiting payment” and “Approved and paid” orders ?

That would be great because in the list of orders it’s not easy to know if an order has been paid or not.

Unfortunately, there isn’t any way to know when an order has been properly paid for the reasons I’ve reported earlier.

The plugin doesn’t declare any handler for the ‘woocommerce_payment_complete_order_status’, so it sounds strange it is overriding the status.

What I can suggest is to see if that payment gateway is triggering any specific action after a payment has been properly completed, hook to it and then set the “completed” status.

Hello,

I would like to redirect to a certain page after the user clicks on the link to approve an order, to give the user a feedback in a short text”The order has been succesfully approved”.

Currently, if the user is not logged in they land at the login site and they are totally confused and have no idea if it worked or not. This makes it not suitable for business.

I believe the redirect should be build in the order.php of the plugin after the actions of the direct approval.

Could you please let us know in which part we would need to build it and how it would be?

Would you consider to add something like this in the plugin? has this issue been raised before?

Hi,
regarding the email customizer, in the description page, in the “email notification” paragraph is clearly reported that the plugin hasn’t any support for 3rd party plugin and that it is using the standard template reporting the procedure on how eventually.

Regarding the language, the language, note that the plugin only support WPML. You can customize the email content through the “Texts -> Emails” menu. Just switch language using the WPML language selector and enter the content. The plugin will then load the email content according language code assigned by WPML to the order when it was placed.

The plugin doesn’t support any other localization plugin.

Thanks for your response.

The fact is that the customizer plugin, as probably all other customizer plugins, does support your plugin. Thats not the issue here. If the order is approved in the backend it works perfectly and the styles are applied. Its fantastic.

However, if the order is approved via the link in the email, something different happens and the templates are not applied.

So the key to solve this is to understand why one method of doing the same thing works and the other one not. A good start would be to understand the differences between both methods. What does one that the other does not?

We need to solve this, and I believe the issue resides in this plugin. We are also willing to pay to get this solved, so you could really do us a quotation or work on the hour, however, we need to get this solved.

Looking forward to hearing from you

Unfortunately, I’m not able to say which can be the cause. I can however explain the workflow the plugin follows when the approval link is clicked.

When you click the approval link, the request is processed by the check_direct_approval_request_and_other() function defined at line 67 in the Order.php (classes\com) component.

That function just sets the order status via the native set_status method ( https://docs.woocommerce.com/wc-apidocs/source-class-WC_Order.html#245-274 ).

That method should trigger the ‘woocommerce_order_status_changed’ action. That action is handled by the plugin in the Email_Manager.php (classes\com) by the order_status_changed() function at line 38. That function just checks if the current order status is amount the ones for which the notification is allowed and then eventually sends the email. This mechanism is exactly the same inoked when the order status is changed via the admin order page.

I hope that this may give some more clues.

Hello,

I do not know what modification you made to the plugin, but the mollie payment platform is now working properly.

I also use your other plugin, file approval, Do you think it would be possible to ensure that when a customer has approved all the files sent to him, the order is automatically validated?

good to you

perhaps with a confirmation page which summarizes all the validated files, in case customers have validated one of them by mistake.

example:

your order is about to be approved, here is the summary of the validated files, please confirm that everything is correct in order to continue.

here a checkbox “by validating these files I declare that I have verified that all the information complies with my request” or other editable text in admin

confirmation button

good to you

Hi,
for now, there isn’t any plan for such a feature, however, thank you for suggesting. I’ll do my best for a future release!

Everything is working perfect but i have 2 things I am trying to modify and cant seem to find where they are referred.

1. is there a way to turn off the “your order has been approved” for only auto approved orders

2. When they click on the Approve/Deny email is there a way to redirect them somewhere specific? With security on the site it routs to the loginpress page and i was wanting to redirect it to a image out of the media library so it takes them somewhere with a confirmation.

Thanks in advance for any direction on this!

Hi,
  1. Maybe yes. Please edit the Order.php file you find in the classes\com folder and on line 361 and 396 replace the “true” string, with “false”. It should look like: https://www.dropbox.com/s/lieen6d21jrnl1k/wcoa_custom_2.jpg?dl=0 . It should prevent some actions to be fired by WooCommerce when setting the status so the notification should not be triggered. Let me know if it works, I can include an option for that in the next release
  2. Approval link are generated in the Email_manager.php file located in the classes\com folder at line 150 and 151. The plugin just generate a direct link to the admin order edit page. If, however, the user is not logged, WordPress automatically redirects to the login page. Once logged, you should be redirected into the admin order page. If you wish to customize those like, just edit those variables. The $approval_link holds the link to approve the order and the to reject it

Hi,

1. I changed the 2 lines from “true” to “false” at 361 and 396 and still it get the confirmation of the order, and the your order has been approved for automatic approval.

below is the 2 lines verbose to double check: 361: $order->update_status(!$automatic_approval_coupon && !$automatic_approval_payment_gateway && !$automatic_approval_shipping_method && !$automatic_approval_by_products ? ‘approval-waiting’ : ‘approved’, ’’, false)

396: $order->update_status(!$automatic_approval_coupon && !$automatic_approval_payment_gateway && !$automatic_approval_shipping_method && !$automatic_approval_by_products ? ‘approval-waiting’ : ‘approved’, ’’, false);

2. I understand what line 150/151 is accomplishing with its query but i don’t see how to use that to do what i want. The media library on the site does not require login and is easily addressed with a permalink. I want the user (not a shop manager or admin) when clicking on the approve or reject link to go to a jpeg out of the media library. Seeing how it uses a key and has to reference the post id now I’m not entirely positive that this would work but you are defiantly smarter in this department than I.

  1. ok, no problem. Please update the plugin to the latest 3.6 version I’ve just released. It now implements a mechanism that avoids approval notification for automatically approved order after the checkout has been completed. In case you wish to restore the old behavior, you find an option in the Options menu
  2. Yes the plugin requires a key in order to recognize the fact that an “order approval” request has ben performed via an URL request and then change the order status. That mechanism is managed in the Order.php file located in the classes\com folder at line 67 by the check_direct_approval_request_and_other method. You can try eventually modify the link generation according to your needs (by editing the file I’ve reported in the previous comment) and the link process in order to change the order status by editing the check_direct_approval_request_and_other() method

I hope this helps!

Meanwhile, I would like to 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 and I would reeeeeeally appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Hello, is your plugin working with WCFM Marketplace or another marketplace plugin ? I want to use it for food delivery website

Hello,
the plugin hasn’t any specific support for those kind of plugins.

I am using roles to send the “new order” email to department managers but Is there a way to have the site admin or an additional address copied on the “your order was approved” email send back to the customer so our fulfillment group knows when to ship the order?

Hi,
for that kind of purpose you can try editing the Email_Manager.php file located in the classes\com folder.

Add to the $recipients at line 56 the email address to which you whish to send the copy. for example:
$recipients .= ", admin@email.com";

This should do the job!

Worked Perfect, Thank you

Hello,

I have installed the plugin with the order first and then pay after approval option. When the customer receives an email that their order has been approved is there a link which I can put on there so they can then be taken to the payment page. I have a usecase where a customer will order and I might not approve for a few hours and they will not still have the approval web page open.

Thanks,

Philip

I’ve just found the answer myself so please ignore. Shortcode to use: [payment_page_url] for those that need to know…

No problem! :)

Have a great day! :)

P.S.
If you enjoymy plugin please consider leaving the 5 stars, it would help me with sales and I would reeeeeally appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Hi, I bought your Woocommerce Order Approval plugin. I set Wait for Approval and pay, but when I conclude an order, it sets automatically the order as approved and paid, and I set no Automatic approval. Could you please help me? Thank you

I see you enabled the option to automatically approve according the shipping method (shipped to italy). I see the order has been shipped in italy.

I think that that may be the cause of the automatic approval of the order!

Ops. I didn’t see it. Sorry Thank you.

Should the customer receive a confirmation e-mail after I approve the order? Do I have to enable it somewhere?

Thanks

No problem!! :)

yes, once approved the plugin sends a notification email. The text can be customized in the Texts -> Email tab.

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

Hey, I’m using a multivendor plugin called Dokan. On my vendor’s order list, the custom status this plugin adds (Accepted, Rejected, Waiting for Approval) are not shown. Is there a way I can replace those status by some default of Woocommerce (for example, instead of Accepted, it changes to Processing, and instead of Rejected, it changes to Cancelled)?

Hi,
to ask for support you need to use an account with a valid purchase and support license associated with.

Hey Vanquish, Are you available to do some custom work? Thanks!

I’m really sorry, I do not offer such service :(

Fair enough, it was just for the code you gave me though, would that be ok?? :)

Hi So is there another status and notification when thé customer pay with the link he has received ? Thanks

on hold order: https://www.dropbox.com/s/hszj7ocstgulce7/wcoa_paid.jpg?dl=0

order notes: https://www.dropbox.com/s/gwabzylmo3d62e0/wcoa_statuses.jpg?dl=0

Usually, the payment gateways do not send any email to notifiy that action. That aspect however depends on the payment gateway, not on the Order Approval plugin.

yes, the payment gateway sets that status.

Report: For wait approval and pay : When order have been approved, the order not yet visible on customer order list unless set status as “waiting payment” and customer can go to payment page.

i use more than 35 plugin, i will check it

Hi, this is the plugin prevent order to dispayed unless set status as “waiting payment”

https://wordpress.org/plugins/plugin-organizer/

May this information help to another, thank you

Thank you for reporting the result of your investigation!

Hello

can i use hooks for performing a php script after the customer pays the order?

If yes what are the hooks?

I’m sorry, the plugin hasn’t such feature.

maybe the woocomerce default hooks for order status? the plugin is using those? i mean if the order is paid the status is changing to what?

The order status change is not managed by the plugin but by the payment gateway. The plugin doesn’t alter the order status after the payment is performed.

Hi, can orders that are paid with by coupon get automatic approval?

Hi!

please remember the rating! It would help me with sales and I would really really appreciate!!! :)

Good news, I’ve released the new 3.5 version that now allows to automatic approve order if a coupon is applied.

You find the option while configuring the coupon: https://www.dropbox.com/s/mvhs10ybr0wvgak/wcoa_coupon_option.jpg?dl=0

I hope you enjoy! If so, remember to leave the 5 stars! It would help me a lot!

Hi!

Please remember the rating, it would help me with sales and I would really appreciate!! :)

Dear Support,

I’m interested if is possible modify text of the Heading of first mail that say that order was accepted.

Because I have see that is possibile modify the other heading but not this.Thanks

Hi,
to which “order accepted” email are you refering? if is the one sent by WooCommerce after an order has been placed, you can customized through the native settings menu: Woocommerce -> Settings -> Emails.

You will find the list of the notification emails WooCommerce sends. Edit the ones you need and customize the Heading with the text you wish!!

Hi there,

I had a question regarding the vanquish app. I am trying to create a process in woo-commerce that would allow users to send to their managers for approval.

Does this app provide this?

I’m sorry, the plugin is not designed to work in that way

It’s compatible with WCFM marketplace plugin?

The plugin hasn’t any particular support for the WCFM plugin and its features.

Hi,

With the option pay and then approve. no money is taken from customer until we have actively approved an order? if we go on to reject and order payment definitely isnt taken yes? just wanted to confirm

I’m sorry the plugin hasn’t any features to alter the payment gateway behavior.

If an order has been paid, the plugin hasn’t any feature to eventually take money only after an order is approved.

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