Change maximum name length for category from 400 to 500

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi

I need to change the maximum category name length from 400 to 500, where can I find this parameter?

It´s for nopCommerce 4.00.

Thank you :-)
6 years ago
Open your DB and run this query

ALTER TABLE [dbo].[Category] ALTER COLUMN [Name] NVARCHAR (500) NOT NULL;
6 years ago
Open your DB and run this query

ALTER TABLE [dbo].[Category] ALTER COLUMN [Name] NVARCHAR (500) NOT NULL;
6 years ago
Thanks, but I checked the table and the value is 800, but you are only allowed 400 chars?

from DB:
Key  Column  Type  Length  Prec.  Scale  Nullable  Default  Rule  Id.  Id. start  Id. seed  
  Name  nvarchar  800         False         False
6 years ago
Change this and recompile whole project. Here is a link to see it bigger

https://image.ibb.co/erDf3R/change_Category_Map_here.png

6 years ago
Thank you, that worked perfectly :-)
6 years ago
WeroShop.dk wrote:
Thank you, that worked perfectly :-)


never a problem :) glad i was helpful!!
6 years ago
What if I need to change the Category description text to be larger than 1000 chars where is that located?
6 years ago
I'll look, but category is an nText in the DB and i think it holds over 40k characters.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.