Viewing 15 replies - 1 through 15 (of 33 total)
  • vark

    (@vark)

    If the environment was stable up til today,
    I’d think that your theme and WP 4.2 are not playing well together.
    Test this out by switching to a clean default theme like 2014.
    If that’s it, contact the theme authors for upgrade.

    If you don’t have 4.2 yet, then deactivate all plugins except woo and switch to 2014, retest. If good, add back 1 module at a time…

    iztalo

    (@iztalo)

    Same problem here.

    multicolormedia

    (@multicolormedia)

    I have the same problem… Cart summary Totals, twice!

    What the heck happened??

    multicolormedia

    (@multicolormedia)

    I think this is a proble due to the new version of woo that was released yesterday. I updated today, and now it shows up twice

    iztalo

    (@iztalo)

    Yeap, me too!

    vark

    (@vark)

    wow, completely different from what I thought.

    If you guys need to roll back from woo 2.3.8, suggest the following:
    (1) download 2.3.7 from here: https://wordpress.org/plugins/woocommerce/developers/
    (2) go in to your site via ftp, rename current woocommerce plugin folder to something else (if you just delete the plugin, undesired things will happen)
    (3) upload the downloaded 2.3.7 zip file via add plugin and activate …
    (4) go back in via ftp and delete the old renamed folder to clean up

    multicolormedia

    (@multicolormedia)

    Yep, that fixed the problem.

    Thanks @varktech.com for your suggestion.

    Definitely a problem with the new version. Hopefully they do another update to correct issue.

    Thread Starter teddyid

    (@teddyid)

    I think it’s a big problem. Thousands of shops affected. Woo should fix this problem as fast as possible.

    Coen Jacobs

    (@coenjacobs)

    This behaviour was introduced in this commit. The function call in the template got removed, added back via an action. Every theme overwriting this template will still have the original function call, as well as the function added via the action. This shouldn’t be pushed in a fix release like this, in my humble opinion. But now it’s there, let’s resolve this.

    Resolving the issue
    Resolving this issue is actually fairly easy. Your theme will have the cart/cart.php overwritten in the woocommerce folder of your (child) theme. In there, you will find this line (or at least something similar calling that same function):

    <?php woocommerce_cart_totals(); ?>

    You need to remove this line from your overwritten template file and your cart totals should only appear once.

    box2211

    (@box2211)

    Thanks a lot! Solved my problem in a sec.

    Jmdos

    (@jmdos)

    Thanks Coen,

    Good explanation 😉

    Tim0000

    (@tim0000)

    I really can´t find the:

    <?php woocommerce_cart_totals(); ?>

    My theme has no child theme with the cart.php

    I downloaded the whole folder (wp-content) and searched all files for the:

    <?php woocommerce_cart_totals(); ?>

    Is it possilbe to delete below actions instead of the above code, or has it any negative effect?

    +add_action( ‘woocommerce_cart_collaterals’, ‘woocommerce_cart_totals’, 10 );
    +add_action( ‘woocommerce_proceed_to_checkout’, ‘woocommerce_button_proceed_to_checkout’, 20 );

    Here is my page if you want to check:

    http://honorar-police.de/produkt/modul-c-nachjustierung/

    Tim0000

    (@tim0000)

    At me in the checkout page the payement and the cart total are twice?

    http://honorar-police.de/wp-content/uploads/2015/04/Screenshot_11.png

    Search for just that function call in your templates. It doesn’t have to wrapped by <?php and ?> on the same line.

    For your checkout page, that’s a different issue and unrelated to this change.

    Another way of dealing with updates is to download the current template, make your custom changes to it, and use that in your (child) theme. This process is a lot easier if you’ve documented your custom changes. Using comments in your template overrides is one way to keep track.

    You can check which of your template overrides are outdated in Admin Panel > WooCommerce > System Status

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘cart sum two times’ is closed to new replies.