Post by Joe1234 » Tue Feb 27, 2024 2:58 am

The powers that be...branch maintenance/upgrade guys...it would be great if something was integrated that we could manually order the mods refresh/install position or something that clearly lists the position that something was refreshed/installed in instead of resorting to manipulating the names of the mods to be able to order them.

...if there is a mod out there that does this let me know, I didn't see it.

And please, nobody mention events.

ok, back to my name manipulating. :bash:

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by paulfeakins » Tue Feb 27, 2024 7:02 pm

Joe1234 wrote:
Tue Feb 27, 2024 2:58 am
ok, back to my name manipulating. :bash:
Perhaps it would be a better solution not to use mods that clash with each other?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Tue Feb 27, 2024 7:58 pm

paulfeakins wrote:
Tue Feb 27, 2024 7:02 pm
Joe1234 wrote:
Tue Feb 27, 2024 2:58 am
ok, back to my name manipulating. :bash:
Perhaps it would be a better solution not to use mods that clash with each other?
I am struggling here to understand what he was trying to do ....

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Joe1234 » Wed Feb 28, 2024 1:15 am

paulfeakins wrote:
Tue Feb 27, 2024 7:02 pm
Joe1234 wrote:
Tue Feb 27, 2024 2:58 am
ok, back to my name manipulating. :bash:
Perhaps it would be a better solution not to use mods that clash with each other?
Great and genius solution you have there smh.

JNeuhoff wrote:
Tue Feb 27, 2024 7:58 pm
I am struggling here to understand what he was trying to do ....
Lets say you have mod 1 that replaces a piece of code, then you have mod 2 that looks for that original code to add something else. Mod 2 now fails because mod 1 replaced the code. The only way to fix this is to either change the names to make mod 1 install after mod 2, or make mod 2 look for something else...which may cause issues with an upgrade later. I think it would be nice to be able to manually order the modification order by giving it a numerical install order on the modification page. I know this will probably not happen unless someone decides to make an extension, just wishful thinking.

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by JNeuhoff » Wed Feb 28, 2024 2:04 am

OK, understood. I usually don't have this issue because I normally use event handlers, or dynamic chained class extensions with overridden methods (override engine). But yeah, it can be tricky with clashing OCmods, good to restrict the searches to the bare minimum, often there is no need to match whole lines.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Wed Feb 28, 2024 6:43 pm

Joe1234 wrote:
Wed Feb 28, 2024 1:15 am
Great and genius solution you have there smh.
Thanks, so have you tried this by perhaps using an extension that does both things the other extensions are trying to do?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Joe1234 » Fri Mar 01, 2024 11:26 pm

JNeuhoff wrote:
Wed Feb 28, 2024 2:04 am
...restrict the searches to the bare minimum, often there is no need to match whole lines.
I thought the whole line had to be added or at least the ending if doing "after" or the "beginning" if you're doing before, otherwise it would add whatever in the middle of that search line....I could have sworn I saw it happen that way once before when I attempted to do a partial line match. But I just tested it out and it worked fine. Go figure.

JNeuhoff wrote:
Wed Feb 28, 2024 2:04 am
dynamic chained class extensions with overridden methods (override engine)
I have absolutely no idea what that is or how it can help in a mod finding its insertion point. I did a quick google search and didn't see anything that was too clear in reference to this. Can you give a little explanation/tutorial, or point me to something that is clear in it's explanation that I can read up on?

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by straightlight » Sat Mar 02, 2024 10:11 am

Joe1234 wrote:
Fri Mar 01, 2024 11:26 pm
JNeuhoff wrote:
Wed Feb 28, 2024 2:04 am
...restrict the searches to the bare minimum, often there is no need to match whole lines.
I thought the whole line had to be added or at least the ending if doing "after" or the "beginning" if you're doing before, otherwise it would add whatever in the middle of that search line....I could have sworn I saw it happen that way once before when I attempted to do a partial line match. But I just tested it out and it worked fine. Go figure.

JNeuhoff wrote:
Wed Feb 28, 2024 2:04 am
dynamic chained class extensions with overridden methods (override engine)
I have absolutely no idea what that is or how it can help in a mod finding its insertion point. I did a quick google search and didn't see anything that was too clear in reference to this. Can you give a little explanation/tutorial, or point me to something that is clear in it's explanation that I can read up on?
You could also give it a try with the OC v4.0.2.4 for development purposes and see if the new OCMod engine would suit your needs compared to previous OC releases.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 18 guests