Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Attribute Listening for searched product
This topic contains 2 replies, has 2 voices, and was last updated by chris1986 7 years, 4 months ago.
- AuthorPosts
- April 18, 2017 at 9:09 am #12730
Hi Ernest,
If i search for products, i need to get the attributes of the product in the search results ( but only these attributes that matches to that product, cause in my teststore all products are variation products)
Can you help me with that?
Kind regards
ChrisAttachments:
You must be logged in to view attached files.April 18, 2017 at 1:43 pm #12739Hi Chris,
With the recent changes in WooCommerce 3, this might be possible. Listing attributes was always a nightmare, but I managed to put together a code that might work:
This will list all attributes that are choosen to be visible on the product page, as well as variation page.
You might have to add some custom CSS to be able to style this properly. I would suggest starting with this:.asp_content dt, .asp_content dd { display: table-cell !important; } .asp_content dt { padding-right: 10px !important; font-weight: bold !important; }
I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 18, 2017 at 2:18 pm #12740Hi Ernest,
Thank you so much for that, works like charm =)
You are getting a five star rating on codecanyon. That is out of the box support.Kind regards,
Chris - AuthorPosts
You must be logged in to reply to this topic.