PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Duplicate and Entry changing one field value

  1. 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?

    Posted 12 years ago on Wednesday January 11, 2012 | Permalink