WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bolivares
    Member
    Posted 11 months 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. bolivares
    Member
    Posted 11 months ago #

    Could this be fixed?

  3. bolivares
    Member
    Posted 11 months ago #

    Could this be fixed?

  4. IgniteWoo
    Member
    Posted 11 months 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. bolivares
    Member
    Posted 11 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.