Zen Cart :: 优惠券 - 有没有办法创建一个页面来提取现有优惠券并显示它们?
Zen Cart :: 优惠券 - 有没有办法创建一个页面来提取现有优惠券并显示它们?
Zen Cart :: coupons - is there a way to create a page that will pull in the existing coupons and display them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您指的是公共(目录)页面。
我从来没有这样做过,但为了以防万一它有帮助,我会首先查看文件 /includes/modules/pages/discount_coupon/header.php。此标头从 POST 获取优惠券 ID 并从数据库检索其数据。
因此,复制此文件夹,将其重命名为“discount_coupons_list”,修改 header.php 以允许循环,并进行其余的细微修改(将任何新页面添加到 Zen Cart 中)(此处的说明)。对于模板文件,您还可以使用 tpl_discount_coupon_default.php 作为起点。
I am supposing that you mean a public (catalog) page.
I have never done it, but just in case it helps, I would start by looking at the file /includes/modules/pages/discount_coupon/header.php. This header gets the coupon id from the POST and retrieves its data from DB.
So it seems moderately easy to just duplicate this folder, rename it as "discount_coupons_list", modify the header.php to allow for a loop and do the rest of minor modifications that you would need to add any new page to Zen Cart (instructions here). For the template file, you could also use tpl_discount_coupon_default.php as a starting point.