• Resolved icanoop

    (@icanoop)


    I’m using WP 3.9.2, WC 2.1.12 and WC Subscriptions 1.5.9. When the cart has a subscription in it as well as regular products, the WP Menu Cart displays the price of the subscription only, not the total price of the cart. Support for having subscriptions and regular products in the same cart was only added recently. Will WP Menu Cart be updated to support this?

    https://www.ads-software.com/plugins/wp-menu-cart/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter icanoop

    (@icanoop)

    It looks like the problem might have to do with ajax requests. If my cart has 3 regular products in it and then I add a subscription product, in the initial page load WP Menu Cart correctly shows 4 items in the cart with the correct total amount for the cart. Just after that, an ajax post is made to admin-ajax.php which has in its response object a field called a.wpmenucart-contents that contains html for a wpmenucart link which only shows 1 item in the cart and the total is only the amount of the subscription item. The WP Menu Cart changes to reflect the link in that ajax response which contains incorrect data. Any ideas?

    Plugin Contributor Jeremiah

    (@jprummer)

    Thanks for the post and for the additional info. I’m going to attempt to start testing this tonight or tomorrow. We have a new version that will be coming out in the next couple of days. Once we get this issue sorted out I’ll send a copy over to you for testing. Could you send an email to [email protected] so I can send you a test copy when it’s ready?

    Thread Starter icanoop

    (@icanoop)

    Sure. Now I think it’s a problem with WooCommerce itself, not with WP Menu Cart. WP Menu Cart is just calling cart->get_cart_contents_count() and cart->get_cart_total() each time so WooCommerce must be returning the wrong data. For some reason it works correctly in the WooCommerce cart page but not correctly when called from WP Menu Cart.

    Thread Starter icanoop

    (@icanoop)

    Did you have a chance to try and reproduce the problem? Any update on this?

    Thread Starter icanoop

    (@icanoop)

    WooCommerce Subscriptions 1.5.10 was just released and fixes this problem.

    Thread Starter icanoop

    (@icanoop)

    Here’s the site.

    https://suretydiy.com

    Add any of the top 3 featured products (those are subscriptions) and then add regular products from below. The WP Menu Cart at the top works correctly now.

    Plugin Contributor Jeremiah

    (@jprummer)

    Hey man! Glad to hear this is working with the latest version of WC Subscriptions. Let us know if you need anything else!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cart with subscriptions and products not working’ is closed to new replies.