ZenCart安装配置及二次开发记录

官网:https://www.zen-cart.com/index.php

样例数据

When you installed, there was a checkbox that asked if you wanted to install the demo products. You can install those products after-the-fact by using your admin’s Tools->Install SQL Patches and choosing the file from the Zen Cart distribution: /zc_install/sql/demo/mysql_demo.sql

页面与模板匹配

页面:includes/modules/pages/test/header_php.php

<?php
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
?>

模板:includes/templates/template_default/templates/tpl_test_default.php

<?php
echo $_GET['name'] . '<br>';
echo $_GET['city'];

访问:http://zencart.appblog.cn/index.php?main_page=test&name=Joe&city=HangZhou

则在内容区输出:

Joe
HangZhou

支付跳转流程

(1)http://zencart.appblog.cn/index.php?main_page=shopping_cart
(2)http://zencart.appblog.cn/index.php?main_page=checkout_shipping
(3)http://zencart.appblog.cn/index.php?main_page=checkout_payment
(4)http://zencart.appblog.cn/index.php?main_page=checkout_confirmation

支付异步通知及同步重定向地址

$notifyUrl = zen_href_link('ipn_main_handler.php', '', 'SSL', false, false, true);
$redirectUrl = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
上一篇 ZooKeeper Web控制台ZKUI
下一篇 ZenCart类库payment.php解读实现原理
目录
文章列表
1 Linux下部署ant-design-pro大小写敏感问题
Linux下部署ant-design-pro大小写敏感问题
2
Flutter Widget之DropdownButton
Flutter Widget之DropdownButton
3
Android测试(6):Android UI自动化测试
Android测试(6):Android UI自动化测试
4
RecyclerView的点击事件处理
RecyclerView的点击事件处理
5
Groovy代码示例 - 数据库高级操作
Groovy代码示例 - 数据库高级操作
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。