nopCommerce
nopCommerce copied to clipboard
Adding Subscription Language
#6978 Add LanguageId field to NewsletterSubscription
1.Added new language field "Subscription Language" in the NewsLetterSubscription table. 2.To store the data in the new field for both guest and subscribed user made changes in the src/Presentation/Nop.Web/Controllers/NewsletterController.cs file
Question : To complete this request, we need to alter the table NewsSubscription
and add a new column SubscriptionLanguage
in schemaMigration
, correct?
Hi @prasannapolina. @apurvai007 is right, just adding a field to the entity is not enough as that will only work for a clean install. We still need to add it to the migration. Also in the note to the ticket, it is written that it is necessary to take into account the user’s ability to change the language while using the site. That is, the new field should change after Customer.LanguageId.
Hi @prasannapolina We decided to implement this task on our own, since solving it requires several more changes than are proposed here. Still, thank you for your help.