What is the event dispatching when abandoned cart save it's data?
-
16-10-2019 - |
문제
I need to save some additional data in sales_flat_quote
table. So what is the event which dispatching when the abandoned cart data saves in this table?
EDIT: I need to save item names comma separately in the sales_flat_quote table by adding a new column. Hope a data script can be used to fill the column. But How can I do this without an event observer?
Please be kind enough to provide suggestions.
Thanks in advance.
해결책 2
The following events was fulfilled the requirement.
sales_quote_collect_totals_after
onepage_checkout_index_middle
다른 팁
- There is no specific event triggered for abandoned cart (as far as I know).
- You can check it manually using a cron job.
- You can use
controller_action_postdispatch_customer_account_logout
event to check thesales_flat_quote
table which aren't present insales_flat_order
table. This will give you the abandoned quotes (in other words abandoned carts).
this link will give you the exact answer for your question.
note:
You cannot rely on
controller_action_postdispatch_customer_account_logout
event completely as there are many untraceable instances, which will result in abandoned carts viz.
- User closing browser window
- Sudden power off etc.
Therefore cron would be the better Idea!
or
There are some paid extensions to do this job for you.