• Resolved mseka

    (@mseka)


    hi there, thanks for creating this great plugin.
    I wonder if this plugin is able to add “how many days before the next payment” on the subscription order.

    For example,
    new subscription (10 days) order already completed, and then on the invoice will also appearing info “9 days until next payment” or similar

    is it possible?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @mseka,

    That depends on how that information is saved in WooCommerce, same if it’s created by another plugin. One way to find WooCommerce hidden custom fields is to use the WooCommerce Store Toolkit plugin: https://docs.wpovernight.com/general/finding-woocommerce-custom-fields/
    The hidden custom fields would then appear in your order details screen, under “Order Post Meta”.

    Afterwards, you’d need to follow this guide to make your custom field appear on your PDF document using template action hooks: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/displaying-a-custom-field/#with-a-template-action-hook

    Instead of the guide above, the Premium Extension of our plugin makes it much easier, as you can used the Custom Blocks provided by this extension to display custom fields.

    Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @mseka,

    Upon reviewing your request, I realize that WooCommerce Subscriptions works with separate Subscription entities. A subscription purchase will create a Subscription entity in the WooCommerce store that holds all the information about duration, renewal etc. And this Subscription will spawn new renewal orders for each charge. These will have a connection to the Subscription entity under the hood & the data you are asking for is actually not regular order meta and would need to be pulled separately.

    Also important to consider here is that the Subscription object can change (after the renewal some properties will update for the validity), so if the invoices need to be immutable you’d either need to store the information you want to show in the invoice in the order meta (custom script) or store the PDF (“Keep PDF on server” in the Professional extension). Sadly, this integration is not particularly straight-foward.

    Thread Starter mseka

    (@mseka)

    hi @dpeyou
    oh I see, thanks for explaining this, I can see it clearly for the flow. I will explain this to the client.
    I really appreciate your effort and time in checking in on my request.

    Hope you guys are well there
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Subscription next payment date’ is closed to new replies.