Zen Cart :: 优惠券 - 有没有办法创建一个页面来提取现有优惠券并显示它们?

发布于 2024-10-07 20:24:55 字数 50 浏览 0 评论 0原文

Zen Cart :: 优惠券 - 有没有办法创建一个页面来提取现有优惠券并显示它们?

Zen Cart :: coupons - is there a way to create a page that will pull in the existing coupons and display them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手长情犹 2024-10-14 20:24:55

我假设您指的是公共(目录)页面。

我从来没有这样做过,但为了以防万一它有帮助,我会首先查看文件 /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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文