Skip to content

Commit

Permalink
[ADD] Order Management.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Feb 12, 2025
1 parent c92ae5f commit 1270881
Show file tree
Hide file tree
Showing 12 changed files with 630 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ of Evolution CMS for seamless and efficient **online commerce**.

## Features

- [ ] Order Management.
- [ ] Order Status Management.
- [x] Order Management.
- [x] Order Status Management.
- [x] Products Catalog.
- [x] Product position in each Category.
- [x] Products Types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,14 @@ public function up(): void
$table->jsonb('products')->default(new Expression('(JSON_ARRAY())'))->comment('Product list (JSON)');
$table->decimal('cost', 9, 2)->default(0)->comment('Total order amount');
$table->char('currency', 3)->default('USD')->comment('Currency cost this order');
$table->unsignedInteger('payment_status')->default(0)->comment('Payment status (0: pending, 1: completed, 2: failed, etc.)');
$table->unsignedInteger('status')->default(1)->comment('Order status (1: new)');
$table->boolean('is_quick')->default(false)->comment('Flag indicating if the order is a quick purchase');
$table->boolean('do_not_call')->default(false)->comment('"Do not call back" option');
$table->text('comment')->nullable()->comment('Comment on the order');
$table->string('lang', 10)->index()->default('base');
$table->jsonb('admin_notes')->default(new Expression('(JSON_ARRAY())'))->comment('Hidden comments (available only in admin panel)');
$table->jsonb('history')->default(new Expression('(JSON_ARRAY())'))->comment('History of changes');
$table->string('identifier')->unique()->comment('Unique order key (required by some payment systems)');
$table->timestamps();
});
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ of Evolution CMS for seamless and efficient **online commerce**.

## Features

- [ ] Order Management.
- [ ] Order Status Management.
- [x] Order Management.
- [x] Order Status Management.
- [x] Products Catalog.
- [x] Product position in each Category.
- [x] Products Types.
Expand Down
63 changes: 63 additions & 0 deletions lang/en/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"add" => "Add",
"add_attribute_help" => "Add a new attribute.",
"add_block" => "Add a block",
"add_comment" => "Add a comment...",
"add_currency" => "Add a currency",
"add_product" => "Add a product",
"add_product_help" => "Add a new product.",
Expand All @@ -13,6 +14,7 @@
"address" => "Address",
"after_sum" => "After the amount",
"all_products" => "All products",
"all_statuses" => "Усі статуси",
"alternative_text" => "Alternative text",
"are_you_sure" => "Are you sure?",
"as_filter" => "As a filter",
Expand Down Expand Up @@ -53,11 +55,15 @@
"changed_quantity" => "Quantity changed",
"cities" => "Cities",
"city_name" => "City name",
"client" => "Client",
"code" => "Code",
"comments_and_notes" => "Comments and notes",
"completed_orders" => "Completed",
"confirm_delete" => "Confirm deletion",
"confirm_duplicate" => "Confirm duplication",
"content" => "Content",
"courier" => "Courier",
"created" => "Created",
"currencies" => "Currencies",
"currencies_help" => "List of available store currencies and their relationship to each other",
"currencies_icon" => "fa fa-coins",
Expand All @@ -67,6 +73,7 @@
"currency_name_help" => "Currency name that can be displayed on the frontend if needed <strong><code>sCommerce::getCurrencies(['UAH'])->first()['name']</code></strong>",
"currency_price_configuration" => "Currency settings and price format",
"currency_symbol_help" => "The currency symbol is used to display the price.",
"customer_information" => "Customer information",
"deleted" => "Item deleted.",
"deleted_irretrievably" => "If you press the delete button, the item will be irretrievably deleted.",
"deliveries" => "Deliveries",
Expand All @@ -84,6 +91,7 @@
"finish_configuring" => "Finish configuring the module according to the <strong><a href=\"https://seiger.github.io/sCommerce/getting-started/\" target=\"_blank\">instructions</a></strong>.",
"gallery" => "File gallery",
"gallery_help" => "The first image of the gallery is used as a product preview. You can sort the images by moving them with the mouse.",
"history_changes" => "History of changes",
"height" => "Height",
"helptext" => "Help text",
"helptext_help" => "Description about this Attribute in adminpanel.",
Expand Down Expand Up @@ -126,16 +134,59 @@
"no_text" => "No text added",
"not_available" => "Not available",
"not_found" => "Not found",
"not_selected_or_unknown" => "Not selected or unknown",
"not_writable" => "The file ../core/custom/config/seiger/settings/sCommerce.php is not writable.",
"not_writable_currencies" => "The file ../core/custom/config/seiger/settings/sCommerceCurrencies.php is not writable.",
"on_order" => "On order",
"one_click" => "1 Click",
"only_display" => "only display",
"order" => "Order Details",
"order_cost" => "Order cost",
"order_currency" => "Order currency",
"order_help" => "View all order details, including customer information, products, statuses, and payment.",
"order_icon" => "fa fa-clipboard-list",
"order_number" => "Order number",
"order_status" => "Order status",
"order_status_canceled" => "Canceled",
"order_status_completed" => "Completed",
"order_status_confirmed" => "Confirmed",
"order_status_delivered" => "Delivered",
"order_status_deleted" => "Deleted",
"order_status_failed" => "Failed",
"order_status_management" => "Order status management",
"order_status_new" => "New",
"order_status_on_hold" => "On Hold",
"order_status_processing" => "Processing",
"order_status_packing" => "Packing",
"order_status_ready_for_shipment" => "Ready for Shipment",
"order_status_return_requested" => "Return Requested",
"order_status_returned" => "Returned",
"order_status_shipped" => "Shipped",
"orders" => "Orders",
"orders_help" => "Manage and view customer orders.",
"orders_icon" => "fa fa-shopping-cart",
"orders_on" => "Order",
"orders_on_help" => "Enable the functionality of orders on the site.",
"payment" => "Payment",
"payment_help" => "Editing payment parameters.",
"payment_icon" => "fa fa-university",
"payment_name" => "Payment method name",
"payment_information" => "Payment information",
"payment_status" => "Payment status",
"payment_status_awaiting_confirmation" => "Awaiting Confirmation",
"payment_status_authorized" => "Authorized",
"payment_status_canceled" => "Canceled",
"payment_status_disputed" => "Disputed",
"payment_status_expired" => "Expired",
"payment_status_failed" => "Failed",
"payment_status_paid" => "Paid",
"payment_status_partially_paid" => "Partially Paid",
"payment_status_partially_refunded" => "Partially Refunded",
"payment_status_pending" => "Pending Payment",
"payment_status_pending_verification" => "Pending Verification",
"payment_status_refund_requested" => "Refund Requested",
"payment_status_refunded" => "Refunded",
"payment_status_rejected" => "Rejected",
"payments" => "Payments",
"payments_help" => "List of available store payments and their settings.",
"payments_icon" => "fa fa-wallet",
Expand Down Expand Up @@ -179,6 +230,7 @@
"products" => "Products",
"products_help" => "List of all store products.",
"products_icon" => "fa fa-store-alt",
"products_in_order" => "Products in order",
"published_help" => "Mark to publish immediately after saving.",
"publisheds" => "Published",
"inventory" => "Quantity",
Expand All @@ -196,6 +248,8 @@
"reviews" => "Reviews",
"reviews_help" => "User reviews of your store's products.",
"reviews_icon" => "fa fas fa-grin-stars",
"shipping_cost" => "Shipping cost",
"shipping_information" => "Shipping information",
"search_among_attributes" => "Search among attributes",
"search_among_products" => "Search among products",
"settings" => "Settings",
Expand All @@ -209,15 +263,20 @@
"sortproducts" => "Sort by position",
"sortproducts_help" => "Sorting products by position in a category",
"sortproducts_icon" => "fa fa-sort",
"status" => "Status",
"sum" => "Sum",
"symbol" => "Symbol",
"system" => "System",
"text_block" => "Text block",
"technical_parameter_for_delivery" => "technical parameter of the product that can be taken into account during delivery.",
"title" => "Commerce",
"to_list_attributes" => "To list attributes",
"to_list_deliveries" => "To list deliveries",
"to_list_orders" => "To list orders",
"to_list_payments" => "To list payments",
"to_list_products" => "To list products",
"to_list_reviews" => "To list reviews",
"total_orders" => "Total orders",
"total_products" => "Total products",
"total_reviews" => "Total reviews",
"turned_off" => "turned off",
Expand Down Expand Up @@ -250,7 +309,10 @@
"type_subscription" => "Subscription",
"type_variable" => "Variable",
"type_virtual" => "Virtual",
"quantity" => "Quantity",
"unprocessed_orders" => "Unprocessed",
"unpublisheds" => "Unpublished",
"user_unknown" => "User unknown",
"value" => "Value",
"views" => "Views",
"views_on_help" => "Enable product views counter functionality.",
Expand All @@ -261,6 +323,7 @@
"weight" => "Weight",
"width" => "Width",
"with_id" => "With ID",
"working_orders" => "In Progress",
"you_sure" => "Are you sure?",
"you_sure_duplicate" => "Are you sure you want to duplicate?",
];
63 changes: 63 additions & 0 deletions lang/ru/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"add" => "Додати",
"add_attribute_help" => "Додати новий атрибут.",
"add_block" => "Додати блок",
"add_comment" => "Додати коментар...",
"add_currency" => "Додати валюту",
"add_product" => "Додати товар",
"add_product_help" => "Додати новий товар.",
Expand All @@ -13,6 +14,7 @@
"address" => "Адреса",
"after_sum" => "Після суми",
"all_products" => "Всі товари",
"all_statuses" => "Усі статуси",
"alternative_text" => "Альтернативний текст",
"are_you_sure" => "Ви впевнені?",
"as_filter" => "Як фільтр",
Expand Down Expand Up @@ -53,11 +55,15 @@
"changed_quantity" => "Кількість змінено",
"cities" => "Міста",
"city_name" => "Назва міста",
"client" => "Клієнт",
"code" => "Код",
"comments_and_notes" => "Коментарі та нотатки",
"completed_orders" => "Завершені",
"confirm_copy" => "Підтвердити копіювання",
"confirm_delete" => "Підтвердити видалення",
"content" => "Контент",
"courier" => "Кур'єр",
"created" => "Створено",
"currencies" => "Валюти",
"currencies_help" => "Список доступних валют магазину та їх відношення одна до одної.",
"currencies_icon" => "fa fa-coins",
Expand All @@ -67,6 +73,7 @@
"currency_name_help" => "Назва валюти, яку можна відобразити на фронтенд за потреби <strong><code>sCommerce::getCurrencies(['UAH'])->first()['name']</code></strong>",
"currency_price_configuration" => "Налаштування валют та формат ціни",
"currency_symbol_help" => "Символ валюти використовується для відображення ціни.",
"customer_information" => "Інформація про замовника",
"deleted" => "Запис видалено.",
"deleted_irretrievably" => "Якщо Ви натиснете кнопку видалити, елемент буде видалено безповоротно.",
"deliveries" => "Доставки",
Expand All @@ -84,6 +91,7 @@
"finish_configuring" => "Завершіть налаштування модуля згідно <strong><a href=\"https://seiger.github.io/sCommerce/getting-started/\" target=\"_blank\">інструкції</a></strong>.",
"gallery" => "Галерея файлів",
"gallery_help" => "Перше зображення галереї використовується в якості превю товара. Ви маєте можливість сортувати зображення шляхом їх переміщення мишкою.",
"history_changes" => "Історія змін",
"height" => "Висота",
"helptext" => "Довідковий текст",
"helptext_help" => "Опис цього атрибута в панелі адміністратора.",
Expand Down Expand Up @@ -126,16 +134,59 @@
"no_text" => "Текст не додано",
"not_available" => "Немає в наявності",
"not_found" => "Не знайдено",
"not_selected_or_unknown" => "Не обрано або не відомо",
"not_writable" => "Файл ../core/custom/config/seiger/settings/sCommerce.php не доступний для запису.",
"not_writable_currencies" => "Файл ../core/custom/config/seiger/settings/sCommerceCurrencies.php не доступний для запису.",
"on_order" => "Під замовлення",
"one_click" => "1 клік",
"only_display" => "лише відобразити",
"order" => "Деталі замовлення",
"order_cost" => "Вартість замовлення",
"order_currency" => "Валюта замовлення",
"order_help" => "Перегляд всіх деталей замовлення, включаючи інформацію про клієнта, товари, статуси та платіж.",
"order_icon" => "fa fa-clipboard-list",
"order_number" => "Номер замовлення",
"order_status" => "Статус замовлення",
"order_status_canceled" => "Скасовано",
"order_status_completed" => "Завершено",
"order_status_confirmed" => "Підтверджено",
"order_status_delivered" => "Доставлено",
"order_status_deleted" => "Видалено",
"order_status_failed" => "Помилка",
"order_status_management" => "Керування статусом замовлення",
"order_status_new" => "Нове",
"order_status_on_hold" => "На очікуванні",
"order_status_processing" => "В обробці",
"order_status_packing" => "Упаковка",
"order_status_ready_for_shipment" => "Готове до відправлення",
"order_status_return_requested" => "Запит на повернення",
"order_status_returned" => "Повернуте",
"order_status_shipped" => "Відправлено",
"orders" => "Замовлення",
"orders_help" => "Управляйте та переглядайте замовлення клієнтів.",
"orders_icon" => "fa fa-shopping-cart",
"orders_on" => "Замовлення",
"orders_on_help" => "Ввімкнути функціонал замовлень на сайті.",
"payment" => "Платіж",
"payment_help" => "Редагування параметрів платежа.",
"payment_icon" => "fa fa-university",
"payment_name" => "Назва платіжного методу",
"payment_information" => "Інформація про платіж",
"payment_status" => "Статус оплати",
"payment_status_awaiting_confirmation" => "Очікує на підтвердження",
"payment_status_authorized" => "Авторизовано",
"payment_status_canceled" => "Скасовано",
"payment_status_disputed" => "Спір",
"payment_status_expired" => "Термін дії закінчився",
"payment_status_failed" => "Не вдалося",
"payment_status_paid" => "Оплачено",
"payment_status_partially_paid" => "Частково оплачено",
"payment_status_partially_refunded" => "Частково повернуто",
"payment_status_pending" => "Очікує на оплату",
"payment_status_pending_verification" => "Очікує на перевірку",
"payment_status_refund_requested" => "Запит на повернення",
"payment_status_refunded" => "Повернуто",
"payment_status_rejected" => "Відхилено",
"payments" => "Платежі",
"payments_help" => "Список доступних оплат магазину та їх налаштування.",
"payments_icon" => "fa fa-wallet",
Expand Down Expand Up @@ -179,6 +230,7 @@
"products" => "Товари",
"products_help" => "Перелік всіх товарів магазину.",
"products_icon" => "fa fa-store-alt",
"products_in_order" => "Товари в замовленні",
"published_help" => "Відзначте, щоб опублікувати відразу після збереження.",
"publisheds" => "Опублікованих",
"inventory" => "Залишок",
Expand All @@ -196,6 +248,8 @@
"reviews" => "Відгуки",
"reviews_help" => "Відгуки користувачів щодо продуктів вашого магазина.",
"reviews_icon" => "fa fas fa-grin-stars",
"shipping_cost" => "Вартість доставки",
"shipping_information" => "Інформація про доставку",
"search_among_attributes" => "Пошук серед атрибутів",
"search_among_products" => "Пошук серед товарів",
"settings" => "Конфігурація",
Expand All @@ -209,15 +263,20 @@
"sortproducts" => "Сортування за позицією",
"sortproducts_help" => "Сортування товарів за позицією в категорії ",
"sortproducts_icon" => "fa fa-sort",
"status" => "Статус",
"sum" => "Сума",
"symbol" => "Символ",
"system" => "Система",
"technical_parameter_for_delivery" => "технічний параметр товару, який можна враховувати під час доставки.",
"text_block" => "Текстовий блок",
"title" => "Комерція",
"to_list_attributes" => "До списку атрибутів",
"to_list_deliveries" => "До списку доставок",
"to_list_orders" => "До списку замовлень",
"to_list_payments" => "До списку платежів",
"to_list_products" => "До списку товарів",
"to_list_reviews" => "До списку відгуків",
"total_orders" => "Загальна кількість замовлень",
"total_products" => "Загальна кількість товарів",
"total_reviews" => "Загальна кількість відгуків",
"turned_off" => "вимкнено",
Expand Down Expand Up @@ -250,7 +309,10 @@
"type_subscription" => "Підписка",
"type_variable" => "Варіативний",
"type_virtual" => "Віртуальний",
"quantity" => "Кількість",
"unprocessed_orders" => "Не оброблені",
"unpublisheds" => "Не опублікованих",
"user_unknown" => "Користувач не відомий",
"value" => "Значення",
"views" => "Перегляди",
"views_on_help" => "Ввімкнути функціонал підрахунку переглядів товару.",
Expand All @@ -261,6 +323,7 @@
"weight" => "Вага",
"width" => "Ширина",
"with_id" => "з ID",
"working_orders" => "В роботі",
"you_sure" => "Ви впевнені, що хочете видалити запис",
"you_sure_copy" => "Ви впевнені, що хочете скопіювати запис",
];
Loading

0 comments on commit 1270881

Please sign in to comment.