• Resolved juslintek

    (@juslintek)


    Hi,

    I am having an issues that when plugin uses invoice date, I haven’t tried order date yet. It uses the invoice date of the parent order (first subscription order). So all recurring invoices that the very same date when the subscription was created.

    Would be nice to have a walkaround solution or proper solution. Also I am using custom template, but what it does for date field is use this function:

    <td><?php $this->date('invoice'); ?></td>

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @juslintek,

    Every PDF invoice uses its own creation date, so what you are describing is not the normal behavior, unless you are calling the invoice date from the parent order in your custom PDF template.

    My recommendation is to switch to the default Simple template, under WooCommerce?> PDF?Invoices?> General?> Choose a template, and check what date is displayed as invoice date.

    Thread Starter juslintek

    (@juslintek)

    Hi, I did it, but date seems to persist at woocommerce subscription subscriptions initial order’s date. Seems that either date is cached and somehow passed over to child orders or in triggers callbacks parent order is used instead of child order and only invoice number increments, because everything else stays the same.

    Also if I trigger invoice creation manually on order edit screen all is fine, but when it happens in the background it does not seem to work properly.

    Seems like intended child context is replaced by parent order or something like that.

    • This reply was modified 8 months, 1 week ago by juslintek. Reason: Forgot to mention that it is not triggered manually
    • This reply was modified 8 months, 1 week ago by juslintek. Reason: Few additional notes
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Could you please check and tell me which option you have selected for the invoice date under WooCommerce?> PDF?Invoices?> Documents?> Invoice?> Display invoice date?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @juslintek,

    Since we haven’t heard back from you in the last two weeks, we’re assuming you solved this issue, so I’ll go ahead and mark this ticket as Resolved.

    Feel free to reply to this topic is you still need help with this, or open a new topic if you have any other questions!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce Subscription invoice date of parent order invoice instead of new one’ is closed to new replies.