WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Adding image to attribute in woocommerce (7 posts)

  1. michaellek
    Member
    Posted 1 year ago #

    Hi,

    Since I updated my site to WordPress 3.5.2 and Woocommerce 2.0.13 it is no longer possible to add images to attributes.

    Is this going to be fixed? Or is this the way it is going to be?

    Thanks in advance for you reply. Help would be much appreciated!

    Regards Michael

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

  2. Roy Ho
    Member
    Posted 1 year ago #

    Images are added to the variation, not attribute itself.

  3. michaellek
    Member
    Posted 1 year ago #

    You can indeed also add images to variations. In WooCommerce 1.6.6, it is also possible to add them to attributes, see this link

    I used this to set up this page, showing the brands from the store, with the 2.0.13 version of WooCommerce this is no longer possible

  4. Roy Ho
    Member
    Posted 1 year ago #

    Why do you need attributes to setup that page when that page can be create via categories in which does have images...?

  5. michaellek
    Member
    Posted 1 year ago #

    I tried to this at first as well, but didn't succeed. Next to the categories that I have for brands, I also have categories for like trousers, shirts etc. I don't know how I can only show brands there and not the other categories. Maybe you know this?

  6. Roy Ho
    Member
    Posted 1 year ago #

    I don't recall if WC already has a template tag for you to output this but you can do this yourself. So assuming "collecties" is a normal WP page, you can create a file named "page-collecties.php" in your theme folder and this file will be loaded whenever someone visits that page. So in that file, you can first copy the default loop from say the normal page.php file of your theme. Then utilize WP_Query to generate a new terms object of the brands you would like to show. The object will contain all the information you need including title/description/thumbnails...etc.

    Again, there may be already functions that do this by WC but I don't remember. I usually build my own custom loops as this gives me full control of the output.

  7. michaellek
    Member
    Posted 12 months ago #

    Hey Roy, thanks for your reply. I think I will use this as a fall back option. Still hoping WC already has an solution for this. That way the shop owner should be able to add brands himself.

    Like your work btw! For a new project I am looking for a experience WP /WC theme builder. Let me know if you are open for new projects? I can send you a mail through your website if you are interested.

    Thanks again for your help.

    Regards Michael

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic