Attribute Listening for searched product

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 chris1986 5 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12730
    chris1986
    chris1986
    Participant

    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
    Chris

    Attachments:
    You must be logged in to view attached files.
    #12739
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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 :)


    #12740
    chris1986
    chris1986
    Participant

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.