I am building a subscription site where members can select different options every week, if they would like to. These options determine what is shipped to them.
The idea is that if you do not change your options, you receive what you ordered last week.
What I am trying to do:
Schedule a cron event that will
- check if user has an entry this week
- if not, create a copy of last week's entry and change the order number (which is generated by a custom function)
So everything about the entry should stay the same EXCEPT the order # field.
Is there a way to do this without a bunch of SQL? Can I load the $entry object, change the field, and then resubmit it as a new $entry object? Otherwise I will need to update the entries and the lead table, correct?