Error updating to 1.80 other then default language

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anni tempo fa
I installed nopCommerce 1.60 and added a new language, deleted the default (langaugeId=7).

When I tried to update to version 1.80, i received an error message.
Looking at the 1.80 updatescript (Install\Scripts\1.80\nopCommerce_upgrade.sql) I noticed that the script starts with a LanguageId setting

--new locale resources
declare @resources xml
set @resources='
<Language LanguageID="7">


So I figured that changing this would be sufficient, but it appeared that further on in the
script the languageId is used hard coded:


  BEGIN
    INSERT [dbo].[Nop_MessageTemplateLocalized] ([MessageTemplateID], [LanguageID], [BCCEmailAddresses], [Subject], [Body])
    VALUES (@MessageTemplateID, 7, N'', N'New VAT number is submitted.',  N'<p><a href="%Store.URL%">%Store.Name%</a> <br />
<br />
%Customer.FullName% (%Customer.Email%) has just submitted a new VAT number (%Customer.VatNumber%).
</p>')
  END


This value must also be replaced with a valid LanguageId
13 anni tempo fa
Yes, the upgrade is language dependent.
You can reinstall language 7 (english), perform the update and delete it again.
Personally I do suggest not to delete default language (anyway can be disabled)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.