Attribute variations not showing on the front end drop down menus (42 posts)

  1. barkingbird
    Posted 3 years ago #

    Yup - adding a base price in bulk edit solved the problem for me too!

    Barking Bird Media

  2. Yojance Rabelo
    Posted 3 years ago #

    I was having the same problem a while back and in order to get it working on my custom theme I had to:

    1. Include the contents of /my-theme/woocommerce/single-product/add-to-cart/variable.php to my single-product.php (Not pretty, I know)
    2. Insert some code into single-product.php to get it working. The code is posted below:
    3. Make sure that add-to-cart-variation.min.js is being included in your product's page
    global $woocommerce, $product, $post;
    $attributes = $product->get_variation_attributes();
    $available_variations = $product->get_available_variations();

    If your add-to-cart-variation.min.js isn't being included on the products page, make sure you register it like:

    function wooc_enqueue_wc_scripts() {
    	wp_enqueue_script('add-to-cart-variation-for-theme', plugins_url() . '/woocommerce/assets/js/frontend/add-to-cart-variation.min.js', array('jquery'), '',true );
    add_action( 'wp_enqueue_scripts', 'wooc_enqueue_wc_scripts',999 );

    After doing that, the variations started to show again.

  3. timburkart
    Posted 3 years ago #

    Hi Simonhunter,

    I'm sorry I forgot about my promise to report back...

    The answer I got from the developer was to upgrade my theme to the latest release which I haven't done yet. My interim solution was to use hyphens in the variation name, not ideal but it works.

  4. rusticartistry
    Posted 2 years ago #

    The solution to this problem on my site was that the product page had to actually be published. In preview mode, the variations didn't show up in the drop down, but after I changed to publish they did. Then I just quickly changed back to draft mode while I made any additional changes to the product page. Also, when setting up the attributes, I had to format with Name -- $xx, meaning it has to be space dash dash space between the variation name and the dollar sign.

    Posted 2 years ago #

    we work on the problem on our page, since up-grade Host ( Mapping wrong)and up-date WP + WOO everything work fine, only variable Card doesn't work.
    Last but not least the pictures blurb, but see by yourself. Any idea?

  6. xazea11
    Posted 2 years ago #

    my bad... my store was working fine, until i try some ajax plugins. I have uninstaled and deleted them but now all variations does not show on drop down options.

    everything was fine before, variation settings is fine even now.
    please help me...

    my store: http://wowunik.com

  7. xazea11
    Posted 2 years ago #

    seems my JS is broken, isn't it?
    could someone help me please...

  8. xazea11
    Posted 2 years ago #

    - i have tried to deactivated all plugins, deleted themes and installed it again
    - i have upgrade to wp 3.7 and also latest WC

    but still, i could not find my variation works :-(
    help me, my customers get confused

  9. xazea11
    Posted 2 years ago #

    my bad again.
    it is caused by plugin conflicted.
    i am using seo word spinner and now i have uninstalled it, now all are fine.

  10. xazea11
    Posted 2 years ago #

    seems i see the same problem again
    now, i have tried to change the theme and uninstall all plugins, but i cannot see "add to cart" button on the variable product.
    but i can see it on the single product/simple product.

    any idea why it happens?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic