问题标签 [vqmod]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - PHP 注意:未定义变量:http_type
我在我的 opencart 日志文件中收到以下 PHP 通知。
Undefined variable: http_type in /home/AAA/public_html/vqmod/vqcache/vq2-catalog_view_theme_template_product_product.tpl on line 3
这是我product.php
文件的前几行中的内容
非常感谢任何帮助
php - 在 Opencart 2.0 OCMod 中,修改后的文件不用于查看
我在我的 godaddy 域的子目录下部署了一个示例 Opencart2.0。我创建了一个 OCMod xml 文件remove_unused_desc_from_category.ocmod.xml
,它从<sub_dir>/catalog/view/theme/default/template/product/category.tpl
我已经使用 Extension Installer 安装了它并刷新了缓存。然后检查<sub_dir>/system/modification/catalog/view/theme/default/template/product/category.tpl
有变化的新文件。
但它仍然不影响 UI。我仍然是 opencart 和 OCMod 的学习者。请帮忙。
vqmod - vqmod 高级搜索通过搜索两次
我遇到了一个问题,我需要搜索一行太常见的代码。
假设我有这段代码,需要将其转换为 array_merge:
vqmod
问题在于它试图搜索太常见的代码。
我可以使用偏移量来替换整个东西,因为我们使用其他扩展来修改同一个数组。也不能相信 company_id 总是最后的。
所以相反,我在想是否有一种方法可以搜索两次或类似于这个概念:
- 搜索:
$this['data'][] = array(
找到这个的行号。 - 然后从此行号开始下一次搜索,找到下一次出现的:
);
然后可以将相同的想法应用于我想在返回数据之前添加一些逻辑的方法。
opencart - Controller is not loading in vqmod\vqcache\vq2-system_engine_controller.php
I created a very simple module hello world. The files i have for this module are as below with the paths. 1. admin/controller/module/helloworld.php. 2. admin/language/english/module/helloworld.php. 3. admin/view/template/module/helloworld.tpl
Module is showing and working fine in admin. But when i go to the layout where i set the module at the front side i get error. For example when i set the layout as account and go to the account page i get the error:
Notice: Error: Could not load controller module/helloworld! in C:\xampp\htdocs\oc-1.5.6.4\vqmod\vqcache\vq2-system_engine_controller.php on line 47
Why is that? the default modules of opencart are working fine. I cleared vqmod cache manually and using vqmod manager, nothing working. I'm using opencart version 1.5.6.4
php - OpenCart VQMod 无效的正则表达式错误
我试图在 checkout->confirm 函数之后添加一些代码。我正在尝试将其添加到所有支付网关。正则表达式是:
在 VqMod 文件中:
但是,它不起作用,只是离开
在 vqmod.log 文件中。
我错过了什么?
opencart - vqmod 不从缓存中读取
我遇到了一个奇怪的情况。我将 VQMOD 与 Opencart 一起使用,一切正常,直到我将所有代码上传到安全的 ssl 主机。
VQMOD 仍然有效,并且正在 vqcache 中制作所有缓存文件。但在 checked.cache 文件中并未列出所有修改后的文件。这是正常的吗?
logs、vqcache、checked.cache、mods.cache、system/cache 和 logs 的权限设置为 777
似乎 VQMOD 没有使用所有插件(使用普通文件而不是 vqcache 文件)。我没有错误。
有人可以帮我弄这个吗?
php - 通过 vqmod 添加代码时出错
我已经按照这个答案检查 OpenCart 2.0 中的模块位置,当直接在核心文件中添加代码时,它工作正常。
但是,当通过 Vqmod 添加相同的代码(步骤 3)时(不更改核心文件)。所以,这是行不通的。获取错误(注意:未定义的索引:位置在....)
我们的 Vqmod 代码。
我使用的是 OpenCart 版本 2.0.1.1
如何解决?
=== 更新 ===
更改了 vqcache 文件中的代码。
当模块在左/右列中启用时。所以,一定要低于错误。
当模块在顶部/底部列中启用时。所以,什么都不做显示。
opencart - OpenCart 以什么顺序执行 vQmod xml 文件?
如果有 2 个 vQmods /vqmod/xml/mymod1.xml
&/vqmod/xml/mymod2.xml
来更改文件(例如)catalog/model/tool/image.php
,在 OpenCart 安装中将首先执行哪个 vQmod?
migration - VQmod 不适用于打开购物车管理员
我在使用 VQmod 时遇到了最令人沮丧的问题。我将我的 OpenCart 商店从 Godaddy VPS 移至 Rackspace 的云站点。移动很顺利,除了管理面板上的 VQmod 外,一切正常。他们都没有加载。日志文件中没有错误,缓存目录中没有管理员缓存文件,没有 php 错误。
我尝试过的事情:
- 清除所有缓存将管理文件夹更改为 755
- 重新安装 VQmod 尝试手动和使用带有新 index.php 文件的安装程序
- 删除了所有 XML 文件并尝试一次仅加载一个
- 反复对着我的电脑大声咒骂。
请帮忙!OC 版本 1.5.6 VQmod 2.5.1
php - vqmod 抛出 strpos() 空针错误
vQmod 在解析 XML 文件时抛出以下错误:
Warning: strpos(): Empty needle in /home/public_html/vqmod/vqmod.php on line 455
这是 XML 本身:
XML 文件看起来不错,所有路径都正确。
没有在互联网上找到任何相关内容,因此在此处发布我的解决方案(见下文)。