首页 > 解决方案 > 在 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>

我应该在哪个路径和什么代码中添加?根据我的问题在上面的代码中做一些事情。

标签: phpopencartopencart2.xopencart-3

解决方案


推荐阅读