开发者

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

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜