Support » Plugin: WooCommerce » WC Subscpriptions not creating line items for a grouped subscription

  • Resolved roquec


    Dear Friends,

    I have a variable subscription configured on my site. The variable attribute is the billing period. It is possible to select the billing period when purchasing the subscription, and there are 4 variations (yearly, monthly, and so on).

    As per the WC documentation (, when buying multiple subscriptions with variable attributes, the subscriptions are grouped and for each grouped subscription child line items are created if needed.

    For example, if a customer purchases 2 x monthly subscriptions and 3 x yearly subscriptions in the one transaction, only 2 x subscriptions would be created – one with two line items for the monthly subscription products and one with three line items for the annual subscription products.

    Indeed, that works partially, the purchased subscriptions are grouped. As per the WC documentation (, the grouped subscription should have so many line items as subscription where grouped.

    That means if I purchase 2x Yearly variable-subscription, and 3x Monthly subscription, then two subscriptions should be created:
    ——-Subscription1: with 2 child line items.
    —————-1xYearly (this is missing)
    —————-1xyearly (this is missing)
    ——-Subscription2: with 3 child line items.
    —————-1xMonthly (this is missing)
    —————-1xMonthly (this is missing)
    —————-1xMonthly (this is missing)

    But this is not working. The line’s items for each subscription are not being created. In the section, MyAccount->subscription->Subscription totals, the individual line items for each subscription are not displayed, and I’m not able to cancel the individual line items.

    I dived into the source code, and the childline items for the subscriptions are never created. I was not able to find the reason yet. I don’t know if this is a configuration problem, but I suppose it should not be a configuration problem, because, the WC documentation says that the creation of line items for group subscriptions should be the standard behaviour since WC 2.0.

    May somebody help me? Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Support Stuart Duff – a11n


    Automattic Happiness Engineer

    Hi @roquec,

    This particular forum is for questions which are directly related to the features and functionality of the free WooCommerce plugin. It does not, however, offer support for questions related to any extensions or themes which can work with WooCommerce.

    If you have purchased a copy of WooCommerce Subscriptions from you can log in to your customer account and submit a support ticket for the WooCommerce Subscriptions plugin. The support team will hopefully be able to offer some guidance for you.

Viewing 1 replies (of 1 total)
  • The topic ‘WC Subscpriptions not creating line items for a grouped subscription’ is closed to new replies.