nopCommerce Tips: Adding a Custom Label or Title

When customizing a nopCommerce installation, it may be necessary to add a custom field or title; in order to ensure that you can support that custom field in more than one language, it’s a good idea to add it to your language resources. Here’s how to do that.

1. Log into nopCommerce as an admin, and navigate to the Administration area

2. Click on “Configuration”=>”Languages”, and next to your preferred language (in this case, “English”), click “View String Resources”.

3. Click the “Add New Record” button on the left; enter a value for the resource name, and the title of the link you’re creating as a value.

4. Click “Save”

5. Wherever you’re going to use this new label, open the file, and insert the label using this format: @T(“[yourStringResourceName]“)

6. Save, clear cache, and re-start your application.

7. You should see your new custom label where you inserted the line above. This is a handy way to insert titles, labels, or any other text string that may need to be supported in other languages, or updated by site admins via the Administration section.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Looking for quality nopCommerce Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , | Posted under nopCommerce | RSS 2.0

Author Spotlight

Carole Bennett

Carole Bennett is the founder and principal of IndigoTea. As a professional IT consultant, Carole has provided solutions for companies as diverse as Verizon, Frito-Lay, Capital One Auto Finance, and Zales Jewelers, parlaying a unique talent for acting as a translator between the worlds of business challenges and technology solutions. She considers multi-tasking skills gained from simultaneously 1) managing a fire performance troupe, 2) raising a family, and 3) working as a full-time IT consultant excellent preparation for her current career incarnation as the driving force behind IndigoTea. "Fire-breathing redhead on a mission" is not just a metaphorical description!

Leave a Reply

Your email address will not be published. Required fields are marked *


− 1 = 5

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>