Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search with custom tabs on product page
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 9 months ago.
- AuthorPosts
- August 1, 2017 at 10:20 am #14063
Hi, customer needs the search to pick up the content of custom tabs on the product page so for example
http://www.lawtontools.co.uk/en/product/ohle-tool-kit/
if you search for “Hacksaw blades” this page isn’t being found in search though that phrase appears in the kit contents tab. The tabs on the product page are being created by Custom Product Tabs for WooCommerce by Yikes. They contain text but can also contain shortcode which also needs to be indexed as they are moving to a new table system (WP Table Manager by joomunited ) in the tabs which is called via shortcode
August 1, 2017 at 10:59 am #14065Hi!
Thank you for the details, I think I have managed to find a solution.
After closer inspection I found that the tabs content is stored within the yikes_woo_product_tags custom field. Basically, I have added this custom field on the index table panel, re-created the index, and now it seems like it picks up the text from that field as well: https://i.imgur.com/BWTiW7Z.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 1, 2017 at 11:08 am #14066Many thanks for your super rapid response, greatly appreciated. The fix is working for text in the tab but not for content called by shortcode in the tab as far as I can see. I’ve just published a dummy product using the new table system the client is using (the table is called with shortcode in the tab), cleared the cache, reindexed then done a search for text in the table and it didn’t find anything.
http://www.lawtontools.co.uk/en/product/dummy-product/
searched for ABC-123
August 1, 2017 at 11:43 am #14067Hi!
I’m afraid that might not be possible. Tabs are rendered via the template (or withing woocommerce default template) and not as a shortcode. I’m not aware of any solution that allows accessing the tabs content within an ajax call unfortunately.
In case you know any way on how to get the tabs content based on the product ID, then I might be able to construct some kind of colution for that.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Search with custom tabs on product page’ is closed to new replies.