Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PT-13757: add missing localization strings #382

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/VirtoCommerce.OrdersModule.Core/ModuleConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ public static class General
DefaultValue = false,
};

public static SettingDescriptor CreateAnonymousOrder { get; } = new SettingDescriptor
{
Name = "Order.CreateAnonymousOrder.Enable",
ValueType = SettingValueType.Boolean,
GroupName = "Orders|General",
DefaultValue = true
};

public static IEnumerable<SettingDescriptor> AllSettings
{
get
Expand All @@ -264,6 +272,7 @@ public static IEnumerable<SettingDescriptor> AllSettings
yield return CustomerOrderValidation;
yield return OrderPaidAndOrderSentNotifications;
yield return PaymentShipmentStatusChangedNotifications;
yield return CreateAnonymousOrder;
}
}
}
Expand All @@ -276,6 +285,7 @@ public static IEnumerable<SettingDescriptor> StoreLevelSettings
yield return General.OrderPaymentInNewNumberTemplate;
yield return General.OrderShipmentNewNumberTemplate;
yield return General.RefundNewNumberTemplate;
yield return General.CreateAnonymousOrder;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@
"description": "Incoming payment statuses",
"title": "Payment statuses"
},
"Refund.Status": {
"title": "Refund statuses",
"description": "Refund statuses"
},
"Order.CustomerOrderNewNumberTemplate": {
"description": "This template will be used to generate the ID for a new Customer Order. Parameters: 0: Date and time (UTC) the ID was generated at, 1: Order ID",
"title": "Order ID template"
Expand All @@ -448,6 +452,10 @@
"description": "This template will be used to generate the ID for a new incoming Payment. Parameters: 0: Date and time (UTC) the ID was generated at, 1: Order ID",
"title": "Order payment ID template"
},
"Order.RefundNewNumberTemplate": {
"description": "This template will be used to generate the ID for a new order Refund. Parameters: 0: Date and time (UTC) the ID was generated at, 1: Order ID",
"title": "Order refund ID template"
},
"Order.SendOrderNotifications": {
"description": "Sends a notification when the order status changes",
"title": "Enable notifications for orders"
Expand Down Expand Up @@ -479,6 +487,10 @@
"Order.PaymentShipmentStatusChangedNotifications.Enable": {
"title": "Use payments/shipments status changed notifications",
"description": "Use for payments/shipments status change notifications"
},
"Order.CreateAnonymousOrder.Enable": {
"title": "Allow anonymous users to create orders",
"description": "This setting is store level."
}
},
"module": {
Expand Down
Loading