Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Import search from ajax lite failed
- This topic has 18 replies, 2 voices, and was last updated 2 years, 11 months ago by
Ernest Marcinko.
-
AuthorPosts
-
June 19, 2023 at 4:55 pm #44366
Limitless Club
Participantwe set up the ajax search lite settings and testings to perfection, when we try to import the old search box to the pro plugin, it gives an error that no form is available.
when typing any text for the form name, it just fires the “add” button then creates a new search box instead of importing the old one. dosnt matter if we click the add / import button, it performs the “add” funcion/
please help us to import the free ajax search box to the pro.
June 19, 2023 at 5:39 pm #44368Ernest Marcinko
KeymasterHi!
Sure!
Make sure to enter a form name to this field and then hit the import button. That will do the trick 🙂
June 20, 2023 at 9:48 am #44371Limitless Club
Participantthats the problem
when i enter the form name, it dosnt import
it creates a new form
June 20, 2023 at 10:12 am #44372Ernest Marcinko
KeymasterThe new form it creates will have the properties imported from the lite version – the design, settings etc..
The Pro version supports multiple search forms so at least one has to be created. The import method will create a new form from the lite version using the lite version options.June 20, 2023 at 11:29 am #44374Limitless Club
Participanti didnt work,
how can i double check the form name on the lite version? so i can make sure i type currectly the name
June 20, 2023 at 12:40 pm #44379Ernest Marcinko
KeymasterThe lite version does not have a form name, because in the lite version there is only a single search form, it is not possible to create multiple search bars with it.
Multiple search bars are supported in this Pro version, and because of that a search form name is required. I see you have made an imported search bar already. You can access the settings here: https://i.imgur.com/rnFSTNA.png
Don’t forget to disable Ajax Search Lite – it is best to have only one version active as they share some resources.
June 20, 2023 at 1:45 pm #44385Limitless Club
Participanti must say that im really disapointed.
all my stylings has gone.
the old and free looks amazing.
the new one requires to spend another few hours optimizing it again…
vey bad customer experiance i must say…
is there a practical way to import the design or do we need again to work every field by field comparing the two of them toghether and trying to remake it again?
June 20, 2023 at 1:53 pm #44390Ernest Marcinko
KeymasterI can help you with that. The two plugin are separate so if someone wants they can switch back and forth. Unfortuantely I can’t make it both ways – especially because in the Pro version you can create multiple search bars.
These customizations does not look terribly complicated. I can help you with it if you want to, it should be a matter of minutes only. Let me know if you used any custom CSS and I will help you convert it.
June 20, 2023 at 2:05 pm #44391Ernest Marcinko
KeymasterNevermind, I found some of the customizations, using this custom CSS should get you almost exactly the same layout:
div.asp_m.asp_w { box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19) !important } .rtl .asp_m input.orig { direction: rtl; text-align: right } div.asp_m .probox .proclose svg { background: #fff2f2 !important; fill: rgba(210, 17, 94, 1) !important; } div.asp_m .probox .promagnifier { order: 1 !important; } div.asp_w .probox .proinput input::-webkit-input-placeholder { font-weight: normal; font-family: Open Sans; color: rgba(0,0,0,.6) !important; text-shadow: 0 0 0 rgba(255,255,255,0); } .asp_m .probox { padding: 8px !important; margin: 0 !important; } div.asp_r.vertical { padding: 4px !important; background: #fff !important; border-radius: 3px !important; border: 0 solid #b5b5b5 !important; border-radius: 0 0 0 0 !important; box-shadow: 0 0 3px -1px rgba(0,0,0,.3) !important; } div.asp_r.asp_w.vertical .results .item::after { display: block !important; position: absolute !important; bottom: 0 !important; content: '' !important; height: 1px !important; width: 100% !important; background: #D8D8D8 !important; }June 20, 2023 at 2:31 pm #44392Limitless Club
Participantmany thanks. is looks much better.
how can i change the font for the search result title? its open-sans-hebrew font on the lite plugin
on the old picture its how i want it to look
June 20, 2023 at 3:12 pm #44396Ernest Marcinko
KeymasterYou are welcome!
I forgot that custom CSS sorry, this will do it:
.asp_w, .asp_w * { font-family: "Open Sans Hebrew" !important; }June 20, 2023 at 3:30 pm #44398Limitless Club
Participantgreat 🙂 work perfectly.
thanks a lot!
i wonder if you have a solution for two things we tried at the free version but couldnt figure out?
1. can we embed the search bar in the mobile nav bar? -see reference photo
2. can we use the woocomerce product rating and post comments fields within the search results? we tried almost everything and could not find a solution. even not on google or your wiki.
something like {prodcut_rating}, count({post_comments}) – see reference photo
June 21, 2023 at 9:50 am #44407Ernest Marcinko
KeymasterYou are welcome!
1. If the nav bar has any widget or block area, then you could add the plugin shortcode there. Check the theme options or the customizer, sometimes there is a way to add custom shortcodes/texts. If there is none, then you may have to ask the theme developer if there is any way to add shortcodes there. Sometimes the only way to do that is via custom code, they will know which file to edit for the child template.
2. The rating is doable via the
{_wc_average_rating}custom field, use this for better layout:
{_wc_average_rating type="number" decimals=2 decimal_separator="."}For the comments:
Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_filter('asp_cpt_advanced_field_value', 'asp_add_comments_number', 10, 3); function asp_add_comments_number($value, $field, $result) { if ( $field == 'post_comments') { return get_comments_number($result->id); } return $value; }After that the plugin will recognize the
{post_comments}pseudo variable and fetch the comments count.June 28, 2023 at 8:58 am #44469Limitless Club
ParticipantYou cannot access this content.
June 28, 2023 at 2:58 pm #44485Ernest Marcinko
KeymasterYou are welcome!
Here is a tutorial for that exact setup. Basically we used blocks in the gutenberg editor (any other editor will work too) and placed the search, results and the settings shortcodes there.
-
AuthorPosts
- You must be logged in to reply to this topic.