Magento何时考虑放弃手推车?那个时间限制在哪里设置? [英] When does Magento consider a cart to be abandoned? Where's that time limit set?
问题描述
如果保留默认设置,那么Magento 1.7会在什么情况下考虑放弃购物车?确定的代码位于哪里?
If left to default settings, what circumstances would have to occur for Magento 1.7 to consider a cart abandoned? Where is the code that makes this determination located?
我知道这可能是在报价中设置的,但是我一生都找不到.
I know that this is probably set somewhere in the quote, but I can't find it for the life of me.
我已经完成了一些谷歌搜索,但是像许多Magento问题一样,我一无所获.谢谢!
I've done some Googling, but like so many Magento questions I'm left empty handed. Thanks!
推荐答案
您可能已经知道设置位于此处:
As you probably know the setting is located here:
管理员=>系统=>配置=>销售=>结帐=>报价生命周期(天)
这会将设置添加到带有路径的数据库(core_config_data表)中
This will add the setting to the database (core_config_data table) with path:
结帐/购物车/delete_quote_after
此路径在以下代码中使用:
This path is used in the code on:
app/code/core/Mage/Sales/Model/Observer.php第54行
因此,当有人向购物车中添加商品时,它将被更新.当客户登录并且他的购物车在那里时,它将被更新.最近30天未更新购物车时.它将被删除.
So when someone is adding something to a cart it will be updated. When a customer logs in and his cart is there it will be updated. When a cart is not updated for the last 30 days. It will be removed.
其他信息:
如果您想知道何时使用此代码,则由magento的cronjob使用.
In case you wonder when this code is used, It is used by the cronjob of magento.
检查: App/code/core/Mage/Sales/etc/config.xml 行1732
<crontab>
<jobs>
<sales_clean_quotes>
<schedule>
<cron_expr>0 0 * * *</cron_expr>
</schedule>
<run>
<model>sales/observer::cleanExpiredQuotes</model>
</run>
</sales_clean_quotes>
希望这会有所帮助.
这篇关于Magento何时考虑放弃手推车?那个时间限制在哪里设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!