• Resolved bungpm

    (@bl-solutions)


    I am using WooThemes Product Bundles plugin to create a combination product consisting of a physical product and a subscription product. When checking out the order, Paymill fails with the following error message:

    Invalid Interval Format! Format: integer MONTH|YEAR|WEEK|DAY[, day of week] (not with daily interval)

    This is because in lib/integration/subscriptions.inc.php, offerCreate gets called with an interval parameter that is “1 0” instead of “1 MONTH”.

    https://wordpress.org/plugins/paymill/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hello,

    Could you drop me an e-mail: yann.irbah[at]paymill.com so I can try to help you?

    Thanks ๐Ÿ™‚

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @l0ck3 To avoid problems could you get @matthias-reuter to add you as a plugin contributor? That way you’ll be clearly shown to be someone who officially supports this plugin.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    I’ll check this issue on my test installation.

    @bl-solutions: Which Paymill for WordPress plugin version you are using?

    @jan: I’m fully responsible for the plugin, but employees of Paymill can be recognized and trusted by email addresses ending with @paymil.com

    @matthias-reuter If you need any insight or assistance from our side, just let me know.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @jan: I’m fully responsible for the plugin, but employees of Paymill can be recognized and trusted by email addresses ending with @paymil.com

    That’s good but a green notification bar would make it easier for moderators to not redact their email addresses. The normal thing to do would be to redact the email address. ;(

    @l0ck3 Rather than posting an email (emails are bad in forums except from authors in their own sub-forum) can you use a contact URL off of the main web such such as https://www.paymill.com/en/contact instead?

    Thread Starter bungpm

    (@bl-solutions)

    Thanks to everybody for the quick replies!

    @matthias-reuter: I am using the latest version of the Paymill-plugin: 1.9.1. Woocommerce is version 2.3.11, Product Bundles version 4.9.5 and subscriptions version 1.5.28.

    I suspect that the Product Bundles turns the “bundle”-product into a subscription product of its own without actually setting all the properties, like the period and interval.

    If there is anything that I can do to help fixing this, let me know.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    @bl-solutions: Could you provide me a screenshot of your product settings?

    Thread Starter bungpm

    (@bl-solutions)

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    I am sorry, the picture isn’t loading :/

    Thread Starter bungpm

    (@bl-solutions)

    Thread Starter bungpm

    (@bl-solutions)

    Looking through the code some more it seems to me that so far, the plugin only supports a subscription being the single item in the cart, right? If I change processSubscriptions as follows, I get a few steps further:

    foreach($this->cart['stamp'] as $product){
    
       if(isset($product['product_id']) && intval($product['product_id']) > 0){
    
    (...)

    Product Bundles seems to set the period returned by WC_Subscriptions_Order::get_subscription_period to 0. If I set $period in processSubscription to “MONTH” as a blunt hack, a subscription is successfully created in Paymill.

    I am still getting a “50000: Problem with back end” error for the simple product that I didn’t investigate further.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Hi,

    that’s correct. As the bundled basket is a new feature, it isn’t supported yet by Paymill for WordPress plugin.

    Kind regards,

    Matthias

    Thread Starter bungpm

    (@bl-solutions)

    Hi,

    it’s actually worse. No mixed cart including a physical product and a subscription work, regardless of how it was assembled. Also manually selecting a physical product and a subscription product from the shop causes the interval error… =(

    regards,

    Jรถrn

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    I’ll take care for that issue and will work on support for mixed cart, but currently there is an ETA about 2 months for that.

    Thread Starter bungpm

    (@bl-solutions)

    Hi Matthias,

    that is great news – thanks a lot! Is there anything that I can do to help?

    best,

    Jรถrn

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Paymill not working with subscription product in product bundle’ is closed to new replies.