WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How can I add a link as a product attribute? (5 posts)

  1. ionblue
    Member
    Posted 1 year ago #

    I thought this would be simple to do, but it doesn't appear so. I need to be able to add links to PDFs in the "additional information" tab, but when I put a link in the "value" field all that happens is it renders the link as text and not a link.

    I'm sure something in the function is doing this, but I have no idea where it is or what to modify so this is allowed. Help?

    http://wordpress.org/extend/plugins/woocommerce/

  2. meadows.pete
    Member
    Posted 1 year ago #

    I don't think attributes are set up to handle code like that.

    Why don't you create a new tab for Additional Information that contains links in the traditional sense, rather than trying to get attributes to work for you?

    This should help http://wordpress.org/extend/plugins/woocommerce-custom-product-tabs-lite/

    Use it to create a custom tab, call it Additional Information and then you can add as much HTML to the tab as you like.

  3. ionblue
    Member
    Posted 1 year ago #

    Thank you so much for this. I didn't see that this was available, but it looks like it will do what I need.

  4. ionblue
    Member
    Posted 1 year ago #

    Yep this does indeed work. The only problem I see with it is that whatever I put in for the tab title, it repeats it in the body of the tab as an h2 element. I guess I could just hide that with CSS, but it would be nice to be able to turn that off.

    Actually, there might be a way to do this in the plugin files itself...

  5. miketopher
    Member
    Posted 1 year ago #

    Since attributes have links, such as .com/color/red/ it would be a cool feature that in the Additional Information Tab, the attributes listed, would simply be linked to the attributes already available link.. it seems like its just a matter of converting the words in to links.. not sure how much new code that would be, but it would let customers filter from that area of the page to say.... see the other Reds..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.