Category missing fields in translations

  • Posts: 23
  • Thank you received: 0
13 years 2 months ago #24769

Hi to all,
I upgraded HikaShop from Starter to Essential Edition in a Joomla 1.5.22 installation.
Our site has several languages, so we greatly appreciate the possibility to do the translation directly from product/category page.

But we noted a problem:

  • translating categories, we have the possibility to edit: Name, Description, Meta Description and Keywords fields using the popup appearing in the Category page, but the translated Meta Description and Keywords are not saved on the database.
  • Looking inside Joom!Fish, we discover also that Meta Description and Keywords fields are missed in the translation form.
  • Consequently, Meta Description and Keywords fields are always in the main site language during web navigation. :(
How to correct this?
Thank you in advance


Francesco Garganese
Aeromnia Srl
Last edit: 13 years 2 months ago by fgarganese. Reason: Joomla release added

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #24770

Hi,

The problem seems to come from the content elements xml which we didn't update when we added these fields.
You can install the file attached to that post via the joomfish interface it order to have joomfish translate the fields.

File Attachment:

File Name: hikashop_category.xml
File Size:1 KB

Attachments:

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

  • Posts: 23
  • Thank you received: 0
13 years 2 months ago #24773

File installed and problem solved, you're great and fast as usual!
Thank you very much


Francesco Garganese
Aeromnia Srl

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

  • Posts: 23
  • Thank you received: 0
13 years 2 months ago #25319

I discovered still a little problem after installing the new xml file.
While we can see the fields inside categories editing, we can successfully save the translation only doing it inside Joomfish, if we do it in HikaShop language tabs it's ignored. :S


Francesco Garganese
Aeromnia Srl

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25341

We checked that on our end. Indeed, there is some code missing in a view to handle that.

Please go in the menu Display->views and edit the file "edit_translation" of the view "category" and add the code:

$this->category_meta_description_input = "translation[category_meta_description][".$language_id."]";
				$this->element->category_meta_description = @$translation->category_meta_description->value;
				if(isset($translation->category_meta_description->published)){
					$this->category_meta_description_published = $translation->category_meta_description->published;
					$this->category_meta_description_id = $translation->category_meta_description->id;
				}

				$this->category_keywords_input = "translation[category_keywords][".$language_id."]";
				$this->element->category_keywords = @$translation->category_keywords->value;
				if(isset($translation->category_keywords->published)){
					$this->category_keywords_published = $translation->category_keywords->published;
					$this->category_keywords_id = $translation->category_keywords->id;
				}
before the code
echo $this->tabs->startPanel($this->transHelper->getFlag($language_id), 'translation_'.$language_id);
Then, it should work properly in HikaShop's interface too.

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

  • Posts: 23
  • Thank you received: 0
13 years 2 months ago #25353

Code inserted, editing and saving now it's ok. :)
Only a note:
laterally for each field there is a green checksign to enable (what they are?): if we do so it remember the action, excepting for the last field "Keywords".


Francesco Garganese
Aeromnia Srl

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25364

It's to activate/deactivate the translation. That correspond to the publish checkbox in joomfish.


In the file translation (or normal?) of the view category, there is a typo for that: kaywords instead of keywords. Because of that, the publish field value is not correctly loaded. You can change it if you want, but it's not really that useful, especially for that field.

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

  • Posts: 23
  • Thank you received: 0
13 years 2 months ago #25589

Thank you for the note Nicolas, I agree with you :)


Francesco Garganese
Aeromnia Srl

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

Time to create page: 0.064 seconds
Powered by Kunena Forum