Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #104635
    Partizant
    Participant

    Hi,

    Can You help me with this problem – the cart totals is doubling after click “update cart”.
    Try to click several times “update cart” on your demo.

    Best regards,
    Damian

    #104714
    Mahesh
    Participant

    @partizant: I checked the same on our server, and got no such issue. The update cart button automatically is disabled once updated. Let me know further.

    Regards,
    Mahesh

    #104777
    Partizant
    Participant

    Hi Mahesh,

    please try to update your cart (change quantity or remove product) minimum two times (you will get 4 cart totals).

    Best regards,
    Damian Szews

    #104779
    Mahesh
    Participant

    @partizant: There has been a small bug in the theme, edit woocommerce.php file (e-commerce-pro/inc/woocommerce.php) remove this following codes (line 36):

    /**
     * Show cart contents (total link).
     */
    if ( ! function_exists( 'e_commerce_cart_link' ) ) {
    
    	function e_commerce_cart_link() {
    		?>
    		<div class="cart-contents cart_totals sidebar-cart">
    	        <?php
    	        if ( is_woocommerce_activated() ) {
    			?>
    			    <a href="<?php echo esc_url( WC()->cart->get_cart_url() ); ?>" title="<?php _e( 'View cart', 'e-commerce-pro' ); ?>">
    					<span class="cart-icon"></span><span class="subtotal"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'e-commerce-pro' ), WC()->cart->get_cart_contents_count() ) );?></span>
    				</a>
    	        <?php
    			}
    			else {
    				get_Search_form();
    			}
    		?>
    		</div><!-- .cart-contents.cart_totals.sidebar-cart -->
    		<?php
    	}
    }

    edit structure.php file (e-commerce-pro/inc/structure.php) remove this following codes (line 286):

    <?php
        if ( !$e_commerce_primary_search_disable ) :
            e_commerce_cart_link() ;
        endif;
    ?>

    You can remove this from the core files itself. The issue will be fixed on the next update.

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Double cart totals’ is closed to new replies.