Product
Store demo
Showcase
Features
Why for developers
Why for store owners
Industries
Fashion
Health & Beauty
Food & Beverage
Automotive
Industrial & Scientific
Furniture
B2B eCommerce
International
Downloads
Download nopCommerce
Marketplace
Translations
Copyright removal key
Mobile application
Web API
Support & services
Training
Documentation
Community forums
Premium support services
Request a quote
Contact us
Partners
English
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Get started
Shopping cart
My account
Log in
Register
Home
>
Forums
>
General
>
General Support
>
New custom field in product details and localization
New custom field in product details and localization
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
cbaldo
Total Posts:
11
Karma:
65
Joined:
3/4/2014
Location:
Italy
Posted:
4 years ago
Hi
I have added a new custom field in product details (a kind of technical characteristic)
The value of that field is saved in the "standard" version but it is not saved in the localized ones.
What did I forget?
Thanks ;)
Claudio
smi10
MVP
Certified Developer
Total Posts:
981
Karma:
8028
Joined:
2/10/2017
Location:
India
Posted:
4 years ago
Localisation have separate code for that.
You have to look at product post method.
They did code for other fields.
cbaldo
Total Posts:
11
Karma:
65
Joined:
3/4/2014
Location:
Italy
Posted:
4 years ago
sk5202 wrote:
Localisation have separate code for that.
You have to look at product post method.
They did code for other fields.
Thank you
I edited ProductModelFactory in Admin area adding the following for the custom field
locale.Characteristic = _localizationService.GetLocalized(product, entity => entity.Characteristic, languageId, false, false);
Now it's all ok ;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Still have questions or need help?
.
Premium support services
.
Get dedicated support from the nopCommerce team with a guaranteed response within 24 hours.
.
Online course for developers
.
Get the practical and technical skills you need to run and customize nopCommerce websites.