Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › back end display product in front end not
This topic contains 4 replies, has 2 voices, and was last updated by stavroch 6 years, 6 months ago.
- AuthorPosts
- March 27, 2017 at 8:37 am #12478
I search for 040-7095 in back end and display the product with id 4829 but in front end doesn’t display that product.
Why?
March 27, 2017 at 11:42 am #12491Hi,
I don’t see any results for that on the back-end: https://i.imgur.com/R8ukrq3.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 27, 2017 at 1:16 pm #12494040-7201 is the product sku
040-7205 is the variation of the above product sku.I follow the instructions that you describe there https://wp-dreams.com/forums/topic/variation-search/
can you check please the settings if it is as you describe?
Also about the indexing do I have to make it daily or the indexing run one time?
March 27, 2017 at 6:08 pm #12496Hi,
There is no variation with this exact SKU: “040-7205”, there is only: “01-040-7205-0”, which is a non-exact match for a relevant product.
In fact, none of them will match, because you have the “Exact matches” enabled: https://i.imgur.com/fNEHbBh.png
This means that the regular engine is used always, as it is explained below the option.If you turn off the Exact matches, the index table engine will be used, but it still will not match, because as I explained earlier, middle word matching is not possible with that engine.
My suggested solution
1. Try this configuration: https://i.imgur.com/pb2UMhX.png
(turning off exact matches, choosing AND keyword logic)2. ..and also, use this code as well, in the functions.php file in your theme (copy from line 3):
This will remove the dashes from input, and change them to space characters. For example, “040-7205” will become “040 7205”, and the search will:
– Check for both “040” and “7205” for matches, and return only that match both keywords
– Will return the original product, because the SKU is indexed for the variations as well.I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 27, 2017 at 10:11 pm #12504it works
thank you!!! - AuthorPosts
You must be logged in to reply to this topic.