Tagged: e-commerce
- This topic has 3 replies, 2 voices, and was last updated 6 years, 9 months ago by
Mahesh.
-
AuthorPosts
-
December 6, 2016 at 3:50 pm #104635
Partizant
ParticipantHi,
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,
DamianDecember 7, 2016 at 9:35 am #104714Mahesh
Keymaster@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,
MaheshDecember 7, 2016 at 2:03 pm #104777Partizant
ParticipantHi Mahesh,
please try to update your cart (change quantity or remove product) minimum two times (you will get 4 cart totals).
Best regards,
Damian SzewsDecember 7, 2016 at 3:49 pm #104779Mahesh
Keymaster@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 -
AuthorPosts
- The topic ‘Double cart totals’ is closed to new replies.