Git Product home page Git Product logo

Comments (7)

manospsyx avatar manospsyx commented on June 18, 2024

@thenbrent Not sure what might be going on here after looking at Subs code a couple times. Inline doc of class-wc-subscriptions-cart.php is OK, but I'm missing some background that I'd need to be fully able to grasp the underlying logic (or, better, which part of it fails).

from woocommerce-subscribe-all-the-things.

thenbrent avatar thenbrent commented on June 18, 2024

@franticpsyx yeah, we do some pretty crazy things with recurring shipping from v2.0.12 onwards in Subscriptions, and shipping gets really complicated, so I want to save you going down that rabbit hole!

I've assigned this one to me so will tackle it. For reference, it would have been introduced with https://github.com/Prospress/woocommerce-subscriptions/pull/1358

from woocommerce-subscribe-all-the-things.

thenbrent avatar thenbrent commented on June 18, 2024

@shadimanna if you have a site you can easily test v2.0.14 on again, would you mind updating again to v2.0.14 and then changing line 258 of woocommerce-subscriptions/includes/class-wc-subscriptions-cart.php from:

// Keep a record of the shipping packages so we can add them to the global packages later
self::$recurring_shipping_packages[ $recurring_cart_key ] = WC()->shipping->get_packages();

To:

// Keep a record of the shipping packages so we can add them to the global packages later
if ( 0 != $recurring_cart->next_payment_date ) {
    self::$recurring_shipping_packages[ $recurring_cart_key ] = WC()->shipping->get_packages();
}

And letting us know if that fixes it?

That fix is from a separate, but possible related, issue (https://github.com/Prospress/woocommerce-subscriptions/pull/1404).

from woocommerce-subscribe-all-the-things.

manospsyx avatar manospsyx commented on June 18, 2024

@thenbrent In case it helps, I'm also getting a PHP Notice: Undefined index: every_2nd_month_0 in /wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-cart.php on line 1070

I've assigned this one to me so will tackle it.

Ops, sorry, just noticed. Dived straight to the code as soon as I saw the notification.

from woocommerce-subscribe-all-the-things.

shadimanna avatar shadimanna commented on June 18, 2024

@thenbrent I tried your fix but it still seems to be happening. Do you want me to give you access to the staging site so you can take a look? If not let me know and I can test another fix.

from woocommerce-subscribe-all-the-things.

thenbrent avatar thenbrent commented on June 18, 2024

@shadimanna that would be a great help. Please email temp admin creds to [email protected]. 😄

from woocommerce-subscribe-all-the-things.

thenbrent avatar thenbrent commented on June 18, 2024

We’ve now fixed this issue in Subscriptions. The PR with the fix here: https://github.com/Prospress/woocommerce-subscriptions/pull/1404 (for those with access to the repo).

We plan to release that this week in a version 2.0.15. Closing this one now. Thanks for the report and help @shadimanna. 😄

from woocommerce-subscribe-all-the-things.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.