简体   繁体   English

Opencart修改系统相关问题

[英]Opencart Modification System Related Questions

I have been using opencart since a short time.我很早就开始使用 opencart 了。 But I know nothing about Vqmod, Ocmod and third part extensions.但我对 Vqmod、Ocmod 和第三方扩展一无所知。 I have few questions about them.我对他们没有几个问题。 I have searched Goolge and forum but did not find a solution, so I came to you for help.我搜索了 Goolge 和论坛,但没有找到解决方案,所以我来寻求帮助。 I would be greately thankful if someone guides me.如果有人指导我,我将不胜感激。

  1. Does Ocmod or Vqmod installation makes any changes to core files of oencart ocmod 或 Vqmod 安装是否对 oencart 的核心文件进行任何更改

  2. Does Ocmod or Vqmod installation is necessary to avoid changes in core files, if we install anyother third party extensions如果我们安装任何其他第三方扩展,是否需要安装 Ocmod 或 Vqmod 以避免更改核心文件

  3. If we install a third party extension without ocmod.zip or vqmod.zip file extension manually, does it make changes to core files如果我们手动安装没有 ocmod.zip 或 vqmod.zip 文件扩展名的第三方扩展,它是否会更改核心文件

  4. Has Ocmod and Vqmod been developed by opencart itself or it is developed by independent developers and opencart community. ocmod 和 Vqmod 是由 opencart 自己开发的还是由独立开发者和 opencart 社区开发的。

  5. Does different ocmods or vqmods are needed to make changes in different files for example theme, controller and catalog or same ocmod or vqmod can perform all the tasks是否需要不同的 ocmod 或 vqmod 来更改不同的文件,例如主题、controller 和目录或相同的 ocmod 或 vqmod 可以执行所有任务

  6. Where to download standard ocmod or vqmod to make changes in opencart without effecting the core files.在哪里下载标准 ocmod 或 vqmod 以在不影响核心文件的情况下在 opencart 中进行更改。 I went to opencart market place.我去了opencart市场。 I found ocmod manager, ocmod editor, ocmod downloader.我找到了 ocmod 管理器、ocmod 编辑器、ocmod 下载器。 But I did not find ocmod or vqmod extension to make changes in opencart files for example theme without effecting core files.但是我没有找到 ocmod 或 vqmod 扩展来更改 opencart 文件,例如主题而不影响核心文件。

  1. OCMOD or VQMOD installation doesn't make any changes to core files of OpenCart. OCMOD 或 VQMOD 安装不会对 OpenCart 的核心文件进行任何更改。 That's the main purpose of these two systems.这就是这两个系统的主要目的。 To make changes without making changes.进行更改而不进行更改。 These systems are creating cached copies of the core files with changes, which were implemented by OCMOD or VQMOD files.这些系统正在创建具有更改的核心文件的缓存副本,这些副本由 OCMOD 或 VQMOD 文件实现。
  2. Third party extensions sometimes doesn't need any core changes.第三方扩展有时不需要任何核心更改。 They may only add new files and new tables to database.他们只能将新文件和新表添加到数据库中。 BUT.但。 When third party extensions need to overwrite core files - they have to use OCMOD or VQMOD to do it, Sometimes they have to change core files.当第三方扩展需要覆盖核心文件时 - 他们必须使用 OCMOD 或 VQMOD 来做到这一点,有时他们必须更改核心文件。 but you should be careful with this kind of extensions, That may cause conflicts between other extensions.但是你应该小心这种扩展,这可能会导致其他扩展之间的冲突。 which are calling the same file with OCMOD or VQMOD.使用 OCMOD 或 VQMOD 调用相同的文件。
  3. If you install a third party extension without ocmod.zip or vqmod.zip file extension manually, your FTP client will ask you, if you want to rewrite some specific files, if there are any files to rewrite, so you can make backups of those files or to analyse what changes has been made in new files.如果您手动安装没有 ocmod.zip 或 vqmod.zip 文件扩展名的第三方扩展程序,您的 FTP 客户端会询问您是否要重写这些文件,以便您可以备份其中的某些文件文件或分析新文件中所做的更改。 In other cases you will only paste new files without rewriting anything.在其他情况下,您只会粘贴新文件而不重写任何内容。
  4. VQMOD has been developed somewhere in OpenCart 1.5 version. VQMOD 已在 OpenCart 1.5 版本中开发。 It's a standalone extension developed outside of the main OpenCart core.它是在主要 OpenCart 核心之外开发的独立扩展。 Have to be installed manual.必须手动安装。 Since OpenCart version 2 - OCMOD was implemented.由于 OpenCart 版本 2 - OCMOD 已实施。 It has been developed in the image and likeness of VQMOD, but with several differences.它是按照 VQMOD 的图像和相似性开发的,但有一些不同之处。 And OCMOD is native to OpenCart and fully integrated.并且 OCMOD 是 OpenCart 的原生并完全集成。
  5. Using OCMOD or VQMOD you can make changes only in .php , .tpl and .twig files, you can't make any changes in .css or .js , only by adding new files.使用 OCMOD 或 VQMOD,您只能在.php.tpl.twig文件中进行更改,您不能在.css .js文件中进行任何更改,只能通过添加文件或添加。
  6. First of all.首先。 Forget about VQMOD, it's outdated.忘记VQMOD,它已经过时了。 OCMOD is native and supported by 95% of extensions. OCMOD 是原生的,95% 的扩展都支持它。 And those extensions who doesn't support OCMOD - are although mostly outdated.那些不支持 OCMOD 的扩展虽然大多已经过时了。 OCMOD file is basically a bunch of statements of where to find some code and what to do with it (replace it or add something before/after it). OCMOD 文件基本上是一堆关于在哪里可以找到一些代码以及如何处理它的语句(替换它或在它之前/之后添加一些东西)。 And the result is cached core file with changes.结果是带有更改的缓存核心文件。 You can fine them generally in /system/storage/modification/ .您通常可以在/system/storage/modification/中对它们进行罚款。 If you installed new OCMOD file - you should clear cache to implement changes.如果您安装了新的 OCMOD 文件 - 您应该清除缓存以实施更改。 More about OCMOD cache cleaning .有关OCMOD 缓存清理的更多信息。

Using both OCMOD or VQMOD - is not the best experience and may cause conflicts and errors.同时使用 OCMOD 或 VQMOD - 不是最好的体验,可能会导致冲突和错误。 It its possible to use them together, but you will have to be careful and patient.可以一起使用它们,但你必须小心和耐心。 Just use OCMOD.只需使用 OCMOD。

More about OCMOD installation and file structure .更多关于OCMOD 安装和文件结构

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM