Post by korisnik » Sat Aug 17, 2019 4:00 am

I am experimenting with ocmod on XAMPP, and some things i don't understand.
If i make two ocmod to change product page, separately works fine but second ocmod not works if first ocmod enabled.
I concluded, i need to consider the changes in earlier ocmod when making second ocmod.
For example, if i delete some code line in first ocmod, in second ocmod i must consider that change, and i can't work according default file.
Where am i wrong???

New member

Posts

Joined
Sun Aug 07, 2016 1:21 am

Post by thekrotek » Sat Aug 17, 2019 4:17 am

If both your modifications search for the same string of the code, then indeed the second one won't work. You need to consider changes made by your other modification, the one that is processed first.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » Sat Aug 17, 2019 7:57 am

Monitor the changes in your admin - > extensions - > modifications - > Logs tab for error messages that could be shown after an OCMod installation uploaded from the admin - > extensions - > installer page. Also ensure to clear your cache at times by following this FAQ: viewtopic.php?f=176&t=200804#p718325

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

Post by korisnik » Tue Aug 20, 2019 10:02 pm

I am confused, is it possible to use two ocmod wich target same file?

New member

Posts

Joined
Sun Aug 07, 2016 1:21 am

Post by cyclops12 » Wed Aug 21, 2019 12:18 am

korisnik wrote:
Tue Aug 20, 2019 10:02 pm
I am confused, is it possible to use two ocmod wich target same file?
Totally possible to target same file but if you have removed part of code in first ocmod then you cannot target the same piece of code in the second ocmod( as it wont be there)
Just choose another piece of code and use 'offset if needed'.

Expert Member

Posts

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

Users browsing this forum: No registered users and 16 guests