Post by ndeet » Wed Jun 08, 2022 6:17 pm

Hi,

I'm new to OpenCart and developing a payment extension. I wonder if there is any best practice on how you do development without editing the files directly in the OpenCart directories (and copying them back to your git repo)? Or do you always re-install the extension with each code change?

One solution would be to create a symlink for each single file but I wonder if you have any other solution to this problem?

Newbie

Posts

Joined
Tue Jun 07, 2022 10:02 pm

Post by straightlight » Thu Jun 09, 2022 4:29 am

ndeet wrote:
Wed Jun 08, 2022 6:17 pm
Hi,

I'm new to OpenCart and developing a payment extension. I wonder if there is any best practice on how you do development without editing the files directly in the OpenCart directories (and copying them back to your git repo)? Or do you always re-install the extension with each code change?

One solution would be to create a symlink for each single file but I wonder if you have any other solution to this problem?
Depends on the OC version you use. The latest does support namespaces but the documentation is not ready, yet. As for OC v3.x releases, you could use OCMod and / or Event Triggers to accomplish this.

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 ndeet » Fri Jun 10, 2022 7:58 pm

Thanks for the reply, will look what your suggestions are all about.

I decided to go with OC3 for now as it seems to be widely used and OC4 was just released and not yet many payment plugins available but looking forward to cover OC4 too. Can OC3 + 4 covered in a single branch codebase or are there too many breaking changes that it makes more sense to have separate branches and releases?

Newbie

Posts

Joined
Tue Jun 07, 2022 10:02 pm

Post by ADD Creative » Sat Jun 11, 2022 12:30 am

There will be too many changes between version 3 and 4.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 5 guests