Questions tagged [ocmod]

50 questions
1
vote
0 answers

Install.xml file doesn't update the php file when installing it as an extension in opencart 3

I am working on an opencart project. There is a new module call discounts in the project implemented by another developer. I have copied the related files and related methods in to a new project and it worked well. I have created a…
1
vote
1 answer

Opencart / OCmod - Search for one OR another line of code

I'm working on a modification for Opencart, using OCmod. Initially, I started writing it for Opencart 2 (It's actually done and working). Now, I'm upgrating it for OC3. Here's a quick example of what's going wrong. Previously, I wrote this for…
1
vote
2 answers

At opencart2.0, I want to create a ocmod extension. In install.sql, how do I determine if the database field exists?

At opencart2.0, I want to create a ocmod extension, In install.sql, I need to modify the database field. When I modify the database field, I need to decide if the field exists. Ive tried multiple variations of this, but none of them seem to work.…
vincenth520
  • 177
  • 10
1
vote
2 answers

ziped ocmod.xml not working in opencart 3.0

I have created an ocmode.xml and uploaded the archived file through opencert 3.0 extension->installer. I am getting success message and i have refresh the cache but it's not working. Here is the code TESTER
Sainul Abid
  • 99
  • 1
  • 9
1
vote
1 answer

Opencart ocmod rollback database changes

Using OCMOD system, in the file: install.sql i can make changes to opencart database. The question is: if i uninstall the module, will the changes in database rollback? If don't, how can it be done using OCMOD system? Is there an uninstall file…
1
vote
0 answers

OCmod/VQmod OpenCart PHP parse error: syntax error, unexpected '{', expecting '('

Can't get this ocmod to work. I even paid someone to get this to work but I'm beginning to think he doesn't know as much about opencart/php as he says. Parse error: syntax error, unexpected '{', expecting '(' in…
J-T
  • 9
  • 5
1
vote
4 answers

Opencart 2.1.0.2 Getting error from installing ocmod.zip

I've just started to use 2.1.0.2 and I'm trying to convert over some of my own extensions I built for my 1.5.6.4 store. I have started with a fresh install of 2.1.0.2 and I built a very basic extension, I'm wanting to move over to the extension…
ACKA
  • 27
  • 1
  • 6
0
votes
0 answers

Include multiple OCMOD XML files in one ZIP file

If my extension has two OCMod XML files, is there any way to make the opencart extension installer install both of them using a single OCMod ZIP file? The main OCMod is copied as install.xml in the OCMod ZIP file. I don't want to merge both of them…
0
votes
1 answer

Automatically generate product sort number

Thanks for looking at my question. I'm not a dev so please be patience I have source this code on github but it's not longer maintened... Testing this ocmod on my testing installation in Opencart 3.0.3.6 and 3.0.3.8 This xml file will automatically…
0
votes
1 answer

error code not found in ocmod opencart v2

I am trying to replace all accurences of the lines of code in file using ocmod on opencart v2.0. This is my modification:
Bogdan Onyshenko
  • 415
  • 1
  • 6
  • 24
0
votes
1 answer

selecting last closing tag in xml search

I am using opencart V 3.0.3.7 I have a code structure in twig file like
    // this is fixed
  • {% if somecondition %}
    // Here
    is added dymanically...so number of
    tags is not…
0
votes
1 answer

How to add 2 modifs to the same file in OCMOD file for opencart 2.3

I want to add a small snipet of script above a block of script and another one under the same block in the same file. (I can't do a replace because the block is also modified by another extension). If I had the same file twice I get the message…
user1620090
  • 499
  • 6
  • 19
0
votes
1 answer

Reditrect Home page to Product page Opencart 3.0.3.6 or 3.0.3.7 using OCMOD xml

I am trying to redirect home page catalog/controller/common/home.php in opencart. In the php file, after this line public function index() { and before this line $this->config->get('config_meta_title')); When I…
VSR
  • 23
  • 5
0
votes
1 answer

Newbie OCMOD question - does using 'add' make changes on EVERY instance of the search string or just one?

This is going to be a really basic question and yes, I HAVE looked at the documentation. If this question is answered there, my apologies for not seeing the answer. When using add to modify code, does it perform its magic on every matching string in…
Jreif
  • 47
  • 7