php - 在 Opencart 3.0 中检查结帐条件?
问题描述
我是 OpenCart 的初学者,目前,我正在使用期刊主题,我想制定一些条件,如果购物金额小于 1000,客户不允许结帐。这可以在 OpenCart 3.0 中进行吗?如果是这样,我应该添加哪个控制器、哪个视图? 帮我 :-(
更新:
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Total Amount Checkout</name>
<version>1.0.0</version>
<author>Custom</author>
<link>http://upencart.com</link>
<code>total_amount_checkout</code>
<file error="skip" path="admin/controller/setting/setting.php"> // Do here, Is this the right path that I can make change? [I am using Journal theme]
<operation error="skip">
<search><![CDATA[ ******* ]]></search> // Do here
<add position="*******"><![CDATA[*******]]></add> // Do here
</operation>
</file>
<file error="skip" path="catalog/controller/checkout/confirm.php">
<operation error="skip">
<search><![CDATA[$redirect = '';]]></search> // Do here
<add position="after"><[CDATA[]]></add> // Do here
</operation>
</file>
</modification>
我应该在哪个路径和什么代码中添加?根据我的问题在上面的代码中做一些事情。
解决方案
推荐阅读
- kotlin - 如何在 Kotlin 中将字节转换为位串?
- machine-learning - 将参数发送到 Keras Tuner 模型构建器函数
- python - 使用 .get() 处理不存在的嵌套键
- video - 通过 WebRTC 分辨率更改问题的 HTML5 视频和 MediaStreamTrack 流
- python - 如何与 matplotlib 同步绘图?
- swift - 启用应用程序组时使用`defaults` CLI:“域不存在”
- c# - .net core 3.卸载程序集
- image - 图像顶部带有文本的堆栈列表
- c - 在 c 中填充具有以下结构的矩阵
- c# - 当前上下文中不存在名称 Request