Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

custom attributes - dropdown selector

DanielŻuławski59d783295f6b
diff --git a/src/Web/Grand.Web/Views/Account/Info.cshtml b/src/Web/Grand.Web/Views/Account/Info.cshtml
index 96df2ba23..68f4e20b7 100644
--- a/src/Web/Grand.Web/Views/Account/Info.cshtml
+++ b/src/Web/Grand.Web/Views/Account/Info.cshtml
@@ -603,6 +603,9 @@
if (itemValue.IsPreSelected)
{
<text>customer_attribute_</text> @item.Id <text>: '@itemValue.Id',</text>
+ break;
+ } else {
+ <text>customer_attribute_</text> @item.Id <text>: '',</text>
}
}
}
diff --git a/src/Web/Grand.Web/Views/Account/Register.cshtml b/src/Web/Grand.Web/Views/Account/Register.cshtml
index 32e851342..fb25d1aa5 100644
--- a/src/Web/Grand.Web/Views/Account/Register.cshtml
+++ b/src/Web/Grand.Web/Views/Account/Register.cshtml
@@ -542,6 +542,9 @@
if (itemValue.IsPreSelected)
{
<text>customer_attribute_</text> @item.Id <text>: '@itemValue.Id',</text>
+ break;
+ } else {
+ <text>customer_attribute_</text> @item.Id <text>: '',</text>
}
}
}
diff --git a/src/Web/Grand.Web/Views/Shared/_CreateOrUpdateAddress.cshtml b/src/Web/Grand.Web/Views/Shared/_CreateOrUpdateAddress.cshtml
index e89f74bc1..56a78ba8d 100644
--- a/src/Web/Grand.Web/Views/Shared/_CreateOrUpdateAddress.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/_CreateOrUpdateAddress.cshtml
@@ -315,6 +315,9 @@
if (itemValue.IsPreSelected)
{
<text>address_attribute_</text> @item.Id <text>: '@itemValue.Id',</text>
+ break;
+ } else {
+ <text>address_attribute_</text> @item.Id <text>: '',</text>
}
}
}
@@ -329,6 +332,8 @@
if (itemValue.IsPreSelected)
{
<text>'@itemValue.Id',</text>
+ } else {
+ <text>'',</text>
}
}
],</text>