Auto add resource name in code

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi
I added new field in database in product table with new filed call IsSell
I also added it in file defaultResources.nopres.xml like this
  <LocaleResource Name="Admin.Catalog.Products.Fields.IsSell">
    <Value>Sell or not </Value>
  </LocaleResource>

How can i execute this auto adding this resource in database without add resource in admin?
P/s when i running it is still not add on database it is displaying Admin.Catalog.Products.Fields.IsSell not displaying Sell or not
Many thanks
5 years ago
Hello,

Please look at here.

You can find solution from that..

https://www.nopcommerce.com/boards/t/50975/how-to-access-resouce-or-other-files-in-custom-plugin-class.aspx
5 years ago
Hi
Thank for you reply but in my case not in plugin
I found that we can add this resource to xml file then we can import it in admin
Many thanks
5 years ago
Hello,

Try this xml.


<?xml version="1.0" encoding="utf-8"?>
       <Language Name="English">
           <LocaleResource Name="AboutUs">
                    <Value>About us</Value>
           </LocaleResource>
       </Language>




this xml code you should write in xml file.

After you can inport this file from admin side.

Hope it will work for you..!!
5 years ago
user ms sql manager and run the code at the top of the nop upgrade script
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.