[Skip to main content](#vessel-content)

#   Automatically confirm an order

##

- **[frik](/forum/user/52036-frik "View frik's Profile")**
- [![frik's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52036-frik "View frik's Profile") Topic Author
- [ Offline](/forum/user/52036-frik)

Less More

- Posts: 41
- Thank you received: 2
-
-

5 years 6 months ago [\#331859](#331859) by [frik](/forum/user/52036-frik "View frik's Profile")  *[Automatically confirm an order](/forum/27-checkout/902411-automatically-confirm-an-order#331859 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Google Chrome 89.0.4389.128  Dear developers,  My question is that is there any way to automatically confirm an order if the selected shipping method was &quot;Pickup at our store&quot; ? Also we would like to notify the customer in that confirmation e-mail that they can get their items instantly after they received that e-mail. Is there any way to do this?  Thanks for your help in advance, Regards, FRIK")* was created by *[frik](/forum/user/52036-frik "View frik's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Google Chrome 89.0.4389.128

Dear developers,

My question is that is there any way to automatically confirm an order if the selected shipping method was "Pickup at our store" ? Also we would like to notify the customer in that confirmation e-mail that they can get their items instantly after they received that e-mail. Is there any way to do this?

Thanks for your help in advance,
Regards,
FRIK

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjQxMS1hdXRvbWF0aWNhbGx5LWNvbmZpcm0tYW4tb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

5 years 6 months ago [\#331862](#331862) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Automatically confirm an order](/forum/27-checkout/902411-automatically-confirm-an-order#331862 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Google Chrome 89.0.4389.128  Dear developers,  My question is that is there any way to automatically confirm an order if the selected shipping method was &quot;Pickup at our store&quot; ? Also we would like to notify the customer in that confirmation e-mail that they can get their items instantly after they received that e-mail. Is there any way to do this?  Thanks for your help in advance, Regards, FRIK")*

Hi,

Yes.
You need to do 2 things:
- edit your existing payment methods and use the "shipping methods" setting to select all the shipping methods besides the "pickup at our store" one.
- create a new payment method of the type "collect on delivery" and in its "shipping methods" setting, select that "pickup at our store" shipping method. Then, in the settings of that payment method, you can set the "order status" to "confirmed" and activate the "Order status notification" setting. That way, the orders with that payment method will get confirmed automatically and the order status notification email will be sent to the customer automatically too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjQxMS1hdXRvbWF0aWNhbGx5LWNvbmZpcm0tYW4tb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[frik](/forum/user/52036-frik "View frik's Profile")**
- [![frik's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52036-frik "View frik's Profile") Topic Author
- [ Offline](/forum/user/52036-frik)

Less More

- Posts: 41
- Thank you received: 2
-
-

5 years 6 months ago [\#331968](#331968) by [frik](/forum/user/52036-frik "View frik's Profile")  Replied by *[frik](/forum/user/52036-frik "View frik's Profile")* on topic *[Automatically confirm an order](/forum/27-checkout/902411-automatically-confirm-an-order#331968 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Google Chrome 89.0.4389.128  Dear developers,  My question is that is there any way to automatically confirm an order if the selected shipping method was &quot;Pickup at our store&quot; ? Also we would like to notify the customer in that confirmation e-mail that they can get their items instantly after they received that e-mail. Is there any way to do this?  Thanks for your help in advance, Regards, FRIK")*

Thank you Nicolas, it worked fine!

One more question: Can I add a delay to the outgoing confirmation e-mail? Customers receive instantly the creation and confirmation e-mails and that can be a little confusing for them that we have already confirmed their purchase in seconds.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjQxMS1hdXRvbWF0aWNhbGx5LWNvbmZpcm0tYW4tb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

5 years 6 months ago [\#331969](#331969) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Automatically confirm an order](/forum/27-checkout/902411-automatically-confirm-an-order#331969 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Google Chrome 89.0.4389.128  Dear developers,  My question is that is there any way to automatically confirm an order if the selected shipping method was &quot;Pickup at our store&quot; ? Also we would like to notify the customer in that confirmation e-mail that they can get their items instantly after they received that e-mail. Is there any way to do this?  Thanks for your help in advance, Regards, FRIK")*

Hi,

I see two ways to do it:
- in the System&gt;Emails menu, you can edit the "order status notification" email which is sent to the customer when an order is confirmed. And in it, you can use the PHP sleep function to stop the processing of the page for a while ( [ www.php.net/manual/en/function.sleep.php](https://www.php.net/manual/en/function.sleep.php) ).
So technically, it is possible.
However, there are several limitations to that:
1. you will hit the "max execution time" limit of your php.ini (which is 60 seconds by default).
2. the page which will send the email will be postponed too so the user will see the end page take a lot of time to display.

- An alternative would be to create an extra order status (via the System&gt;Order statuses) and use that order status in the "collect on develiery" payment method setting and turn off the user notification there. Then, in System&gt;Mass actions, you could create a mass action with a trigger "every hour" with a filter on the order_status column being equal to that new order status and an action "change the order status" to "confirmed" with the user notification checkbox checked. You also need to make sure that your cron task is setup: [ www.hikashop.com/support/documentation/5...ashop-cron-task.html](https://www.hikashop.com/support/documentation/55-hikashop-cron-task.html)
That way, the user won't be notified directly. And every hour, the mass action will check the orders in that order status and automatically change the order status of these orders to "confirmed" and send the email to the user.
Alternatively, if you have control on the email sending server, you could configure a rule to delay the sending of such emails.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjQxMS1hdXRvbWF0aWNhbGx5LWNvbmZpcm0tYW4tb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
