Results 1 to 8 of 8
  1. #1
    Join Date
    May 2022
    Location
    HK
    Posts
    9
    Plugin Contributions
    0

    Default 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
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default 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?
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    May 2022
    Location
    HK
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default 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.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  5. #5
    Join Date
    May 2022
    Location
    HK
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    May 2022
    Location
    HK
    Posts
    9
    Plugin Contributions
    0

    Default 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.
    Thank you all.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

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

    Quote Originally Posted by morrysmith View Post
    The plugin "Ceon URI Mapping (SEO) v5" perfectly solved my problem, no longer need to add the extra field to my categories now.
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    May 2022
    Location
    HK
    Posts
    9
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v139h How do I add a field to initial product category display page?
    By jgold723 in forum General Questions
    Replies: 6
    Last Post: 21 Feb 2013, 06:57 PM
  2. Add a "How did you hear about us?" field?
    By sports guy in forum General Questions
    Replies: 4
    Last Post: 12 Jul 2011, 10:19 PM
  3. How to add an extra item number field?
    By rich00693 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 3 Sep 2009, 10:03 AM
  4. Is there a way to add extra field for registration details?
    By sunburst in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 May 2007, 08:49 AM
  5. how to add a product extra field?
    By nudelady in forum General Questions
    Replies: 4
    Last Post: 27 Sep 2006, 01:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR