Category Name won't edit

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
4 years 3 weeks ago #329772

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.3.27
-- Browser(s) name and version -- : All broswers
-- Error-message(debug-mod must be tuned on) -- : No error shown

When I change the name of a category, then click Save, the category name reverts back to the previous name. For example: change the category "All of Africa" to "Africa" and when saved it changes back to "All of Africa"

It only does this on this category, and no others. Changing it in the database table has no affect. I'm stumped.

Please Log in or Create an account to join the conversation.

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 3 weeks ago #329806

Hi,

The category names, like the product names and many other fields in HikaShop support translation overrides.
So in these fields, you can enter a translation key and Joomla will convert it to the corresponding translation if it's available in the translation files loaded on the page.
And it just so happens that HikaShop has a translation key:
AFRICA="All of Africa"
in its translation file (which contains all the text used on the interfaces of HikaShop):
www.hikashop.com/component/updateme/down.../language-en-GB.html
So it's conflicting with your category name.
What you can do to circumvent that is to enter something like this in your category name:
MY_AFRICA_TRANSLATION_KEY
And then, edit your translation file under the "Languages" tab of the HikaShop configuration and add in the override area on the right side:
MY_AFRICA_TRANSLATION_KEY="Name I want for my category"
www.hikashop.com/download/languages.html#modify
That way, on your frontend, you'll get "Name I want for my category" for that category.

The following user(s) said Thank You: cpctw

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
4 years 3 weeks ago #329821

That fixed it! Thank you for the good guidance.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum