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');

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/25/zencart-installation-configuration-and-secondary-development-records/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
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. Yo……
<<上一篇
下一篇>>
文章目录
关闭
目 录