Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Replace description with SKU/Variation Description or? › Reply To: Replace description with SKU/Variation Description or?
June 13, 2016 at 5:30 pm
#8995
Hi again!
There is no option to do that, unfortunately product variations are stored as separate post objects, however I might have found a possible solution for you.
After some experimenting I was able to come up with this code:
You can put this code to the functions.php file in your active theme directory. It locates product variations from the reuslts and collect their product IDs. Then removes the parents from the list if it’s present – so only variations are left.
This is the closest I could get, I hope it’s something you needed.
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)



