首页 \ 问答 \ OpenCart 3没有显示我的模块(OpenCart 3 not showing my module)

OpenCart 3没有显示我的模块(OpenCart 3 not showing my module)

我是OpenCart的新手,但我了解PHP和MVC平台。 我想让OpenCart的导入器从CSV导入一些产品,并为他们导入照片。

但是,在过去的两个小时里,我一直在努力试图在管理员中看到我的模块。 我创建了一个admin/controller/module/custom_importer.php

<?php
class ControllerModuleCustomImporter extends Controller {

}

和语言文件admin/language/en-gb/module/custom_importer.php

$_['heading_title'] = 'Custom Importer';

但是,在我的管理员中,我似乎根本找不到该模块。 这是最简单,最空的模块。 我究竟做错了什么?

Opencart:3.0.2.0版


I'm fairly new to OpenCart but I know PHP and MVC platforms. I want to make an importer for OpenCart to import some products from a CSV and the photos for them.

However, I've been struggling for the last 2 hours trying to see my module in the admin. I created an admin/controller/module/custom_importer.php:

<?php
class ControllerModuleCustomImporter extends Controller {

}

and a language file admin/language/en-gb/module/custom_importer.php:

$_['heading_title'] = 'Custom Importer';

However, in my admin I can't seem to find the module at all. It's the simplest, emptiest module. What am I doing wrong?

Opencart: Version 3.0.2.0


原文:https://stackoverflow.com/questions/45662090
更新时间:2022-05-01 20:05

最满意答案

这会有帮助吗?

SELECT NVL (a.key, b.key) AS "KEY",
       NVL (a.text, b.text) as "TEXT",
       CASE
          WHEN a.key IS NOT NULL AND b.key IS NULL THEN
             'Insert'
          WHEN a.key IS NULL AND b.key IS NOT NULL THEN
             'Delete'
          WHEN a.key IS NOT NULL AND b.key IS NOT NULL AND a.text != b.text THEN
             'Update'
          WHEN a.key IS NOT NULL AND b.key IS NOT NULL AND a.text = b.text THEN
             'Nothing'
       END
          "CASE"
  FROM tablea a FULL OUTER JOIN tableb b ON a.key = b.key;

Would this help?

SELECT NVL (a.key, b.key) AS "KEY",
       NVL (a.text, b.text) as "TEXT",
       CASE
          WHEN a.key IS NOT NULL AND b.key IS NULL THEN
             'Insert'
          WHEN a.key IS NULL AND b.key IS NOT NULL THEN
             'Delete'
          WHEN a.key IS NOT NULL AND b.key IS NOT NULL AND a.text != b.text THEN
             'Update'
          WHEN a.key IS NOT NULL AND b.key IS NOT NULL AND a.text = b.text THEN
             'Nothing'
       END
          "CASE"
  FROM tablea a FULL OUTER JOIN tableb b ON a.key = b.key;

相关问答

更多
  • 您可以使用嵌套的select和case语句执行此操作。 嵌套选择用于查看是否存在满足相似性条件的行。 请注意,如果值相同以及B列以A列开头,则like将找到匹配: select t.*, (case when exists (select 1 from table t2 where t1.B like concat(t2.A, '%')) then 'Yes' else 'No' end) as C from table t; ...
  • 在MySQL中最简单的方法是使用group_concat()将值放在一起并进行比较: select fd.bars, group_concat(fd.drinker) as drinkers from (select f.drinker, group_concat(f.bar order by f.bar) as bars from frequents f group by f.drinker ) fd group by bars having count(*) > 1; ...
  • 这会有帮助吗? SELECT NVL (a.key, b.key) AS "KEY", NVL (a.text, b.text) as "TEXT", CASE WHEN a.key IS NOT NULL AND b.key IS NULL THEN 'Insert' WHEN a.key IS NULL AND b.key IS NOT NULL THEN 'Delete' ...
  • 您不能UPDATE不存在的行,您可以INSERT新行。 您可以使用NOT IN功能执行此操作: INSERT INTO secondfile SELECT f.Emplid,f.Color, 'Removed' FROM firstfile f WHERE f.Emplid NOT IN (SELECT 1 FROM secondfile s WHERE f.Emplid=s.Emplid) 或者使用NOT EXISTS功能: INSERT INTO secondfile SELECT f. ...
  • 那么你需要改变循环的顺序 While LoginFilter.Read() For Each conn In AllConn If conn.UserName.ToString() = LoginFilter.Item(0).ToString Then ListBox1.Items.Add(LoginFilter.Item(0).ToString) Exit For End If Next End While ...
  • 试试这个查询...... update oc_product set status = 1 where model in (select sku from vegan) 这假设oc_product.model与vegan.sku匹配。 任何具有匹配的oc_product.model都会将oc_product.status设置为1 。 Try this query... update oc_product set status = 1 where model in (select sku from vega ...
  • 这将为用户x和用户y选择不同的列数: SELECT ( u1.martialStatus <> u2.martialStatus ) + ( u1.gender <> u2.gender ) + ( u1.occupation <> u2.occupation ) FROM users u1, users u2 WHERE u1.id = x AND u2.id = y This will select the number of c ...
  • 只需要一个表,在FROM子句中,您为每个表提供一个别名,以便您可以将该表带入您的查询两次: select t1.nama as namamhs, t1.nilai, t2.nama, t2.nilai, case when(t1.nilai-t2.nilai<0) then (t1.nilai-t2.nilai)*-1 when(t1.nilai-t2.nilai>=0) then (t1.nilai-t2.nilai) end as selisih from tblData as t1, tblData ...
  • 尝试这样的事情: SELECT t1.* FROM table1 t1 INNER JOIN table2 t2 ON t1.program_id = t2.program_id AND t1.timezone_id = t2.timezone_id WHERE t1.scheduled_time <> t2.scheduled_time 基本上,在公共列( program_id和timezone_id )上执行INNER JOIN并确保scheduled_time列 ...
  • 怎么样 var isDifferent = Table1.Zip(Table2, (j, k) => j.itemNo == k.itemMo).Any(m => !m); 编辑 如果Linq-To-Sql不支持Zip。 var one = Table1.ToList(); var two = Table2.ToList(); var isDifferent = one.Zip(two, (j, k) => j.itemNo == k.itemMo).Any(m => ! ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)