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

#   Durée de conservation des commandes

##

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

Less More

- Posts: 214
- Thank you received: 21
-

7 years 6 days ago -  7 years 6 days ago [\#312815](#312815) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  *[Durée de conservation des commandes](/forum/35-orders-management/898628-duree-de-conservation-des-commandes#312815 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.24 -- Browser(s) name and version -- : firefox 70.0.1  Hello, Is there a possibility to assign a maximum lifetime to the orderss? Under the DGMP, it would be convenient to be able to automate the task.  Thank you in advance  Bonjour, Y a t il une possibilités d'assigner une durée de vie maximum aux commandes? Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.  Merci d'avance")* was created by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.2.24
-- Browser(s) name and version -- : firefox 70.0.1

Hello,
Is there a possibility to assign a maximum lifetime to the orderss?
Under the DGMP, it would be convenient to be able to automate the task.

Thank you in advance

Bonjour,
Y a t il une possibilités d'assigner une durée de vie maximum aux commandes?
Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.

Merci d'avance

Last edit: 7 years 6 days ago by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5ODYyOC1kdXJlZS1kZS1jb25zZXJ2YXRpb24tZGVzLWNvbW1hbmRlcz90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

7 years 5 days ago [\#312818](#312818) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Durée de conservation des commandes](/forum/35-orders-management/898628-duree-de-conservation-des-commandes#312818 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.24 -- Browser(s) name and version -- : firefox 70.0.1  Hello, Is there a possibility to assign a maximum lifetime to the orderss? Under the DGMP, it would be convenient to be able to automate the task.  Thank you in advance  Bonjour, Y a t il une possibilités d'assigner une durée de vie maximum aux commandes? Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.  Merci d'avance")*

Hi,

Yes.
You can create a mass action like this:
[ monosnap.com/file/RP7UGrLXFLqod8yPK3UqFZq4KlyqNK](https://monosnap.com/file/RP7UGrLXFLqod8yPK3UqFZq4KlyqNK)
where X is to be replaced by the number of seconds of life you want to allow orders.
Make sure that the cron task is setup and working first:
[ www.hikashop.com/support/documentation/5...ashop-cron-task.html](https://www.hikashop.com/support/documentation/55-hikashop-cron-task.html)

The following user(s) said Thank You: [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")

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

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

Less More

- Posts: 214
- Thank you received: 21
-

7 years 5 days ago -  7 years 5 days ago [\#312844](#312844) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Durée de conservation des commandes](/forum/35-orders-management/898628-duree-de-conservation-des-commandes#312844 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.24 -- Browser(s) name and version -- : firefox 70.0.1  Hello, Is there a possibility to assign a maximum lifetime to the orderss? Under the DGMP, it would be convenient to be able to automate the task.  Thank you in advance  Bonjour, Y a t il une possibilités d'assigner une durée de vie maximum aux commandes? Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.  Merci d'avance")*

Thank you!
I had started looking at mass actions but I wouldn't have had the idea to express time in seconds!

Just a question : why order_invoice_created **&lt;** {time}-X instead of order_invoice_created **&gt;** {time}-X

That seems not intuitive ![:-)](/media/kunena/emoticons/3.png ":-)")

For cron task, no problem !

Thanks again!

Last edit: 7 years 5 days ago by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile").

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

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

Less More

- Posts: 214
- Thank you received: 21
-

7 years 5 days ago [\#312846](#312846) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Durée de conservation des commandes](/forum/35-orders-management/898628-duree-de-conservation-des-commandes#312846 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.24 -- Browser(s) name and version -- : firefox 70.0.1  Hello, Is there a possibility to assign a maximum lifetime to the orderss? Under the DGMP, it would be convenient to be able to automate the task.  Thank you in advance  Bonjour, Y a t il une possibilités d'assigner une durée de vie maximum aux commandes? Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.  Merci d'avance")*

Hi,
Just another question regarding cron task ans mass actions.
I have created a cron task on my server and a mass action for orders on my site -&gt;ok

But I want to create others mass actions regarging prices but I dont want to automate them.

Prices change regarding price of gold, so, this mass action has to be done manually after update of values.

So, does all the mass action be triggered by the same cron task ?

Regards
Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5ODYyOC1kdXJlZS1kZS1jb25zZXJ2YXRpb24tZGVzLWNvbW1hbmRlcz90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

7 years 4 days ago [\#312849](#312849) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Durée de conservation des commandes](/forum/35-orders-management/898628-duree-de-conservation-des-commandes#312849 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.24 -- Browser(s) name and version -- : firefox 70.0.1  Hello, Is there a possibility to assign a maximum lifetime to the orderss? Under the DGMP, it would be convenient to be able to automate the task.  Thank you in advance  Bonjour, Y a t il une possibilités d'assigner une durée de vie maximum aux commandes? Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.  Merci d'avance")*

Hi,

1. order_invoice_created is the number of seconds since 01/01/1970 up to the time the order was confirmed.
{time}-X is the the number of seconds since 01/01/1970 up to now minus a number of seconds.
So you want the orders older than {time}-X , hence the order_invoice_created&lt;{time}-X

2. The cron task you configure will trigger all the plugins and the mass action process every 15 minutes (or something else based on how you configured your cron task on your server).
Then, each plugin (and the mass action process for each mass action) will check if it needs to run or not.
So if the mass action is configured to run every minute, and that the cron task triggers every 15 minutes, the mass action will run every 15 minutes.
If the mass action is configured to run every day, and the cron task triggers every 15 minutes, the mass action will run once every day.
And if you don't set any trigger to the mass action, then it won't be triggered by the cron task at all and you'll have to click on the "process" button to trigger it manually.
Several mass actions can potentially be triggered at the same time at some point, but that's not necessarily the case. It really depends on how you configure them.

The following user(s) said Thank You: [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")

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

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

Less More

- Posts: 214
- Thank you received: 21
-

7 years 4 days ago [\#312866](#312866) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Durée de conservation des commandes](/forum/35-orders-management/898628-duree-de-conservation-des-commandes#312866 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.24 -- Browser(s) name and version -- : firefox 70.0.1  Hello, Is there a possibility to assign a maximum lifetime to the orderss? Under the DGMP, it would be convenient to be able to automate the task.  Thank you in advance  Bonjour, Y a t il une possibilités d'assigner une durée de vie maximum aux commandes? Dans le cadre de la RGPD, ce serait pratique de pouvoir automatiser la tache.  Merci d'avance")*

Thank you for your explanations !
All is clear now.

Regards,
Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50Lzg5ODYyOC1kdXJlZS1kZS1jb25zZXJ2YXRpb24tZGVzLWNvbW1hbmRlcz90bXBsPW1hcmtkb3du) 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.055 seconds

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