mahsaad
Forum Replies Created
-
Hi there,
I enabled the “Isotope Filter URL” in the option, it works only the first time.
Even on your demo page it’s not working properly:
https://radiustheme.com/demo/wordpress/thepostgridpro/isotope-1/#filter=.iso_3
In your demo page, if you search for “Sticky”, it filters the post.
Now if you click on “Show All” it shows all the posts.Try to search again, it doesn’t work.
BTW, your documentation doesn’t cover all the options available in the plugin.
Do you have a full documentation please?Regards,
M- This reply was modified 4 years, 1 month ago by mahsaad.
@majidelabd After translating the product title to the second language, visit the product in the main language, then switch to the second language, a record will be added in the “trp_original_meta”. You will be able to search the translated product.
Howwever, if you are in language A (main language) and you have a language B (second language) if you are in language A and you search the product with the translation of language B, you won’t find it, this is how the plugin apparently works, you can only search the product with the same language that you are currently on
Regards,
Hi Denis,
Thanks for getting back to me.
This what I did actually as a workaround. After translating the product title to the second language, i visit the product, then a record is added in the “trp_original_meta”.
However it’s weird. Is there a plan to fix it in a future release, or is it going to be like that?
Thanks again.
Hello,
update:
I noticed that the ones that i don’t find them when i search for them, they don’t have a record in the “trp_original_meta” table in the DB. therefor the join statement in the query with “wptrp_dictionary_en_us_fr_ca” table, returns nothing, in your class “class-search”
So after adding the missing record in the “trp_original_meta” table, then the search works
So the question, why some have a record and some don’t in the “trp_original_meta” table
- This reply was modified 4 years, 6 months ago by mahsaad.
@binaral I would like to know how did you solve the problem. I have the same issue.
Much appreciate it
Hello,
I’m having the exact same issue, but not for all products, main language is English and second language is French
In French, some products i find when searching with their french name and some i don’t.
The one i don’t find when searching with their french name, if i search with the english name, i’m able to find them.
I’ve been dealing with this for 2 days.
Uninstalled and re-installed Translatepress, dropped the tables and recreating them by clicking save in the plugin settings and started the translation all over, no luck
This is the webiste: https://lefruitier.ca/fr/
Examples:
For cherry tomato
If you look with the french name: cerise
you don’t find anythingIf you look with the english name: cherry
it finds the tomatoWorking product: Cauliflower
If you search with the french name: Chou Fleur
it’s workingI disabled WP Super Cache and delete the cache, re-saved the translation, still doesn’t work
Would appreciate any help
Hi,
Thanks for the reply and the update.
Before I update the plugin, just to make sure I understand the fix.
Did you remove the option to set the category as required in the plugin settings?
Regards,
I believe this the fix:
in the js file, the condition should validate if the value is 0
if ($(this).hasClass('ap-required-field') && $(this).val() == '0')
And in the following file: plugin_folder/inc/cores/front-form.php
this should be added where the select is getting populated.
right before the foreach add the following code:
if(in_array( 'category', $form_required_fields )){ $form .='<option value="0">Please select</option>'; }
This should do it
Regards,
Hi there,
After some digging in the plugin files, the issue is in the following file:
plugin_folder/js/frontend.js
The function that does the validation for the form, specially for the category select element has this condition:
if ($(this).hasClass('ap-required-field') && $(this).val() == '1')
if it has the required class and the value = 1, this shows the error message and prevent the form from being submitted
Since the first item in the select has the value 1, it will always be an issue
The easy fix in this file is to change the condition and check if the value = 0
if ($(this).hasClass('ap-required-field') && $(this).val() == '0')
The proper fix would be in the settings of the plugin, if the category is set to required, to add “Please select” option in the list and set the value to 1 this will keep the current condition in the js file, valid.
And if it’s not required, to opt out this option from the list, the first category in the list will have the value = 1 but it will work since it’s not a required field any more, therefor the condition remains valid, the post will be submitted in the selected category by default
Hope to apply the fix in the next release
Regards,
Hello there,
Any news regarding this?
Thanks
Hi,
Thanks for getting back to me.
You can view the form on the following link:
https://itmediaplus.com/tmp/recipes/submit-recipe/
If you fill the entire form, and DO NOT CHANGE THE SELECTED VALUE IN THE CATEGORY LIST, just leave the selected one by default and then try to submit the form, it shows the error message that the category field is required.
even if you select another category, and then reselect the first one, same issue.
In a way it’s considering the first item in the list as “Please select”
Note: I’m using the latest version of your plugin and wordpress and i haven’t modified any code in the plugin files, I’m using it as is.
Regards,
Hi Dan,
Never mind
Found the solution here:
Thanks
Hi Dan,
Works great
Thank you.
Regarding the “Method Title” label that appears in the shopping cart on the user side, i read in another thread that it can’t be hidden, the issue is not from the plugin, more from the woocommerce side.
Any hint on how to not make appear?
I was thinking to do that using CSS, but there is no class or id for the label.
Thank again Dan
Thanks NateWr for the support
Hi NateWr,
Thanks for the clarification, I understand.
One last thing just to make sure i understand this correctly
Even after replacing the xml file with the copy that you provided, do you mean that:
whenever i add a new item/section or update an existing item/section in the menu, do i have to replace the xml file again? or does this apply to the Sections only, since only the sections are affected?
As a matter of fact, with the new xml file, i’ve modified the existing menu, by adding a new section and a new item in the new section, after verifying it looks that it’s still working fine, what i mean is that i didn’t have to replace the xml file again after the menu modification, so it looks that i don’t have to replace the xml file again after menu updates.
What do you think?
Regards,