Zen Cart Logo
Forums / Customization from the Admin / Hi there, about how to add a extra field to category

Hi there, about how to add a extra field to category

Views: 3,809

Results 1 to 8 of 8
02 Jun 2022, 07:57
#1
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Hi there, about how to add a extra field to category

I need to add a field to the category, which needs to support multiple languages like the category name. But I have tried many times without success, can anyone help me see what is wrong with my code?
A total of 5 changes have been made in my code, and they are all marked.
thank you very much

02 Jun 2022, 08:55
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Hi there, about how to add a extra field to category

Can you explain more clearly what is the problem you are trying to solve?

02 Jun 2022, 10:33
#3
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Hi there, about how to add a extra field to category

Thank you for you reply.
I just want another field likes category name, I have already inserted a sql of the extra field in my database. But these is something wrong with my code on categories.php.

02 Jun 2022, 14:24
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Hi there, about how to add a extra field to category

I just want another field likes category name
Why - for what purpose? You mentioned multiple languages so I suspect you are attempting to do something unnecessary....but you need to explain.

02 Jun 2022, 15:26
#5
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Hi there, about how to add a extra field to category

Sorry for not being clear, my target market is Japan, and I am selling curtains.
So I don't want Japanese categories or product names to be used for my urls, that looks very long and the URL looks weird when opened.
So my purpose is that the original category name is only used for my category URLs, such as Curtains-c-1.html
And the fields I need, such as categories_name2, will be used for Japanese category names, such as: カーテン.
This way I avoid the Japanese category name being used for the url and achieve pure English category urls.
To sum it up, I would like to have another category name 2, the original "categories_name" for the URL and another categories_name2(let's say this name) for the japanese category name.

03 Jun 2022, 12:41
#6
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Hi there, about how to add a extra field to category

The plugin "Ceon URI Mapping (SEO) v5" perfectly solved my problem, no longer need to add the extra field to my categories now.
:hug:Thank you all.

03 Jun 2022, 20:48
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Hi there, about how to add a extra field to category

morrysmith:

The plugin "Ceon URI Mapping (SEO) v5" perfectly solved my problem, no longer need to add the extra field to my categories now.
:hug:Thank you all.

If your site has been in operation for a period of time to have been indexed, be sure that you have your previous URIs logged as non active (or retained as your current URI) so that you don't lose the references to your product from the internet.

04 Jun 2022, 14:28
#8
morrysmith avatar

morrysmith

New Zenner

Join Date:
May 2022
Location:
HK
Posts:
9
Plugin Contributions:
0

Re: Hi there, about how to add a extra field to category

Thank you for your reminder.
But I can't solve the code problem myself, otherwise I'd still be inclined to add an extra categories name field to solve my problem.:D