Advertisement:

Author Topic: [Premium plugin] Multilanguage Custom Fields  (Read 7068 times)

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #30 on: July 02, 2016, 11:08:33 am »
Teseo,
Translated drop-down custom-fields does not consider in search result
please give us a cure
i just tried to edit this code, but i couldn't
oc-includes\osclass\model\Search.php //line:918
thank you

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #31 on: July 02, 2016, 05:22:16 pm »
Hi,

Quote
Translated drop-down custom-fields does not consider in search result

I couldn't reproduce that issue here, everything's fine. ??? Please do this test: Disable the plugin for a moment and see if that issue is solved. Let me know the results in any case.

Regards

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #32 on: July 03, 2016, 01:48:35 am »
Hi,

Quote
Translated drop-down custom-fields does not consider in search result

I couldn't reproduce that issue here, everything's fine. ??? Please do this test: Disable the plugin for a moment and see if that issue is solved. Let me know the results in any case.

Regards

Teseo,
Maybe i couldn't explain it very well,
in normal way your right its good, but mine is different, i merged custom fields search with title and description search, so i don't have a separate search box for custom fields to select and search, i just search custom fields in website search. that's why i don't have any drop-down to select and search, i have to write it down in search box.
for example i have a drop-down custom fields: (English: car color: red,blue,green), and translation of it: (Italian: colore auto: rosso, blu, verde)
so when i search, it brings (red,blue,green) in search result, but it doesn't bring (rosso, blu, verde) in search result.
my question here is, what we should do to consider the other languages like english in search result?
thank you
« Last Edit: July 03, 2016, 02:24:19 am by Pigeon »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #33 on: July 03, 2016, 01:41:19 pm »
That is obviously beyond the plugin reach and it would be rather hard to program.  :o

Regards

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #34 on: July 03, 2016, 09:59:42 pm »
That is obviously beyond the plugin reach and it would be rather hard to program.  :o

Regards

Teseo,
That's okay
Thank you

m6mmi

  • Jr. Member
  • **
  • Posts: 72
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #35 on: April 21, 2017, 02:36:02 pm »
Excellent plugin by Teseo. Really appreciate it!

Just a quick question, osclass doesn´t support multiple checkboxes for one custom field only thick if yes for checkbox. Would it be possible to develop further features to support multiple checkboxes for one field?

I´m testing this hacky solution from 2013 and i was able to use radio button feature instead, it shows as checkboxes and i can check them, but it doesn´t store checked values to db.

Could you help me out here?

https://forums.osclass.org/development/how-to-have-multiple-checkboxes-for-one-custom-field/

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #36 on: April 24, 2017, 12:50:17 pm »
Hi,

Sorry, as you can see there, that's something having to do with Osclass core.

Regards

Sophia_OS

  • Sr. Member
  • ****
  • Posts: 416
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #37 on: September 29, 2017, 12:50:43 am »
Hi,
what's new in (Version1.2.1)?
there is no details about Versions in this page: https://market.osclass.org/plugins/attributes/multilanguage-custom-fields_498
Thanks

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #38 on: September 29, 2017, 12:59:30 am »
Hi,

Basically, just added translation of required Custom Field name on validation error ("Field XXXX is required").

Regards

Sophia_OS

  • Sr. Member
  • ****
  • Posts: 416
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #39 on: September 29, 2017, 02:50:11 am »
Hi,

Basically, just added translation of required Custom Field name on validation error ("Field XXXX is required").

Regards

Thanks

Sophia_OS

  • Sr. Member
  • ****
  • Posts: 416
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #40 on: September 30, 2017, 12:37:19 am »
.
« Last Edit: June 15, 2018, 10:36:12 pm by Sophia_OS »

m6mmi

  • Jr. Member
  • **
  • Posts: 72
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #41 on: December 14, 2017, 06:14:57 pm »
Hi Teseo.

Love this plugin, it gives so much new options for multilanguage site even use this one on single-language sites.

We are trying to impement custom input types to optimize mobile experience. It´s easy to manipulate regular input field type with custom code:

 <script type="text/javascript">
            $(document).ready(function(){
            $("[name^=region]").prop("type", "tel"); <<< this changes input type from text to tel.
            $("[name^=regionId]").prop("type", "hidden");
            });
  </script>

It doesn´t seem to work for multilanguage custom fields inputs, they are all by default type text  .... but for mobile experience it would make it so much better if we could set custom input types.

Do you have any idea how to add bit more code and modify the plugin so we could specify custom input types?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #42 on: December 14, 2017, 07:18:20 pm »
Hi,

You can use the same technique with custom fields:

Quote
$("#meta_" + '[identifier]').prop("type", "tel");

Replace here [identifier] with the identifier/slug of your desired custom field.

Regards

m6mmi

  • Jr. Member
  • **
  • Posts: 72
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #43 on: December 15, 2017, 01:37:50 am »
Thanks Teseo. At first it didn´t work, but when i added it the plugin to MLCFFieldForm.php file after  echo '<div class="meta_list">';    echo '</div> '; ?> starting here.

It started working. Is this right place or should i use some other location to add this script?
         

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [Premium plugin] Multilanguage Custom Fields
« Reply #44 on: December 15, 2017, 01:21:37 pm »
Yes, seems like a good place. Custom fields inputs are regenerated every time category is changed, so this modification must be applied every time as well.

Regards