Questions tagged [ocmod]
50 questions
0
votes
2 answers
Opencart OCMod how to apply modifications to all .php files in all directories
When I need to apply modifications to one file, I use the code below:
Modification name
…

userlond
- 3,632
- 2
- 36
- 53
0
votes
2 answers
Regex match multiple lines before and after word delimited by start and end words
I am wanting to search for {{ upc }} and start the capture not from the
and capture not up to the first
after the match but the 2nd i.e…
Trent Renshaw
- 512
- 7
- 14
0
votes
2 answers
Opencart extension not creating files
I have a custom Opencart shipping extension. It has upload/ and install.xml. When I upload extension.ocmod.zip through extension installer, it completes installation. But the extension is not visible under Extensions > Shipping.
I checked the code…
0
votes
1 answer
How to create table in opencart 3.x through ocmod?
I've managed to make an extension for cashback feature in my opencart 3.0.3.2 .I've added the sql for creating a table in model , which i've executed(refer code please) through install() from controller.But in the front end while testing it says the…
0
votes
1 answer
how to modify existing ocmod.xml file without reinstalling new file on Opencart 2.3
I have a simple ocmod.xml for my opencart 2.3 application.
I've uploaded the changes but now I need to modify it.
Instead of reinstalling the new version, how can I quickly modify it and refresh modification during development?
Where is the file…

oolong tea
- 113
- 2
- 2
- 6
0
votes
0 answers
When ocmod extension install vqmod not working
I have installed opencart 2.1 and My Vqmod working fine, but when I am trying to install a ocmod extension suddenly vqmod stopped working. Any one know the reason please help me to solve the isuue.

Binayak Das
- 618
- 8
- 20
0
votes
1 answer
OCMod offset not replacing multiple lines of code
I am new to OCMod and trying to tidy up my Opencart 3.x store modifications. In many places I need to replace multiple lines of code and I can't seem to get offset to work. Following Digicart's solution: Replace admin TPL files with OCMOD
I have the…

onefish
- 95
- 1
- 9
0
votes
2 answers
OCmod is not showing up in Modifications list - Opencart 3.0.2.0
I am trying to write my mod file to simply change a text in a footer. here is my install.xml code:
Modify PowerBy Text
1.0
Shehzad
…

Shehzad
- 337
- 4
- 25
0
votes
2 answers
Add submenu in OpenCart by events in admin area
I want to add a sub menu in OpenCart, under catalog menu in admin area.
in past we used ocmod or vqmod for do this,
an example by ocmod is here:
submenu5
…
Hamid Abbasi
- 346
- 2
- 14
0
votes
2 answers
How to add same code at multiple places in OCMOD OpenCart
I want to place the code after the $order_product_id = $this->db->getLastId() which occur 2 times in order.php file. I want to place the code in both places. The OCMOD is placing the code as instructed but it is also adding the code third time and…

Umer Farooq
- 21
- 5
0
votes
3 answers
OCmod doesn't work/overwrite files in OpenCart 3.0.1.1
I am trying to mod the admin in OpenCart (3.0.1.1) slightly. I have written the following XML code as a test to see if I can mod the product form:
Test
Test
…
The Joff
- 33
- 2
- 7
0
votes
1 answer
Error "opencart Modification requires a unique ID code" when uploading ocmod.xml file
I'm going through opencart tutorial and when I try to upload my modification I get the following error: "Modification requires a unique ID code!". The modification has the
tag. I'm using opencart 2.3.0.2.
The code of the…

ilmix
- 151
- 3
- 11
0
votes
1 answer
How I could include external lib in my custom opencart extension?
I'm building a custom opencart payment extension (ocmod installable), I need to use an external payment provider sdk (located in the vendor folder) but i don't know how include this files on my packaged extension
This is my folder structure
..
├──…

Joel Ibaceta
- 236
- 3
- 15
0
votes
1 answer
ocmod using regex not working
New to ocmod. There aren't too many examples of ocmod that use regex. So, below is my poor attempt. What I'm trying to do below is to add a new function in customer.php model. But it not only failed to work, it also caused the admin page to not…

HockChai Lim
- 1,675
- 2
- 20
- 30
0
votes
1 answer
Load the output of Store module in menu opencart2
I have a "Store" module and I need to put the output of it in the menu which is rendered by /catalog/view/theme/journal2/template/journal2/menu/main.tpl
It's controller is in catalog/controller/journal2/menu.php
What I have tried :

Aleksandra Chuprova
- 493
- 2
- 6
- 18