Reply To: Add Specific Product Attribute to Title in Drop Down Display

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Add Specific Product Attribute to Title in Drop Down Display Reply To: Add Specific Product Attribute to Title in Drop Down Display

#11532

Ernest Marcinko
Keymaster

Hi!

Sorry for the late response.

Well, the plugin supports adding certain custom field values to results without any coding, but unfortunately product attributes are taxonomy terms, and it's a bit more difficult. Since nobody had a similar request yet, I took some time to put together a small code snippet (actually two) to parse product attributes and display them within the results.

Put either of these solutions code into the functions.php file in the currently active theme directory. I hope one of them works out.

1. Solution, using the built-in woocommerce list method, to print it as a table

2. Solution – simple print, with line breaks and such

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)