Translations CustomField being de-activated - Falang

  • Posts: 59
  • Thank you received: 2
8 years 6 months ago #257645

-- url of the page with the problem -- : all.pt/nails21/
-- HikaShop version -- : HikaShop Business: 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.28
-- Browser(s) name and version -- : Chrome

Hi,

We have a strange behaviour in our site ( all.pt/nails21/ ).

We have created a custom field in our Product table. And we have an internal process (PHP code) of translating this field using your translation helper method (handle_translations).

The problem we are facing is that after a while, all the translations of this custom field are updated to published=0.

We updated it back to published=1 with an SQL Update command.

But after a few days, again the same issue, something puts the translations back to published=0.

We added the configuration necessary to Falang on contetelent/hikashop_product.xml (<field type="text" name="customfield" length="255" maxlength="255" translate="1">Custom Field Desc</field>) and on Hikashop XML files as well.

And the translations work well, both on the administration page (Falang Component) and in our process too.

But the thing is, something, some process, we don't know what is turning the published property of these custom fields to '0', and we don't know when and how..

Do this behaviour sound familiar to you guys? Can you help us with this?

Thanks.
Best Regards.
AllBs.

Attachments:

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #257680

Hi,

HikaShop automatically modify the contetelent/hikashop_product.xml to add the custom fields or remove them based on the "translatable" setting of your custom field.
If all the translations are disabled automatically for a custom field, it means that you turned off the "translatable" setting of the corresponding custom field.

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

  • Posts: 59
  • Thank you received: 2
8 years 6 months ago #257832

Hi Nicolas,

Oh, that was it! We didn't know about that 'translatable' property on custom fields.. It was never been turned on, because we were doing it programatically on the XML File.

But turning it to 'on' do the trick, of course. Great feature by the way :) lot's of time trying to understand what we were doing wrong, and it turned out Hikashop already did the 'magic' for us :) it was just a matter of knowing about it.

Thank you so much.

Best regards,
AllBS.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum