Skip to content

Commit

Permalink
Merge pull request #23 from bagisto-europe/dev
Browse files Browse the repository at this point in the history
 Compatibility with Bagisto 2.*
  • Loading branch information
ghermans authored Jun 28, 2024
2 parents 056fef3 + cbecd81 commit 463f586
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 2 deletions.
Binary file modified docs/settings.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/Config/system.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[
'key' => 'catalog.inventory.notifications',
'name' => 'stocknotify::app.admin.section-title',
'info' => 'stocknotify::app.admin.section-info',
'sort' => 2,
'fields' => [
[
Expand All @@ -15,6 +16,7 @@
'name' => 'schedule',
'title' => 'stocknotify::app.admin.schedule',
'info' => 'stocknotify::app.admin.schedule-info',
'depends' => 'status',
'type' => 'select',
'options' => [
[
Expand All @@ -28,12 +30,14 @@
'value' => 'weekly',
]
],
'default' => 'daily',
'channel_based' => false,
], [
'name' => 'min-stock',
'title' => 'stocknotify::app.admin.min-stock',
'depends' => 'status',
'type' => 'text',
'default_value' => 0,
'default' => 0,
'channel_based' => false,
]
]
Expand Down
23 changes: 23 additions & 0 deletions src/Resources/lang/ar/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

return [
'admin' => [
'section-title' => 'إشعار المخزون',
'section-info' => 'تعيين الفاصل الزمني وحد المنتج لتنبيهات تحديث المخزون',
'status' => 'إرسال إشعار عندما تصل المنتجات إلى الحد الأدنى',
'schedule' => 'جدولة الإشعار',
'schedule-info' => 'متى يجب إرسال الإشعار؟',
'interval' => [
'hourly' => 'كل ساعة',
'daily' => 'يوميًا',
'weekly' => 'أسبوعيًا'
],
'min-stock' => 'حد المنتج الأدنى'
],

'mail' => [
'subject' => 'خدمات تقرير المخزون',
'dear-reader' => 'عزيزي القارئ',
'message' => 'في مرفقات هذا البريد الإلكتروني ستجد نظرة عامة على جميع المنتجات التي وصلت إلى حد المخزون الأدنى.'
]
];
23 changes: 23 additions & 0 deletions src/Resources/lang/de/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

return [
'admin' => [
'section-title' => 'Lagerbenachrichtigung',
'section-info' => 'Stellen Sie das Intervall und die Produktgrenze für Inventur-Update-Benachrichtigungen ein',
'status' => 'Benachrichtigung senden, wenn Produkte den Schwellenwert erreichen',
'schedule' => 'Benachrichtigung planen',
'schedule-info' => 'Wann soll die Benachrichtigung gesendet werden?',
'interval' => [
'hourly' => 'Stündlich',
'daily' => 'Täglich',
'weekly' => 'Wöchentlich'
],
'min-stock' => 'Produktschwelle'
],

'mail' => [
'subject' => 'Bestandsmeldedienst',
'dear-reader' => 'Sehr geehrter Leser',
'message' => 'Im Anhang dieser E-Mail finden Sie eine Übersicht aller Produkte, die den Bestandsschwellenwert erreicht haben.'
]
];
1 change: 1 addition & 0 deletions src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
return [
'admin' => [
'section-title' => 'Stock Notification',
'section-info' => 'Set the interval and product limit for inventory update alerts',
'status' => 'Send a notification when products reach the threshold',
'schedule' => 'Schedule notification',
'schedule-info' => 'When should the notification be sent?',
Expand Down
23 changes: 23 additions & 0 deletions src/Resources/lang/fr/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

return [
'admin' => [
'section-title' => 'Notification de Stock',
'section-info' => 'Définir l\'intervalle et la limite de produit pour les alertes de mise à jour d\'inventaire',
'status' => 'Envoyer une notification lorsque les produits atteignent le seuil',
'schedule' => 'Programmer la notification',
'schedule-info' => 'Quand la notification doit-elle être envoyée ?',
'interval' => [
'hourly' => 'Toutes les heures',
'daily' => 'Quotidien',
'weekly' => 'Hebdomadaire'
],
'min-stock' => 'Seuil de produit'
],

'mail' => [
'subject' => 'Services de Rapport d\'Inventaire',
'dear-reader' => 'Cher lecteur',
'message' => 'En pièce jointe de cet email, vous trouverez un aperçu de tous les produits ayant atteint le seuil d\'inventaire.'
]
];
3 changes: 2 additions & 1 deletion src/Resources/lang/nl/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
return [
'admin' => [
'section-title' => 'Voorraad Notificatie',
'section-info' => 'Stel het interval en de productlimiet in voor meldingen van voorraadupdates',
'status' => 'Stuur een melding wanneer producten de drempel bereiken',
'schedule' => 'Notificatie plannen',
'schedule-info' => 'Wanneer moet de notificatie worden verzonden?',
Expand All @@ -15,7 +16,7 @@
],

'mail' => [
'subject' => 'Voorraad rapportage',
'subject' => 'Voorraad rapport',
'dear-reader' => 'Geachte lezer',
'message' => 'In de bijlage van deze e-mail vindt u een overzicht van alle producten die de voorraaddrempel hebben bereikt.'
]
Expand Down

0 comments on commit 463f586

Please sign in to comment.