WooCommerce Cart qty buttons only showing after reloading
<p>I have created a copy of the cart template in my child theme and made some custom changes to the cart behaviour (CSS side cart like in hibr.com). I have these cart-related snippets in my header.php:</p>

<pre><code>&lt;div class="close-me2"&gt;&lt;/div&gt;
&lt;?php echo do_shortcode('[woocommerce_cart]'); ?&gt;




&lt;div class="cart-outer" data-user-set-ocm="&lt;?php echo $userSetSideWidgetArea; ?&gt;"&gt;
        &lt;div class="cart-menu-wrap"&gt;
            &lt;div class="cart-menu"&gt;
                &lt;a class="cart-contents" href="&lt;?php //echo $woocommerce-&gt;cart-&gt;get_cart_url(); ?&gt;"&gt;&lt;div class="cart-icon-wrap"&gt;&lt;i class="icon-salient-cart"&gt;&lt;/i&gt; &lt;div class="cart-wrap"&gt;&lt;span&gt;&lt;?php echo $woocommerce-&gt;cart-&gt;cart_contents_count; ?&gt; &lt;/span&gt;&lt;/div&gt; &lt;/div&gt;&lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;



&lt;div id="side-cart"&gt;
&lt;div class="close-me2"&gt;&lt;/div&gt;
&lt;?php echo do_shortcode('[woocommerce_cart]'); ?&gt;

&lt;?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?&gt;
    &lt;div class="widget-area"&gt;
        &lt;?php dynamic_sidebar( 'sidebar-4' ); ?&gt;
    &lt;/div&gt;
&lt;?php endif; ?&gt;
</code></pre>

<p></p>

<p>Unfortunately it seems like whenever adding a product to the cart, the "wrong" cart is shown ever since no quantity buttons " - + " are displayed. After refreshing the page, the cart is displayed WITH the qty buttons: <a href="http://screencast.com/t/gzkb6QPfz" rel="nofollow">http://screencast.com/t/gzkb6QPfz</a></p>

<p>I have installed this plugin as well: wordpress.org/plugins/woocommerce-ajax-add-to-cart-for-variable-products/changelog/</p>

<p>These were the custom changes I've added to it, ever since my side-cart needs to be triggered:</p>

<pre><code>// Changes button classes
            $thisbutton.addClass( 'added' );

            var rightVal = 0; // base value
            $('#side-cart').animate({right: rightVal + 'px'}, {queue: false, duration: 500});

            $('.cart-outer a').attr("href", "javascript:void(0)");



            $('#side-cart .woocommerce').removeAttr('style');

            $('#side-cart .widget-area').removeAttr('style');


            $('.cart_empty3').attr('style', 'display:none !important;');
</code></pre>

<p>That all seems to me that some script is not loading properly after adding a product into cart, but I have no clue on where to start looking for the bug.</p>

<p>If you have an idea, let me know please. I will share a link for the website if needed, ever since I currently have http auth running.</p>

<p>Thanks!</p>