How to auto delete no completed orders

  • Posts: 93
  • Thank you received: 3
11 years 8 months ago #167554

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3

Hi,
The system creates a lot of orders that never get completed and stay at status created. My customer has asked that and orders in this status after 1 month get automatically deleted. Is this possible or is there another way to handle these.


Thanks


Tony

Please Log in or Create an account to join the conversation.

  • Posts: 26337
  • Thank you received: 4065
  • MODERATOR
11 years 8 months ago #167593

Hi,

HikaShop have a plugin to automatically cancel the order which are still "created" after a certain time.
It's a plugin that you can use in order to not have "created" orders ; they will be cancelled.

After that, to delete some order after 1 month (or another time), it will require a specific custom plugin which will use the HikaShop cron trigger (to be called automatically every day) and which will delete the unwanted orders.
It requires some PHP/development skills.
www.hikashop.com/support/support/documen...r-documentation.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 5
5 years 11 months ago #319098

Jerome wrote: Hi,
HikaShop have a plugin to automatically cancel the order which are still "created" after a certain time.
It's a plugin that you can use in order to not have "created" orders ; they will be cancelled.


what plugin is this exactly?

Please Log in or Create an account to join the conversation.

  • Posts: 85492
  • Thank you received: 13978
  • MODERATOR
5 years 11 months ago #319099

Hi,

The plugin is called "Hikashop Orders Automatic Cancel Plugin" and you can configure it via the Joomla plugins manager. Note that it requires that you first setup your cron under the Cron tab of the Hikashop configuration:
www.hikashop.com/support/documentation/5...ashop-cron-task.html

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
  • Hikashop Business
1 month 1 week ago #370705

Hallo Zusammen,

gibt es inzwischen ein Plugin, das abgebrochene oder stornierte Bestellungen nach einer gewissen Zeit auch löscht?

Viele Grüße - Harald

Please Log in or Create an account to join the conversation.

  • Posts: 85492
  • Thank you received: 13978
  • MODERATOR
1 month 1 week ago #370707

Hi,

No, you don't need a plugin for this.
Once you've configured the plugin called "Hikashop Orders Automatic Cancel Plugin" via the Joomla plugins manager to cancel the orders after some time, you can create a mass action via the menu System>Mass action with a trigger "every day", a filter on the order status being equal to "cancelled", and an action "delete the elements".
Then, make sure the cron task is configured and running:
www.hikashop.com/support/documentation/5...ashop-cron-task.html
The mass action will then delete the newly cancelled orders once every day.

The following user(s) said Thank You: haraldundandrea

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
  • Hikashop Business
2 weeks 9 hours ago #371403

Hallo Nicolas,

ich versuche gerade eine geeignete Massenaktion zu erstellen.

Aktuell lasse ich mir die Bestellungen zuerst nur anzeigen.

Ich habe noch Schwierigkeiten einen geeigneten Filter einzurichten.

Ich möchte Bestellungen löschen, wenn

=> der Bestellstatus storniert ist (hier habe ich Bestellstatus Storniert gefunden, ich denke das ist so richtig)

=> keine Kundendaten eingegeben wurden: welches Feld eignet sich dafür, in welcher Feldgruppe finde ich das entsprechende Feld und wie muss der Filter dafür dann aussehen?

=> die Bezahlungsart PayPal Express ist: in welcher Feldgruppe bzw. welchem Feld finde ich die Bezahlungsart? Kann ich nach Bestellungen filtern, die mit PayPal Express erstellt wurden?

Ich hoffe Du kannst mir helfen, einen geeigneten Filter zu finden, damit ich keine falschen Bestellungen lösche.

Viele Grüße - Harald

Last edit: 2 weeks 9 hours ago by haraldundandrea.

Please Log in or Create an account to join the conversation.

  • Posts: 85492
  • Thank you received: 13978
  • MODERATOR
1 week 6 days ago #371404

Hallo Harald,

Ja, der Filter auf den Bestellstatus "Storniert" ist richtig.

Fuer die anderen beiden Filter muessen Sie den Filtertyp "Bestell-Spalte" (Order column) verwenden:

1. Keine Kundendaten: Erstellen Sie einen Filter vom Typ "Bestell-Spalte", waehlen Sie das Feld `order_user_id` und setzen Sie den Operator auf `=` mit dem Wert `0`. Bestellungen ohne Kundenkonto haben eine User-ID von 0.

2. Zahlungsart PayPal Express: Erstellen Sie einen weiteren Filter vom Typ "Bestell-Spalte", waehlen Sie das Feld `order_payment_method` und setzen Sie den Operator auf `=` mit dem Wert `paypalexpress`. Sie koennen den genauen Wert in einer bestehenden Bestellung im Reiter "Allgemein" unter "Zahlungsart" nachschauen.

Vergessen Sie nicht, zuerst mit der Aktion "Ergebnisse anzeigen" zu testen, bevor Sie die Loesch-Aktion aktivieren, damit Sie sehen koennen, welche Bestellungen betroffen sind.

The following user(s) said Thank You: haraldundandrea

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
  • Hikashop Business
1 week 6 days ago #371414

Hallo Nicolas,

der Filter scheint jetzt zu stimmen.

Ist Elemente löschen dann der richtige Vorgang, um die ausgewählten Bestellungen zu löschen?

Viele Grüße - Harald

Please Log in or Create an account to join the conversation.

  • Posts: 85492
  • Thank you received: 13978
  • MODERATOR
1 week 5 days ago #371415

Hallo Harald,

Ja, "Elemente loeschen" ist die richtige Aktion, um die ausgewaehlten Bestellungen dauerhaft zu loeschen. Stellen Sie einfach sicher, dass Sie vorher mit "Ergebnisse anzeigen" getestet haben, damit nur die richtigen Bestellungen betroffen sind.

The following user(s) said Thank You: haraldundandrea

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
  • Hikashop Business
1 week 5 days ago #371430

Hallo Nicolas,

es scheint soweit jetzt alles zu funktionieren. Nach dem letzten Backup kamen bisher keine Bot-Bestellungen mehr dazu.

Ich habe die Massenaktion jetzt so eingestellt, dass einmal täglich bis zu 500 entsprechende Bestellungen gelöscht werden.

Neue, unvollständige Bestellungen setze ich erst nach 14 Tagen auf storniert, damit ich nicht versehentlich eine Bestellung lösche, die doch noch, z.B. per Überweisung oder manuell per PayPal bezaht wird. So haben Kunden bei Bedarf auch noch die Möglichkeit Kontakt aufzunehmen, falls sie Schwierigkeiten mit ihrer Bestellung haben/hatten.

Viele Grüße - Harald

Please Log in or Create an account to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum