Title: Adding Attribute
Last modified: August 20, 2016

---

# Adding Attribute

 *  [cs.pt.fs](https://wordpress.org/support/users/csptfs/)
 * (@csptfs)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/adding-attribute/)
 * I am trying to add an attribute for different color choices. I have created the
   attribute and added it in the “Attributes” section on the product page. I selected‘
   visible on product page’ but it still doesn’t show up.
 * I have also tried selecting “Variable” for a product type and adding the attribute
   in the Variable options. Then the drop down does show on the product page but
   it doesn’t have the color selections I created and the “Add to Cart” button disappears.
 * Help?
 * Thank you!
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)
 * _[ please don’t bump – it is against forum rules ]_

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

 *  Thread Starter [cs.pt.fs](https://wordpress.org/support/users/csptfs/)
 * (@csptfs)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/adding-attribute/#post-3267933)
 * I looked this up on the forums and I was able to add my variations/attributes.
   But now the Add to Cart option does not show. Visible on Product page is enabled
   and prices set for each variation. Type set to variable.
 * I found this resolution on the forums also:
 * function mv_my_theme_scripts()
    { wp_enqueue_script(‘add-to-cart-variation’, 
   get_template_directory_uri() . ‘/js/add-to-cart-variation.js’,array(‘jquery’),’
   1.0′,true); } add_action(‘wp_enqueue_scripts’,’mv_my_theme_scripts’); ?>
 * But do I add this to function.php and thats it? How do I upload the add-to-cart-
   variation.js to the js files?
 *  [bheadrick](https://wordpress.org/support/users/bheadrick/)
 * (@bheadrick)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/adding-attribute/#post-3267939)
 * the add-to-cart-variation.js is already part of woocommerce. the solution you
   listed simply tells wordpress to load that in the footer instead of the header(
   or maybe both, I haven’t tried it).
 * and yes, just add the above to your functions.php

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

The topic ‘Adding Attribute’ 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/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 2 replies
 * 2 participants
 * Last reply from: [bheadrick](https://wordpress.org/support/users/bheadrick/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/adding-attribute/#post-3267939)
 * Status: not resolved