WordPress.org

Forums

WP eCommerce
Add category icon to products in wpsc-products_page.php (1 post)

  1. VisioPhobia
    Member
    Posted 1 year ago #

    In wpsc-products_page, how can I display an icon for a product if it is in a certain category?

    For instance, if I had three categories: RED, BLUE and GREEN

    and the following products are in the following categories:

    product 1 - RED
    product 2 - BLUE
    product 3 - BLUE & GREEN
    etc.

    Each category would have have its own icon, which would show up next to any product within that category (and multiple icons if it's in more than one category).

    I was going to do it manually for each product using a meta, but I quickly realised that the meta doesn't support html tags, but basing the icons on a category would be better for scalability anyway.

    I've had a little experiment with wpsc_product_category but can't figure out the exact usage.

    Any help is much appreciated :)

    https://wordpress.org/plugins/wp-e-commerce/

    [Moderator Note: No bumping, thank you.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic