WordPress.org

Forums

WooCommerce - excelling eCommerce
Always display Add To Cart button without animation (5 posts)

  1. Corey
    Member
    Posted 2 years ago #

    So I have set the CSS for 'single_variation_wrap' to always display as block but when the page loads as well as when I go back to selecting the default selection in the variable drop down, the Add To Cart button reloads in he vertically swiping animation.

    Is there a way to remove this animation from happen so the Add To Cart is always available

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

  2. Corey
    Member
    Posted 2 years ago #

    Could this be fixed?

  3. Corey
    Member
    Posted 2 years ago #

    Could this be fixed?

  4. IgniteWoo Team
    Member
    Posted 2 years ago #

    It's animated via jQuery, so you'd have to somehow unhook the jQuery. Easiest way is probably to rename the HTML element IDs / classes, and adjust CSS to match the new names.

  5. Corey
    Member
    Posted 2 years ago #

    Hey thanks for the response, but I think that could potentially lead to more problems because I'm sure a lot of other things are dependent on the class/ID. Is there a way to find the specific bit of code doing that animation?

    I have removed the following two lines of code and still getting the same issue
    $single_variation_wrap.slideDown('200').trigger( 'show_variation', [ variation ] );
    $variation_form.find('.single_variation_wrap').slideUp('200');

    Here's a test page
    http://coreytegeler.com/bolivares/shop/salvador-crewneck-sweater-copy/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.