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 Android自定义滚动日期时间选择器
Android自定义滚动日期时间选择器
2
Android解决Button和TabLayout英文自动大写的问题
Android解决Button和TabLayout英文自动大写的问题
3
Android反编译
Android反编译
4
Activity生命周期记录
Activity生命周期记录
5
Magento SMTP扩展配置
Magento SMTP扩展配置
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。