忠诚度 – 资历(年资)规则
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_394504b4cf239acb5423dfd8b17b96b0
这个模块是PrestaShop广受欢迎的myprestaloyalty模块的强大扩展,旨在显著增强您商店的客户忠诚度。它根据客户的账户年龄(自注册以来的天数)自动奖励忠诚积分——客户与您在一起的时间越长,他们获得的奖励就越多。借助先进的cron规则,整个过程完全自动化,无需手动干预,确保持续建立客户关系。此外,个性化的电子邮件通知会告知客户他们的奖励,从而提高他们的参与度并鼓励他们重复购买。通过简单有效的方式,提高客户保留率并建立持久的客户关系。
以下是 PrestaShop 模块翻译的内容: Loyalty points – Tenure (seniority) rules 语言:中文
模块翻译的最后更新日期: 2026-04-22 01:46:04
忠诚度 – 资历(年资)规则
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_394504b4cf239acb5423dfd8b17b96b0
将资历规则和年资积分的 cron 任务添加到主要忠诚度模块中。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_ba1a269a7675771236a6883a86589544
您确定要卸载此扩展吗?
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_a86c7c6a2db9d2eb5b34351bb69ac9bd
请先安装并启用主模块 \"Customer loyalty and rewards\" (myprestaloyalty)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_936ec25f786e8cf714b70621eb9d5f13
设置已更新。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_9f3a9b8720c8566caee5adffb9ca5bbe
关于此扩展
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_ca1b91c83ca055f0fdc453a4e94ceb16
此模块使用资历(年资)规则扩展了主要的客户忠诚度和奖励模块(myprestaloyalty):基于客户账户使用时间的可用配置阈值,以及基于 cron 自动奖励忠诚度积分。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_c4a8f885beaa4c6e6f96cc45afb34a27
主模块配置:
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_327fd034558917126ec8f614d25e0b0d
打开 myprestaloyalty 配置
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_195711df4b5c052462321ad9a109e8fd
资历规则控制器:
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_0c0f04666d6eed88c025abc46bb255c8
打开 资历(年资)规则
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_119840bf044e615c75fdd3359dfeaf67
资历设置
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_23e30371a34ed131ffddbd01a47a51fd
增加年资积分时发送电子邮件
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_607abc32624b3c1c03b0d7d8d13cfc22
此模块仅在执行资历 cron 任务并奖励积分时发送电子邮件。如果启用:客户每次获得年资积分时都会收到一封电子邮件(模板:loyalty_tenure)。如果禁用:积分仍由 cron 奖励,但不会向客户发送电子邮件。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_f67e81320db06346120d06c3a890340b
启用
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_00d23a76e43b46dae9ec7aa9dcbebb32
禁用
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_b9f5c797ebbf55adccdd8539a65a0241
保存
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_c9cc8cce247e49bae79f15173ce97354
您的秘密 cron URL(请准确复制此项)
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_265b5c478eb6784b391afc05a38fb3b0
提示:将此 URL 粘贴到您的浏览器中一次。您应该会看到一个简短的文本响应(例如 “OK: tenure cron executed…”)。如果您看到 “Forbidden”,请重新加载此页面并再次复制该 URL。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_852e4dc25be109eefb606c7d1bcb1dd7
当计划任务调用上述 URL 时授予年资积分,而不是在客户浏览商店时。选择与您的主机环境匹配的选项卡(SSH、cPanel 等)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_55dfc2aeaafd6dfd5a9c06c8a73d49d0
Cron 按计划运行(例如每天一次)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_c48df3da3d4d03bd89ed959fd47a7918
符合条件的客户将根据您的资历规则获得积分。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_3f99225bbec6c366fd3f03673118169e
如果如上设置中启用,将发送可选电子邮件 (loyalty_tenure)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_69ff2816371eaa16ecde49bd3a682d7c
建议:每天一次(例如服务器时间 02:15),这样所有超过阈值的客户都会在一批处理中完成。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_650cb2d1ca9c96cc3d7ac8226b566826
Cron 字段
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_94d303a79593fe4d0fa8296c162a463d
含义
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_7277de5f2ed6f17c61f1f25594591a82
每天 02:15
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_7f3f2eb8cd1b533d376c6308ba00c698
每 6 小时(仅在您需要更快更新时使用)
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_c7d5193dc81be3e91b6b108078b43d34
每周一 03:00
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_12ec499fa0bdce3c3517a8794b448032
最适合 VPS、独立服务器或任何为您提供 SSH 和真正 Linux crontab 的主机。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_8e12ba856df7809d33ae7884bf8fd1fb
使用 SSH(PuTTY、终端等)连接。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_447a37b525ed89b8e7bc7c5c5fec6ca1
运行:crontab -e
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_20a433660512fe8c9ba6e5fabcb3321d
在末尾添加一行(选择 wget 或 curl——请勿在同一个计划表中两者都用,除非您想双重运行):
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_ebb117bce7fc5d1caa6d9fa310074cf7
用您首选的分钟/小时替换 15 2 * * *。确保服务器上存在 wget 或 curl(大多数 Linux 镜像包含这两者)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_f693dc65935faab3398541db6cfaa289
在共享主机上很常见。不需要 SSH。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_0fcace1112b98331842cc4b530f24de8
登录 cPanel。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_01aebcbbf0b63c6f9e2ca9e7a63d936d
打开 “Cron Jobs”(有时在高级选项下)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_2ed1955d2fedea344e6d4ee65e7d1f52
在 “Add New Cron Job” 下,将通用设置设为 “Once a day” 或手动输入分钟/小时(例如 02:15 就是分钟 15,小时 2)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_ff95c72ce59744aad20271e3bc432a5a
在命令字段中,粘贴以下内容之一(单行):
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_2d492b174ad86fa530962d80a8fa8f2b
如果不可用 wget,请改用 curl(询问您的主机商或在命令字段中使用与之前相同 URL 的 “curl”)。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_f8c8335a9939f6c3a095eaee794b6b12
Plesk:Websites & Domains → 您的域名 → Scheduled Tasks(或 Cron)。创建一个每天运行并执行的任务:
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_195ad0bf032c00f43da6371f7cf57423
DirectAdmin:Advanced Features → Cron Jobs。使用与上面相同的 curl 或 wget 命令添加一个每日任务。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_84eff7ea91250c4235bf2cd611ae94e0
其他面板(SuperAdmin、定制的代理商面板):查找 “Cron”、“Scheduled tasks” 或 “Task scheduler”。思路都是一样的:定期执行 wget/curl/PHP 访问您的 cron URL。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_d211016a41629a35de24518a59fb4846
某些主机仅允许在 cron 中使用 PHP。示例(如果需要请调整 php 的路径):
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_5698d4a09732dea90d5eed97785ea6e5
如果禁用了 allow_url_fopen,请联系支持部门;他们可能会建议改在 cron 中使用 curl。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_e8ca8a49ca21bb348e4632e03e169260
Token 不匹配。请再次从此页面复制 URL。请勿截断地址。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_690119880e003355715d81c14e9c9f92
主要的忠诚度模块可能需要更新,或者 PHP 在大型产品目录中达到超时。检查服务器错误日志;尝试在非高峰时段进行,或要求您的主机商为 CLI/cron 提高 max_execution_time。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_2f057902c783f8e1483ed55c9620c09f
确认 cron 确实在运行(检查 cron 电子邮件日志或添加日志记录)。验证资历规则是否激活,并且客户注册时间已足够长。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_5c71df7761233959c0f19c0c75752054
如果 curl 因证书错误而失败,您的主机可能需要更新 CA 证书包,或根据主机支持部门建议使用带有适当标志的 wget。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_2c581e389eaa9d18fcbbc2e04921e17a
此 URL 包含私人 Token。任何知道它的人都可以触发资历任务(奖励积分和可选电子邮件)。请将其视为密码一般对待。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_84ef026ffde85bf329f7ab9e21238a40
请勿在工单、论坛或屏幕截图中发布该 URL。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_555838aed955fa37131e5f47ecb79115
如果发生泄漏:从配置中删除 PS_LOYALTY_TENURE_CRON_TOKEN(或重新安装模块),然后重新访问此页面以获取新 URL。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_726c2f157a7f6c8ab3a9f1c17a1be969
概览
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_3b878279a04dc47d60932cb294d96259
计划示例
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_b7ce55325d1395dae6f4ca69f287f30e
帮助
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_6a26f548831e6a8c26bfbbd9f6ec61e0
故障排除
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_231cf4c70d866b616c21baddaeed0696
安全性
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_2fae32629d4ef4fc6341f1751b405e45
Cron 任务 — 自动年资(资历)积分
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_9c467ab2c9e726b82ed5e2b7e72c7f34
如下:针对各种环境的分步说明。在所有情况下请使用相同的 URL。
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_7988c97ef962e1cc06118ec1e4fcb58f
资历(年资)规则
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_b856a007298c2cd323d2a4163913e717
没有到期日
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_553fd9df42d56b69cb30e3f8c63a79da
您的年资忠诚度积分
<{myprestaloyalty_tenure}prestashop>myprestaloyalty_tenure_223a872717d11c6b8ac98cd51c1bd76a
ID
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_b718adec73e04ce3ec720dd11a06a308
资历(天数)
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_a08aa24991e4f73545f90b31c8517f96
积分
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_75dd5f1160a3f02b6fae89c54361a1b3
积分有效期(天数)
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_0c499f8d9d3ac318087d22423759481a
奖励积分保持有效的天数。
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_857494723fc07f30ac678112fdcb324f
激活
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_4d3d769b812b6faa6b76e1a8abaece2d
添加日期
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_85de9a3fcc45082345f6cfe7c8c98e0f
资历(年资)规则
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_b856a007298c2cd323d2a4163913e717
资历规则
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_2bd76736ef2e8f60268b47eb32e54830
自客户注册之日起授予积分的最低天数。
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_ebefb4c8cc93ff8de12fb895b3e45591
默认:3650 天(10 年)。在 cron 奖励积分时以及在给客户的电子邮件中应用。
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_06eff7db5cb39c606c3c83b2c5dceb69
天
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_44fdec47036f482b68b748f9d786801b
是
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_93cba07454f06a4a960172bbd6e2a435
否
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_bafd7322c6e97d25b6299b5d6fe8920b
保存
<{myprestaloyalty_tenure}prestashop>adminmyprestaloyaltytenurecontroller_c9cc8cce247e49bae79f15173ce97354
有新版本可用,请访问 http://MyPresta.eu 查看更多信息
<{myprestaloyalty_tenure}prestashop>updatechecker_4c73ce9e52a25c69cf0dce126d548f98
在更新日志中查看更多详细信息
<{myprestaloyalty_tenure}prestashop>updatechecker_2b2972b182c459cca33e2ad5bc02ffa4
更新设置已保存。
<{myprestaloyalty_tenure}prestashop>updatechecker_211e1c5c23f0258afb37097ed6ab0b66
有新版本可用!
<{myprestaloyalty_tenure}prestashop>updatechecker_af02b06496e83946e73e69d774782654
模块已是最新!
<{myprestaloyalty_tenure}prestashop>updatechecker_358a5fcb448d507b41d7c0a83485973a
MyPresta 更新
<{myprestaloyalty_tenure}prestashop>updatechecker_8c322740e2dac2db51b8ac4f900a017a
手动检查
<{myprestaloyalty_tenure}prestashop>updatechecker_d8d7cffba66831beaf6b7a82b583937a
手动检查 MyPresta.eu 服务器上是否有此模块的新版本。
<{myprestaloyalty_tenure}prestashop>updatechecker_5c1db38dcb5778f0891eaec624847352
自动通知
<{myprestaloyalty_tenure}prestashop>updatechecker_00847b0ee5aa8294ebd75b8ab6367abd
启用
<{myprestaloyalty_tenure}prestashop>updatechecker_00d23a76e43b46dae9ec7aa9dcbebb32
禁用
<{myprestaloyalty_tenure}prestashop>updatechecker_b9f5c797ebbf55adccdd8539a65a0241
当激活此选项时,它将在您商店的后台显示关于新模块版本可用性的通知。
<{myprestaloyalty_tenure}prestashop>updatechecker_3801cbb7ad37df3741081bdbdd9d8ce7
产品页面
<{myprestaloyalty_tenure}prestashop>updatechecker_235e8d1a54ecddcf1d3ff533331ed416
这是指向官方模块页面的直接链接,您可以在其中阅读有关模块、其更新等的信息。
<{myprestaloyalty_tenure}prestashop>updatechecker_a8448b7ec3cb5ea2a07e2c9781092425
保存
<{myprestaloyalty_tenure}prestashop>updatechecker_c9cc8cce247e49bae79f15173ce97354
立即检查
<{myprestaloyalty_tenure}prestashop>updatechecker_86c236b531f3a328bb44d82727bae118