nopCommerce icon indicating copy to clipboard operation
nopCommerce copied to clipboard

Adding Subscription Language

Open prasannapolina opened this issue 5 months ago • 1 comments

#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

prasannapolina avatar Jan 12 '24 09:01 prasannapolina

Question : To complete this request, we need to alter the table NewsSubscription and add a new column SubscriptionLanguage in schemaMigration , correct?

apurvai007 avatar Jan 13 '24 11:01 apurvai007

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.

skoshelev avatar Apr 16 '24 10:04 skoshelev

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.

DmitriyKulagin avatar Apr 22 '24 15:04 DmitriyKulagin