Post by labeshops » Tue Jul 12, 2016 9:07 pm

I'm great with vqmods, haven't clue on ocmod.

How do you change one like the file it effects (my custom template instead of default), or change the position of something it adds to a template, etc?

After you install the ocmod thru the modification installer, what happens? Is there a folder similar to the vqmod/xml one somewhere these files go into that I can edit them to make simple changes like the above?? Been looking all over the place and cannot seem to find anything like this.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by OSWorX » Tue Jul 12, 2016 10:48 pm

Answering the subject of this post: simply use an editor ... O0
Okay back to what you want to know.

1. code of OCMods are stored in the database (see table modification)
2. important differences of the code are:

2.1 use path instead name, e.g.

Code: Select all

<file path="admin/view/template/setting/setting.tpl">
2.2 usage of the xml.tag code as identificator (must be unique) e.g.

Code: Select all

<code>name_of_the_mod</code>
2.3 positions are added at the add tag (was before search) e.g.

Code: Select all

<add position="after">
3. if you want to have a link back to the creator, use the xml.tag link in the header e.g.

Code: Select all

<link>https://mysite.com</link>
(will be displayed at the ocmods-summary)

4. editing a ocmod could be done - without any additional tool - only directly in the database (if you want to have a tool to make edits through the admin interface, just pm me)
5. important: OCMods can be dis- and enabled through the admin interface (while vqmods have to be dis- & enabled by FTP or additonal tools like VQMod-Manager)
6. finally: after dis- or enabling any ocmod, the button Refresh has to hit (will clear also cached files)

That are the most basic differences, if I forgot one maybe someone can add it.
Last edited by OSWorX on Tue Jul 12, 2016 11:57 pm, edited 1 time in total.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by labeshops » Tue Jul 12, 2016 11:26 pm

ah thank you. the part about it being stored in the database is what I was missing :) Kept trying to find it in the files like vqmods do. Now it makes much more sense.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by cyclops12 » Mon Jul 25, 2016 12:40 am

you should find them in oc_modification table

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 12 guests