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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
checkout attributes - date
DanielŻuławski3bf46abb8b31
diff --git a/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml b/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtmlindex 80c69d898..ed2e86f6e 100644--- a/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml+++ b/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml@@ -79,10 +79,7 @@<textarea class="form-control" :id="'checkout_attribute_' + attribute.Id" :name="'checkout_attribute_' + attribute.Id" v-model="attribute.DefaultValue" :value="attribute.DefaultValue" onchange="checkoutAttributeChange()">{{attribute.DefaultValue}}</textarea></template><template v-if="attribute.AttributeControlType == 20">- <input id="dateDay" :name="'checkout_attribute_' + attribute.Id + '_day'" type="hidden" />- <input id="dateMonth" :name="'checkout_attribute_' + attribute.Id + '_month'" type="hidden" />- <input id="dateYear" :name="'checkout_attribute_' + attribute.Id + '_year'" type="hidden" />- <input type="date" class="form-control" v-model="vmorder.date" />+ <input :name="'checkout_attribute_' + attribute.Id" class="form-control" :value="attribute.DefaultValue" onchange="checkoutAttributeChange();" type="date" /></template><template v-if="attribute.AttributeControlType == 30"><template>diff --git a/src/Web/Grand.Web/Views/ShoppingCart/_ModelScript.cshtml b/src/Web/Grand.Web/Views/ShoppingCart/_ModelScript.cshtmlindex fc7a964f5..6dfc89da9 100644--- a/src/Web/Grand.Web/Views/ShoppingCart/_ModelScript.cshtml+++ b/src/Web/Grand.Web/Views/ShoppingCart/_ModelScript.cshtml@@ -6,7 +6,6 @@cart: @Json.Serialize(Model),totals: null,checkoutAsGuest: false,- date: null,// confirm orderMinOrderTotalWarning: null,TermsOfServiceOnOrderConfirmPage: null,@@ -25,22 +24,6 @@if (this.terms == true) {this.acceptTerms = false;}- },- date: function () {- var d = new Date(this.date);-- if (!!d.valueOf()) { // Valid date-- const day = d.getDate();- const month = d.getMonth();- const year = d.getFullYear();-- document.getElementById("dateDay").value = day;- document.getElementById("dateMonth").value = month;- document.getElementById("dateYear").value = year;-- checkoutAttributeChange();- }}},methods: {