Title: Price Code &amp; Attribute Images
Last modified: January 25, 2020

---

# Price Code & Attribute Images

 *  Resolved [ginseng6](https://wordpress.org/support/users/ginseng6/)
 * (@ginseng6)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-code-attribute-images/)
 * Hi all; 2 requests:
 * 1. I’m building a WooCommerce/Generate Press website for my local not for profit
   theatre. They have acquired many items in their costume inventory and are finding
   a need for an online catalogue/inventory. I am using attributes, and ‘some’ variations
   but I’d like to be able to add images to either the attribute itself and/or to
   the attribute terms. If the user hovers over the term the image thumb will show.
   Have you seen anything like this?
 * 2. My second request is around grouping products into a price. For example, they
   will have a rental option in their pricing structure. For example, all pants 
   are $2 to rent. Now, if I could create a “Price Code” so that when they want 
   to increase all pants to $3, I can go to one place, find the appropriate “Price
   Code” and change the $2 to be $3 and see that all 300 pair of pants within that
   price code have been updated without having to go and change all pant prices 
   one by one.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fprice-code-attribute-images%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [crslz](https://wordpress.org/support/users/crslz/)
 * (@crslz)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12365448)
 * Hi,
 * **For question 2:**
    A certain price code as a product price when you create 
   the product by default will not work because the price only accepts numeric values.
 * What you can do here is create a ‘pants’ tag for all products that belong to ‘
   pants’. Via code you can then adjust the price of all products that contain the‘
   pants’ tag.
 * If you cannot or do not want to use a tag, you can also add a custom field to
   the product where you can enter a ‘price code’, then you can determine again 
   with code: if the product contains a specific price code.. update the price for
   all those products.
 * Because it may not be advisable to adjust the new price for the pants via code,
   it may be interesting to add a new menu item where you can adjust this via settings.
 * This of course requires custom code, what is your experience in this? which method
   would you prefer from my explanation?
 * Regards
 *  Thread Starter [ginseng6](https://wordpress.org/support/users/ginseng6/)
 * (@ginseng6)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12365626)
 * Thank you for the response. Of course, I have further questions related to your
   response.
 * > What you can do here is create a ‘pants’ tag for all products that belong to‘
   > pants’. Via code you can then adjust the price of all products that contain
   > the ‘pants’ tag.
 * I thoughts about using tags, but I don’t know enough about custom code and neither
   do the volunteers, so that option is out.
 * Actually, none of the options are ideal as they all require custom code if I’m
   reading corectly. I was hoping that there would be a way to map a field to the
   price field, easily.So far, the easiest way I can see is to not put any price
   in the price field and then have a price list, although that method negates the
   advantage of online orders.
 *  Plugin Support [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * (@johndcoy)
 * Automattic Happiness Engineer
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12461253)
 * Hi [@ginseng6](https://wordpress.org/support/users/ginseng6/)
 * **For question 2:**
 * You could use a plugin like [Product Add-Ons](https://woocommerce.com/products/product-add-ons/)
   to create global add-ons that can be added to any product. Price changes made
   the add-on globally will then change the price for all products that include 
   the global add-ons.
 * [https://woocommerce.com/products/product-add-ons/](https://woocommerce.com/products/product-add-ons/)
 * This plugin doesn’t track stock for the add-ons, it will just increase the price
   of the product it is attached to base on the customer’s selections.
 * **For question 1:**
 * I have another paid plugin called [Variation Swatches and Photos](https://woocommerce.com/products/variation-swatches-and-photos/)
   that allows you to define colors or images at the attribute or product level.
 * [https://woocommerce.com/products/variation-swatches-and-photos/](https://woocommerce.com/products/variation-swatches-and-photos/)
 * Both of these plugins are supported through the official WooCommerce Marketplace
   and by the developers that created them.
 * Hope this helps,
 *  Thread Starter [ginseng6](https://wordpress.org/support/users/ginseng6/)
 * (@ginseng6)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12462785)
 * Hi [@johndcoy](https://wordpress.org/support/users/johndcoy/) ;
    Thank you so
   much for your response. I briefly visited the plug-ins you’ve suggested. I can’t
   envision how Product Add On’s plug-in will work but I see that there is a 30 
   day trial so I can try that out. I need a way to easily change the price of all
   items in a category or tag. So far, export/import seems the front runner.
 * Re: Variation Swatches – I don’t think this is what I’m looking for. Let me try
   to provide an example. There are 10 pair of pants entered as 10 individual products.
   Each pair of pants has Leg Length as an attribute. The attribute terms are: hot
   pants, shorts, bermuda, capri and full length. So, on the product input page,
   I can select the attribute Leg Length and the attribute term as Bermuda but there
   are no additional variations for the customer to choose from. I just want them
   to be able to see what the lengths represent, almost like a definition.
 * When the customer goes to view the pants example from above, they will see that
   they are Bermuda length but what does that mean? It may be a piece of clipart
   showing a human bottom half body form with pants on. Then, the image will have
   a line across to indicate each length. So, hot pants will have a line directly
   under the crotch, Shorts will have a line mid thigh, etc.
 * I look forward to your response and thank you for your suggestions.
 *  Plugin Support [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * (@johndcoy)
 * Automattic Happiness Engineer
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12466289)
 * Hi [@ginseng6](https://wordpress.org/support/users/ginseng6/)
 * > So, on the product input page, I can select the attribute Leg Length and the
   > attribute term as Bermuda but there are no additional variations for the customer
   > to choose from…I just want them to be able to see what the lengths represent,
   > almost like a definition
 * The Variation Swatches plugin allows you to assign small images to attributes
   as customers make selections. Since you want to retain the text and just provide
   the images as information, I am not sure how to deliver this in a way within 
   the variation option field.
 * Maybe use WooCommerce Tab Manager to add a custom tab for Sizing Chart?
 * [https://woocommerce.com/products/woocommerce-tab-manager/](https://woocommerce.com/products/woocommerce-tab-manager/)
 * IT has an option for global tags which would be a quick way to apply changes 
   to the tab to multiple products at once.
 *  Plugin Support [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * (@johndcoy)
 * Automattic Happiness Engineer
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12500106)
 * Hi [@ginseng6](https://wordpress.org/support/users/ginseng6/)
 * We’ll mark this thread as resolved now that we haven’t heard back. Please feel
   free to open a new thread if you have any additional questions or concerns.
 * Regards,

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Price Code & Attribute Images’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)
 * [attribute terms](https://wordpress.org/support/topic-tag/attribute-terms/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [pricing](https://wordpress.org/support/topic-tag/pricing/)

 * 6 replies
 * 3 participants
 * Last reply from: [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/price-code-attribute-images/#post-12500106)
 * Status: resolved