on ‎2018 Aug 30 6:06 AM
Hi Experts,
I've a requirement to add a boolean attribute for every orders. isEmailSent. By default, the value of this attribute would be false. A cronjob will fetch the orders from the database whose isEmailSent value is false. A business process will send an email to the customers. Once, the email is sent, the order will be saved into the database with isEmailSent to true.
I'm confused whether to add this attribute to AbstractOrderModel or OrderModel.
Can you please highlight the differences if I add it to either of the model?
Thanks in advance.
Request clarification before answering.
You add an attribute to AbstractOrderModel if you need it on Cart & Order both, since your requirement is to fetch the attribute's value from an already placed order. It doesn't make sense to have this attribute on Cart. So just put it in OrderModel and you should be fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.