How can we improve WooCommerce?

Persistent cart

Currently we are using Woocommerce as a shop for a group of users that have received a (general) login, which they use to access the website.
As long as they are logged in, they can access te website, and place orders.

We have been using this since Woocommerce 1.6, and in this version we were able to automatically empty the cart for a user when he logged in, to make sure carts of different users do not collide and overlap.

Currently, while running Woocommerce 2.1.12 a feature called 'Persistent Cart' is not allowed us to empty the cart for every new user, and whenever a user adds something to their shopping cart, every other user that is logged in, also will have their shopping cart updated.

Clearly this is unwanted behavior in our scenario how we are using Woocommerce.

Because we want to have the feature that will allow us to control which users are able to visit the webshop, this is currently not possible with the 'Persistent Cart' being a problem.

There was also a post about the exact same issue in the Wordpress plugin support forum: http://wordpress.org/support/topic/turn-off-persistent-cart

Hopefully it will be possible to disable Persistent Cart in a future version, or just be able to apply filters to disable it.

Thanks for your attention

Rowan

63 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    RowanS shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • SWC commented  ·   ·  Flag as inappropriate

        This is huge problem for me. Association member site, single user/subscriber role login credentials for all members to access selected content. Using the disable persistent cart solution in the comment below doesn't seem to work for me.

      • Anonymous commented  ·   ·  Flag as inappropriate

        I've been asking WooCommerce to do this for some time. We need the ability to turn off the persistent cart as we use a shared account for our store.

      • Yoda Nonymous commented  ·   ·  Flag as inappropriate

        This appears to work.

        function d6_remove_persistent_cart($value, $id, $key) {
        if ($key == '_woocommerce_persistent_cart') {
        return false;
        }
        return $value;
        }
        add_filter('get_user_metadata', 'd6_remove_persistent_cart', 10, 3);
        add_filter('update_user_metadata', 'd6_remove_persistent_cart', 10, 3);
        add_filter('add_user_metadata', 'd6_remove_persistent_cart', 10, 3);

      • Yoda Nonymous commented  ·   ·  Flag as inappropriate

        We've been getting a lot of bugs relating to this due to how other plugins interact with WC. Being able to simply disable the persistent cart would be a huge help.

      WooCommerce: Category - Core

      Feedback and Knowledge Base