Questions tagged [vqmod]

A virtual modification system designed to avoid having to change core files, primarily in an MVC architecture and very popular with the OpenCart e-commerce package

vQmod™ (aka Virtual Quick Mod) is an override system designed to avoid having to change core files. Instead of making changes to the core files directly, the changes are created as xml search/replace script files. These script files are parsed during page load as each "source" core file is loaded with the "include" or "require" php functions. The source is then patched with the script file changes, and saved to a temporary file. That file is then substituted for the original during execution. The original source file is never altered. This results in a "virtual" change to the core during execution without any actual modification to the core files.

You can download VQmod from GitHub and from Google Code

165 questions
2
votes
1 answer

Opencart Modification System Related Questions

I have been using opencart since a short time. But I know nothing about Vqmod, Ocmod and third part extensions. 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. I would be…
2
votes
1 answer

Using Regex replace all occurences of string within VQMod

I am building an extension for Opencart 2.3.x and I need to replace all occurences of DIR_IMAGE with _DIR_IMAGE , so I came up with this regular expression that works with PHP alone, but not within a VQMod mod:
yoda
  • 10,834
  • 19
  • 64
  • 92
2
votes
1 answer

How to restore vqmod cache in Opencart?

I was trying to a tutorial on google how to disable a vqmod temporarily but something went wrong. I created a folder inside the vqmod > xml and named it "disabled" then put my files there but when I'm about to put them all back where they're…
Alexa
  • 2,201
  • 1
  • 10
  • 15
2
votes
1 answer

How to match paired closing bracket with regex

My current regex matches a function name and the variable name passed to the function see here Regex - (file_exists|is_file)\(([^)]+) string if (is_file($file)){ Matches is_file and $file I would also like the regex to work with a string rather…
TarranJones
  • 4,084
  • 2
  • 38
  • 55
2
votes
1 answer

PHP Fatal error: Class 'Controllercommon' not found in C:\Inetpub\Low Vision - Philippines\vqmod\vqcache\vq2-system_engine_loader.php on line 28

Please Help me on this i have cleaned vqcache folder and checked but it's not working. any solution on this. this issue only for product category page. other pagers are working…
2
votes
0 answers

How to determine the vqmver in a vQmod xml script?

How can I determine the "correct" version of vqmver for the following vQmod xml script?
kanenas
  • 869
  • 1
  • 20
  • 37
2
votes
1 answer

Replacing preg_replace by preg_replace_callback is giving me a warning

This is my code. private function _checkMatch($modFilePath, $checkFilePath) { $modFilePath = str_replace('\\', '/', $modFilePath); $checkFilePath = str_replace('\\', '/', $checkFilePath); $modFilePath =…
Ali Zia
  • 3,825
  • 5
  • 29
  • 77
2
votes
1 answer

Best fit for including or ignoring vQmod files in versioning

I am using some vQmod extensions in a current project (built with OpenCart) and I wonder if it is actually useful to include all the files of the folder into version control. At this time, I suppose that it could be correct to…
P. Mergey
  • 313
  • 4
  • 18
2
votes
0 answers

Viewing assumed changes by VQMOD

Is there any application /software where you can see the outcome of the file that vqmod will change and see what it looks like? example $var = 'ABC'; In Vqmod make the changes to make ABC into 123,
Sarfaraaz
  • 488
  • 6
  • 17
2
votes
2 answers

Opencart VQMod conflicts with OCMod

Error in vqmodManager: VQMod does not appear to be properly generating vqcache files! Cache files are not generated in vqcache folder. -> vqMod not working I´m using OC 2.0.1.1 and vqmod opencart-2-0-1-0-vqmod-2-5-1-3 What I have done to fix…
m1crdy
  • 1,371
  • 2
  • 25
  • 58
2
votes
1 answer

VQMOD replace not working with multi line search

There is a function in opencart which I need to replace as following: protected function validateDelete() { if (!$this->user->hasPermission('modify', 'catalog/download')) { $this->error['warning'] =…
seopower
  • 127
  • 4
  • 14
2
votes
1 answer

Opencart VQMod add extra data to order confirmation mail

I'm using OC version 1.5.5.1 The thing is that i want to add some extra information to the confirmation email of an order through VQMod. I've got this script ( part of the whole VQMod file ):
Mathlight
  • 6,436
  • 17
  • 62
  • 107
2
votes
1 answer

Reorder fields in open cart product form

This .xml file and vqmod created my new custom post field in the products post type of my openchart. Custom Field - unit_price 1 1.0.8 Jonathan de Jong -…
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378
2
votes
1 answer

How to get all data in JSON format from OpenCart 1.5.4 using vqmode and jQueryMobile

I'm starting to make a mobile application to my shopping cart opencart 1.5.4 and would like to make all types of operations from the application, ie the customer to have all that I offer in OC, see Categories , the goods, create a new user account,…
vhenriquez
  • 23
  • 3
1
2
3
10 11