Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Variation SKU search
This topic contains 13 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 9 months ago.
- AuthorPosts
- December 20, 2017 at 9:11 am #15907
Good afternoon,
I am unable to search using variation skus.
I used the method stated in this topic but it did not work for me.Is there another option that I could use?
Best regards.
December 20, 2017 at 10:12 am #15912Hi!
Thank you for the proper details, it helps me a lot!
I have looked through the products, but I could not find one that had a variation SKU set for testing, only the parent products had an SKU. Can you please point me to a variable product, where the variation SKU-s are defined? I will test those and check how it gets indexed.
Best,
Thank you very much!
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2017 at 10:26 am #15914Yes of course.
Variable product
The 3rd SKU variation (64-AA312) of the product above is listed in the wp_asp_index table in the database but it does not show up on the results.December 20, 2017 at 10:37 am #15915Thank you very much, that helped me a lot!
I have found and corrected the issue. The problem was, that there appears to be a bug with the custom post type filters. While it was set to invisible, it still was in effect, causing the problem. I have reset the post type filters to default, as it is not in use. I will of course make sure to fix this in the upcoming release.
Now it should very likely display variable results based on variable SKU-s. I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2017 at 10:43 am #15916Woderful! That fixed the issue!
Thank you very much for your immediate support and assistance.The issue is resolved.
One more question though…
Is there a way for the variation results to show the image of the main product?December 20, 2017 at 11:24 am #15928You are very welcome 🙂
I belive it may be possible with a custom code. Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
This worked for me, but I’m not sure if it works in every case though. It’s worth a try.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2017 at 11:37 am #15931The code above did not work for me but thank you very much anyway.
All my issues were resolved.Thank you once more for your immediate assistance.
Best regards.
December 20, 2017 at 11:53 am #15934You are welcome. If you want, I can try a different solution on your site directly via FTP. Let me know.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2017 at 11:58 am #15935If you want give it a shot.
December 20, 2017 at 12:01 pm #15937Okay, will try then. Can you please check the FTP details? It does not seem to work for me, I’m getting an authentication error. Let me know if I need to use SFTP or any special configuration as well.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2017 at 12:07 pm #15938You cannot access this content.December 21, 2017 at 11:11 am #15971Hi,
Thanks, the problem was that in the login name there was an ‘r’ within the domain name, so it didn’t allow login. With the correct username it worked.
I have added this code to the theme functions.php file, and it appears to be working. I have tried the 64-AA312 the search phrase. The problem might have been that the cache was enabled, and it was displaying the cached results without the image. It should be okay now, I guess.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 21, 2017 at 11:16 am #15972You are the best! It works perfectly. Thank you very much for your assistance.
December 21, 2017 at 11:17 am #15973You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.