• Resolved Rahul Dharecha

    (@rkdharecha)


    Hello sir

    I want to change next payment date for first time when subscription is created (not at renewal).
    For example, I have created one week plan. so if user buy this plan today(12th june 2018) then next payment date will be one week after today’s date (19th june 2018). and next payment date will be (26th june 2018).

    But i want to change first renewal date to Next Friday of current date i.e 22 june 2018. and then continue to weekly from this date i.e 29th june 2018 and continue.

    So is there any hook / method available to change first renewal date while subscribing ?

    Please help
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have additional question here – can user select a start date of the subscription ? e.g. when user purchasing any subscription can he requests to start from 18th June 2018, Monday, instead of immediately?

    Hi @rkdharecha,

    You can change the first subscription renewal date manually from the admin side after a subscription has been placed. From the Edit subscription page, change the Next Billing Date under Billing Schedule Details section to the desired date and click Update. The first renewal order will be placed on that date.

    @avansaber,

    The user can not select the start date of the subscription. When a user places subscription order, he will be charged immediately and the subscription will start at from the date the order is placed.

    Thread Starter Rahul Dharecha

    (@rkdharecha)

    Hello @markhf

    Thank you for your replay

    What if i want to update dates programmatically instead of manually? is there in trick for this ?

    I have write code to update “_next_payment” and “_schedule_next_payment” meta date to next Friday so first time next payment date is set to next Friday.

    But after 1st renewal cycle next payment date is not increase by one week, instad it is set to date of after 9 days.

    For example if i place order today, becuase of my code next payment date is set to next friday (22th june 2018). but after renewal from this date next renewal date is set to (1st july 2018). but it should be 29th june 2018

    Thank you

    Hi @rkdharecha

    If those dates are updated directly, the subscription workflow will break. When a renewal is triggered, the subscription scheduled action will set the next payment according to the subscription interval set.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change first renewal date’ is closed to new replies.