Page 1 of 1

OpenCart 4.0.2.3 Released

Posted: Sun Sep 17, 2023 2:53 am
by Johnathan
OpenCart 4.0.2.3 was released today (September 16, 2023). Here is the direct download link:

https://www.opencart.com/index.php?route=cms/download

Here is a list of changes on github:

https://github.com/opencart/opencart/re ... ag/4.0.2.3

You can try using the built-in Upgrade feature in System > Maintenance > Upgrade, but in my experience it is extremely slow. It failed for me after 40 minutes, and if it fails during the process it can leave your store partially updated (which can leave it non-functional). I would recommend manually upgrading if you decide to update.

Any bugs you encounter can be reported in the OpenCart 4.0 Bug Forum, or on github.

Re: OpenCart 4.0.2.3 Released

Posted: Thu May 23, 2024 4:31 am
by abarn
anyone using this, use google captcha 2.0, ver 3.0 wont stop bots.

Re: OpenCart 4.0.2.3 Released

Posted: Thu May 23, 2024 4:41 am
by JNeuhoff
abarn wrote:
Thu May 23, 2024 4:31 am
anyone using this, use google captcha 2.0, ver 3.0 wont stop bots.
Or use our SpamBot Buster, no need for captchas.

Re: OpenCart 4.0.2.3 Released

Posted: Wed May 29, 2024 3:20 am
by lorens
How stable is this version? Is version 3 still the recommended download, or have the bugs been worked out of version 4 already? Would it be good to wait on version 4.1?

Re: OpenCart 4.0.2.3 Released

Posted: Wed May 29, 2024 9:30 pm
by Johnathan
The general consensus among developers is to use the 3.0 branch for now. 4.0.2.3 is usable for a live store, but still has some bugs that make it inconvenient. The latest official 3.0 release is 3.0.3.9:

https://www.opencart.com/index.php?rout ... ad/history

There should be a 3.0.4.0 out soon, or you can get that directly from the 3.0.x.x github maintenance branch:

https://github.com/opencart/opencart/tree/3.0.x.x

If you want to use the 4.0 branch I'd wait until 4.1.0.0, although it most likely will also have bugs, so waiting until 4.1.0.1 or 4.1.0.2 is a better idea.

Re: OpenCart 4.0.2.3 Released

Posted: Sun Jun 02, 2024 9:54 am
by lorens
Is there a way to get the old multi-page checkout format on version 4?

Re: OpenCart 4.0.2.3 Released

Posted: Sun Jun 02, 2024 10:40 pm
by Johnathan
No, there's no extension to do that as far as I'm aware. However, I do have a 4.0 Checkout Improvements extension that helps speed up the process for the customer. It automatically triggers the shipping/payment steps after an address has been saved, and allows you to adjust some other things on the page like column width, comment box size, and whether the cart/payment area appears underneath the other areas.

Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any questions. If you aren't interested and really want the old checkout, I would advise using 3.0.3.9 at this point. There aren't a lot of checkout extensions for the 4.0 branch at this point, at least that I'm aware of.

Re: OpenCart 4.0.2.3 Released

Posted: Thu Oct 10, 2024 3:48 pm
by oberheimer
Are you more focused on developing version 3 at the moment?
It seems that there are more updates for that version.
And when will you stop developing version 3?

Re: OpenCart 4.0.2.3 Released

Posted: Thu Oct 10, 2024 5:56 pm
by OSWorX
oberheimer wrote:
Thu Oct 10, 2024 3:48 pm
Are you more focused on developing version 3 at the moment?
It seems that there are more updates for that version.
And when will you stop developing version 3?
No, but it is the most stable version until today: https://github.com/opencart/opencart/re ... ag/3.0.4.0
And "stopping developement for v.3": as long as there is no stable 4.x version available, and bugs are detected, this process will be ongoing.

Re: OpenCart 4.0.2.3 Released

Posted: Mon Oct 14, 2024 8:30 pm
by D3MO
Question will opencart 4.x will have ocmod back? or no? maybe someone can enlighten :)? it is almost 3 years i blieve since 4.x version is out , but no ocmod. and to modify template files with events is not very practical nor logical.

Re: OpenCart 4.0.2.3 Released

Posted: Mon Oct 14, 2024 9:25 pm
by JNeuhoff
Yes, the upcoming OC 4.1.0.0 will have OCmod embedded in it.
However I strongly recommend writing up extensions the proper way using event handlers.

Re: OpenCart 4.0.2.3 Released

Posted: Mon Oct 14, 2024 9:54 pm
by D3MO
JNeuhoff wrote:
Mon Oct 14, 2024 9:25 pm
Yes, the upcoming OC 4.1.0.0 will have OCmod embedded in it.
However I strongly recommend writing up extensions the proper way using event handlers.
You can write bad code not only for OCmod but also for the event system, and even more :) Imagine a module needs to change an X part in a Twig file. After struggling with outputs, we generate the Twig file, but what stops another module from doing the same thing with its own event, passing through the same file? As a result, we end up with an even bigger mess than with OCmod. At least with OCmod, we can see where the error is or which parts of the file it can't find. But with events, when there are 200 modules installed using the event system, how do you debug that? Disable them one by one? I don't know, maybe others have found an easy way to change Twig files or, for example, modify cart data in the library.

Say we raise the price of a product from 100 to 110 through a module. How do we do that through the event system when the main class, like cart/cart, doesn't have before/after triggers? In that case, I'd have to write a separate class and extend it. Maybe I'm missing something here, but you can screw up a platform with any modification system :) And it's absurd that to add a small piece of code to a Twig file, you have to write N controllers and events.

Nothing personal, but that is my way of thinking. not to mention that rewrite 200 modules (some of them even impossible to rewrite) even a simplest thing like adding extra menu in the account twig file becomes a headache .

Re: OpenCart 4.0.2.3 Released

Posted: Mon Oct 14, 2024 11:45 pm
by JNeuhoff
I have written OpenCart 4 extensions which modify the system/library/cart/cart.php without OCmod, using controller/*/before event handlers which in turn reset the registry cart singleton instance with a simple decorator class, for subsequent use. Just a few lines, was easy enough to do. It involves the decorator design pattern which can be used for most of OpenCart's singleton library classes without problems. Found it to be more robust and easier to maintain than OCmod.

Re: OpenCart 4.0.2.3 Released

Posted: Wed Oct 16, 2024 2:11 pm
by D3MO
JNeuhoff wrote:
Mon Oct 14, 2024 11:45 pm
I have written OpenCart 4 extensions which modify the system/library/cart/cart.php without OCmod, using controller/*/before event handlers which in turn reset the registry cart singleton instance with a simple decorator class, for subsequent use. Just a few lines, was easy enough to do. It involves the decorator design pattern which can be used for most of OpenCart's singleton library classes without problems. Found it to be more robust and easier to maintain than OCmod.
can you share your knowledge:)? by providing some mod example?

Re: OpenCart 4.0.2.3 Released

Posted: Tue Dec 31, 2024 9:23 am
by hectorin
I get lot of spam (bot) is there a better solution?

Re: OpenCart 4.0.2.3 Released

Posted: Tue Dec 31, 2024 5:40 pm
by JNeuhoff
hectorin wrote:
Tue Dec 31, 2024 9:23 am
I get lot of spam (bot) is there a better solution?
Try our SpamBot Buster.