Bug - No localization of labels in Admin>Modules>OrderDetails.ascx: Order Info panel (1.40)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
The Order Info panel in 1.4 is missing all the localization resource strings. Consequently, all of the lables have no text. The strings exist in the resource table but the text property is not defined on the page.

Unless there is a fix already in for this, I will post the fixed code here.
14 years ago
The following is line 19 through line 258 fixed with the strings added:

    <ajaxToolkit:TabPanel runat="server" ID="pnlOrderInfo" HeaderText="<% $NopResources:Admin.OrderDetails.OrderInfo %>">
        <ContentTemplate>
            <table class="adminContent">
                <tr>
                    <td class="adminTitle">
                        <strong>
                            <nopCommerce:ToolTipLabel runat="server" ID="lblOrderStatusTitle" Text="<%$ NopResources:Admin.OrderDetails.OrderStatus %>"
                            ToolTipImage="~/Administration/Common/ico-help.gif" ToolTip="<%$ NopResources:Admin.OrderDetails.OrderStatus.ToolTip %>" />
                        </strong>
                    </td>
                    <td class="adminData">
                        <b>
                            <asp:Label ID="lblOrderStatus" runat="server"></asp:Label></b>&nbsp;
                        <asp:Button ID="CancelOrderButton" runat="server" CssClass="adminButton" Text="<%$ NopResources:Admin.OrderDetails.CancelButton.Text %>"
                            OnClick="CancelOrderButton_Click" CausesValidation="False"></asp:Button>
                        <ajaxToolkit:ConfirmButtonExtender ID="ConfirmCancelOrderButtonExtender" runat="server"
                            TargetControlID="CancelOrderButton" DisplayModalPopupID="ModalPopupExtenderCancelOrder" ConfirmText="" Enabled="True" />
                        <br />
                        <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderCancelOrder" runat="server"
                            TargetControlID="CancelOrderButton" PopupControlID="pnlCancelOrderPopup" OkControlID="cancelOrderButtonOk"
                            CancelControlID="cancelOrderButtonCancel" BackgroundCssClass="modalBackground" DynamicServicePath="" Enabled="True" />
                        <asp:Panel ID="pnlCancelOrderPopup" runat="server" Style="display: none; width: 250px;
                            background-color: White; border-width: 2px; border-color: Black; border-style: solid;
                            padding: 20px;">
                            <div style="text-align: center;">
                                <br />
                                <br />
                                <asp:Button ID="cancelOrderButtonOk" runat="server" Text="<%$ NopResources:Admin.Common.OK %>" CssClass="adminButton"
                                    CausesValidation="False" />
                                <asp:Button ID="cancelOrderButtonCancel" runat="server" Text="<%$ NopResources:Admin.Common.Cancel %>" CssClass="adminButton"
                                    CausesValidation="False" />
                            </div>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderIDTitle" Text="<%$ NopResources:Admin.OrderDetails.OrderID %>" ToolTip="<%$ NopResources:Admin.OrderDetails.OrderID.ToolTip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:Label ID="lblOrderID" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderGUIDTitle" Text="<%$ NopResources:Admin.OrderDetails.OrderGUID %>" ToolTip="<%$ NopResources:Admin.OrderDetails.OrderGUID.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:Label ID="lblOrderGUID" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr class="adminGroup">
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCustomerTitle" Text="<%$ NopResources:Admin.OrderDetails.Customer %>" ToolTip="<%$ NopResources:Admin.OrderDetails.Customer.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:Label ID="lblCustomer" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="divAffiliate">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblAffiliateTitle" Text="<%$ NopResources:Admin.OrderDetails.Affiliate %>" ToolTip="<%$ NopResources:Admin.OrderDetails.Affiliate.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblAffiliate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderDiscountTitle" Text="<%$ NopResources:Admin.OrderDetails.Discount %>" ToolTip="<%$ NopResources:Admin.OrderDetails.Discount.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:Label ID="lblOrderDiscount" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlOrderSubtotalInclTax">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderSubtotalInclTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.SubtotalInclTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.SubtotalInclTax.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblOrderSubtotalInclTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlOrderSubtotalExclTax">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderSubtotalExclTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.SubtotalExclTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.SubtotalExclTax.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblOrderSubtotalExclTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlOrderShippingInclTax">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderShippingInclTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.ShippingExclTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.ShippingExclTax.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblOrderShippingInclTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlOrderShippingExclTax">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderShippingExclTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.ShippingExclTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.ShippingExclTax.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblOrderShippingExclTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlPaymentMethodAdditionalFeeInclTax">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblPaymentMethodAdditionalFeeInclTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.PaymentMethodAdditionalFeeInclTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.PaymentMethodAdditionalFeeInclTax.Tooltip %>"
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblPaymentMethodAdditionalFeeInclTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlPaymentMethodAdditionalFeeExclTax">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblPaymentMethodAdditionalFeeExclTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.PaymentMethodAdditionalFeeExclTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.PaymentMethodAdditionalFeeExclTax.Tooltip %>"
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblPaymentMethodAdditionalFeeExclTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderTaxTitle" Text="<%$ NopResources:Admin.OrderDetails.OrderTax %>" ToolTip="<%$ NopResources:Admin.OrderDetails.OrderTax.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:Label ID="lblOrderTax" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOrderTotalTitle" Text="<%$ NopResources:Admin.OrderDetails.OrderTotal %>" ToolTip="<%$ NopResources:Admin.OrderDetails.OrderTotal.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:Label ID="lblOrderTotal" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr class="adminGroup">
                    <td class="adminTitle">
                    </td>
                    <td class="adminData">
                    </td>
                </tr>
                <tr class="adminGroup" runat="server" id="pnlCartType">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCartTypeTitle" Text="<%$ NopResources:Admin.OrderDetails.CartType %>" ToolTip="<%$ NopResources:Admin.OrderDetails.CartType.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblCardType" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlCardName">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCardNameTitle" Text="<%$ NopResources:Admin.OrderDetails.CardName %>" ToolTip="<%$ NopResources:Admin.OrderDetails.CardName.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblCardName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlCardNumber">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCardNumberTitle" Text="<%$ NopResources:Admin.OrderDetails.CardNumber %>" ToolTip="<%$ NopResources:Admin.OrderDetails.CardNumber.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblCardNumber" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlCardCVV2">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCardCVV2Title" Text="<%$ NopResources:Admin.OrderDetails.CardCVV2 %>" ToolTip="<%$ NopResources:Admin.OrderDetails.CardCVV2.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblCardCVV2" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlCardExpiryMonth">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCardExpiryMonthTitle" Text="<%$ NopResources:Admin.OrderDetails.CardExpiryMonth %>" ToolTip="<%$ NopResources:Admin.OrderDetails.CardExpiryMonth.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblCardExpirationMonth" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr runat="server" id="pnlCardExpiryYear">
                    <td class="adminTitle" runat="server">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCardExpiryYear" Text="<%$ NopResources:Admin.OrderDetails.CardExpiryYear %>" ToolTip="<%$ NopResources:Admin.OrderDetails.CardExpiryYear.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData" runat="server">
                        <asp:Label ID="lblCardExpirationYear" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblPONumberTitle" Text="<%$ NopResources:Admin.OrderDetails.PONumber %>" ToolTip="<%$ NopResources:Admin.OrderDetails.PONumber.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
14 years ago
What have you changed? It looks the same
14 years ago
In my site, none of the resource strings were included. So when I clicked on the Order Info tab, the data was there next to the tooltip icon but no labels.
14 years ago
You are most likely missing the getlocaelresourcestring(xxxxxxxxxxx) which populate the label.

Most likely you have a syncronization problem with the undo manager. A simple method which works most of the time is to first copy and paste the correct getlocaelresourcestring(xxxxxxxxxxx) values that populate the labels, DO NOT SAVE YET. Open the the .cs file make any change, if not needed delete the change, that should flag the change flag to true.

Now that you have made changes in the designer and cs file before saving, recompile and that should take care of the problem, if not there is several other methods, but lets try this.................
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.