Page 1 of 2

UPGRADING TO 3.*.*

Posted: Mon Oct 02, 2023 8:37 pm
by gsc1ugs
I'm currently on version 2.0.2.0, i have many modifications i personally made to suit my site, is it possible to merge and upgrade to version 3 or above if so what steps do i take?

Thank you

Re: UPGRADING TO 3.*.*

Posted: Mon Oct 02, 2023 9:04 pm
by by mona
You can search google for "Opencart upgrade from OC2 to OC3" and you will get numerous answers, like this one
viewtopic.php?f=181&t=226916

OC2 template files are written in php
OC3 template files are written in twig

Again you can search google for what that means in short is two different computer languages.
The filing system is also slightly different.

What the above means is in short that your modifications for OC2 may not work in OC3 - Some will, some wont, some will partly work, most css chmages will work, but not all and again it will depend on what modifications.

More importantly will be which OC3 version, most of us would recommend OC3.0.x.x (which is basically OC3.0.3.8 with php8 capabilities). https://github.com/opencart/opencart/tr ... aintenance. Again google search for more details and numerous posts on the forum.

To go back to your questions.
1. Back up your site files and database
2. Depending on your host and deal. Set up a development site either live or local.
3. Build OC3.0.x.x from scratch or hire a developer to assist.
4. Search marketplace for import export by JNeuhoff and import from your live site to your development site. https://www.opencart.com/index.php?rout ... sion_id=17
5. Install all the modification and use the error log to fix the errors.

There are also twig converters online for free and twig converters in the marketplace.

Alternatively get a professional.

Re: UPGRADING TO 3.*.*

Posted: Tue Oct 03, 2023 6:47 pm
by paulfeakins
gsc1ugs wrote:
Mon Oct 02, 2023 8:37 pm
I'm currently on version 2.0.2.0, i have many modifications i personally made to suit my site, is it possible to merge and upgrade to version 3 or above if so what steps do i take?
Did you make them as vQmods or OCMODs?

Either way, we consider an upgrade from 2 to 3 as a rebuild.

Re: UPGRADING TO 3.*.*

Posted: Tue Oct 03, 2023 8:31 pm
by gsc1ugs
I’m thinking of a new build is that better

Is my backup database still valid for 3.0.3.8?

Re: UPGRADING TO 3.*.*

Posted: Tue Oct 03, 2023 8:45 pm
by gsc1ugs
I want to backup the old version, ive dont the DB which folders to i backup apart from
catalog
system
image - or will image stay on?

Re: UPGRADING TO 3.*.*

Posted: Tue Oct 03, 2023 9:43 pm
by JNeuhoff
by mona wrote:
Mon Oct 02, 2023 9:04 pm
4. Search marketplace for import export by JNeuhoff and import from your live site to your development site. https://www.opencart.com/index.php?rout ... sion_id=17
See also our FAQ on this.

Re: UPGRADING TO 3.*.*

Posted: Tue Oct 03, 2023 10:55 pm
by gsc1ugs
I just want drag the folders to my hard drive using filezilla then delete everything and install fresh

Re: UPGRADING TO 3.*.*

Posted: Tue Oct 03, 2023 11:32 pm
by Cue4cheap
gsc1ugs wrote:
Tue Oct 03, 2023 10:55 pm
I just want drag the folders to my hard drive using filezilla then delete everything and install fresh
I don't know if what you are thinking is going to work especially since I am not understanding what your plan actually is.
OC2.x to OC3.x has too many changes to try and do any sort of 'overlay' of files.

What I would suggest is keep your current site online. Make a complete copy of everything just in case. That is the complete file directories and database.

Make a fresh install of OC 3.0.x.x. maintenance branch following Mona's post.
Then make all of your modification using the fresh install until you have the same functionality you did on your 2.0.2.0.

I have tried many different ways to upgrade a 2.3.0.2 version to 3.0.x.x versions and Paul is pretty much right on track... OC 2.x to OC 3.x has so many changes that there isn't an easy conversion. Even if you did an upgrade (not recommended by lots of people) you still need to install a lot of stuff, or at least activate and then fill in the details just for the standard functionally. Then to incorporate your modification and any other OCMod/VQmods it is a lot of meticulous work. As an example... my inventory sync extension took me 2 days to convert and I still have an issue with getting it to kick off properly with using Cron. I say this mostly to say you will run into snags to it is best to build your new site offline.

Mike

Re: UPGRADING TO 3.*.*

Posted: Wed Oct 04, 2023 2:36 am
by gsc1ugs
I need a fresh install because i am well behind, waiting for new e-commerce to integrate due to 2.0.2.0 im well behind and OFFLINE so i dont mind a fresh install. Just want copy all that i have personally changed for the site just little things for public , only small changes, once updated i would like to implement the minor changes into 3.0.3.8

Re: UPGRADING TO 3.*.*

Posted: Wed Oct 04, 2023 5:51 pm
by gsc1ugs
Where do i find this? ive installed it but cant find it under system

That's it! You should now see the Export/Import tool under the menu System > Maintenance > Export / Import (for OC 3.x or later) or under the menu System > Tools > Export / Import (for OC 2.x or earlier).

by mona wrote:
Mon Oct 02, 2023 9:04 pm
You can search google for "Opencart upgrade from OC2 to OC3" and you will get numerous answers, like this one
viewtopic.php?f=181&t=226916

OC2 template files are written in php
OC3 template files are written in twig

Again you can search google for what that means in short is two different computer languages.
The filing system is also slightly different.

What the above means is in short that your modifications for OC2 may not work in OC3 - Some will, some wont, some will partly work, most css chmages will work, but not all and again it will depend on what modifications.

More importantly will be which OC3 version, most of us would recommend OC3.0.x.x (which is basically OC3.0.3.8 with php8 capabilities). https://github.com/opencart/opencart/tr ... aintenance. Again google search for more details and numerous posts on the forum.

To go back to your questions.
1. Back up your site files and database
2. Depending on your host and deal. Set up a development site either live or local.
3. Build OC3.0.x.x from scratch or hire a developer to assist.
4. Search marketplace for import export by JNeuhoff and import from your live site to your development site. https://www.opencart.com/index.php?rout ... sion_id=17
5. Install all the modification and use the error log to fix the errors.

There are also twig converters online for free and twig converters in the marketplace.

Alternatively get a professional.

Re: UPGRADING TO 3.*.*

Posted: Wed Oct 04, 2023 6:04 pm
by paulfeakins
gsc1ugs wrote:
Wed Oct 04, 2023 2:36 am
I need a fresh install because i am well behind, waiting for new e-commerce to integrate due to 2.0.2.0 im well behind and OFFLINE so i dont mind a fresh install. Just want copy all that i have personally changed for the site just little things for public , only small changes, once updated i would like to implement the minor changes into 3.0.3.8
You should be able to download a full backup from your host as described here: https://www.antropy.co.uk/blog/opencart-backup-restore/

You won't be able to use your 2 database in 3, you'll need to get the data transferred across - the extension mentioned above may help: https://www.opencart.com/index.php?rout ... sion_id=17

But you might be better off paying a professional to rebuild the site from Commercial Support Forum.

Re: UPGRADING TO 3.*.*

Posted: Wed Oct 04, 2023 9:01 pm
by gsc1ugs
Is this ok to do that? Ive installed it but cant find it to run!

4. Search marketplace for import export by JNeuhoff and import from your live site to your development site. https://www.opencart.com/index.php?rout ... sion_id=17

Re: UPGRADING TO 3.*.*

Posted: Wed Oct 04, 2023 9:02 pm
by gsc1ugs
It says its here but i cant see it

System > Tools > Export / Import (for OC 2.x or earlier).

Re: UPGRADING TO 3.*.*

Posted: Wed Oct 04, 2023 9:11 pm
by gsc1ugs
Ok, im getting somewhere, installed wrong version, i now have it and modified admininstrator group which i am but get this error trying to run up

export / import

You do not have permission to access this page, please refer to your system administrator.

Below does not show up in the permissions list

Go to System > Users > User Group > Edit Administrator

'extension/export_import' is not in the list

Re: UPGRADING TO 3.*.*

Posted: Sat Nov 18, 2023 4:53 am
by clivem
I am about to upgrade from 2.3.0.2 to 3.0.x.x - the general consensus here is to start from scratch - i guess thats what i need to do. My question then is why does this page indicate what seems a fairly easy way to upgrade from 2 to 3 ?
https://docs.opencart.com/en-gb/upgradi ... P%20client.

paulfeakins wrote:
Wed Oct 04, 2023 6:04 pm
gsc1ugs wrote:
Wed Oct 04, 2023 2:36 am
I need a fresh install because i am well behind, waiting for new e-commerce to integrate due to 2.0.2.0 im well behind and OFFLINE so i dont mind a fresh install. Just want copy all that i have personally changed for the site just little things for public , only small changes, once updated i would like to implement the minor changes into 3.0.3.8
You should be able to download a full backup from your host as described here: https://www.antropy.co.uk/blog/opencart-backup-restore/

You won't be able to use your 2 database in 3, you'll need to get the data transferred across - the extension mentioned above may help: https://www.opencart.com/index.php?rout ... sion_id=17

But you might be better off paying a professional to rebuild the site from Commercial Support Forum.

Re: UPGRADING TO 3.*.*

Posted: Sat Nov 18, 2023 5:16 am
by IP_CAM
I am about to upgrade from 2.3.0.2 to 3.0.x.x ...

It might be easier for you to stay with OC v.2.x and only upgrade to a maintained and customized Version of Opencart v.2.3.0.2, created by famous Coder condor2. This way, you still have regular xx.tpl coded Theme Files, and you are able to use PHP 7.4, 8.0, 8.1, 8.2 as well. Just an Idea... ;)
https://github.com/condor2/Opencart_23xx

Re: UPGRADING TO 3.*.*

Posted: Sat Nov 18, 2023 6:16 pm
by gsc1ugs
I managed it, its a lot of database tables adding, removing etc, think i sent a link someone on my username posts

Re: UPGRADING TO 3.*.*

Posted: Sat Nov 18, 2023 9:10 pm
by johnp
IP_CAM wrote:
Sat Nov 18, 2023 5:16 am
I am about to upgrade from 2.3.0.2 to 3.0.x.x ...

It might be easier for you to stay with OC v.2.x and only upgrade to a maintained and customized Version of Opencart v.2.3.0.2, created by famous Coder condor2. This way, you still have regular xx.tpl coded Theme Files, and you are able to use PHP 7.4, 8.0, 8.1, 8.2 as well. Just an Idea... ;)
https://github.com/condor2/Opencart_23xx
++1 for Condor's version. :)

Re: UPGRADING TO 3.*.*

Posted: Mon Nov 20, 2023 4:14 am
by clivem
;D

LOL, just when i thought i had a way forward im back to 2.3.0.2 but a 'Condor' version maybe - thanks guys really appreciate the info and i will look into this. I've happily done my own opencart sites for many years now...... but these versions, php, tpl, twig and other protocols get me really confused.... sometimes so hard to know which is the right direction to be heading in. My main dilemma is keeping the site current with other protocols / servers so that i dont have security issues. I've had great success with 2.3.0.2 for many years so would love to stay on it - but at what point do i say its time to move forward?

Re: UPGRADING TO 3.*.*

Posted: Mon Nov 20, 2023 4:18 am
by straightlight
clivem wrote:
Mon Nov 20, 2023 4:14 am
;D

LOL, just when i thought i had a way forward im back to 2.3.0.2 but a 'Condor' version maybe - thanks guys really appreciate the info and i will look into this. I've happily done my own opencart sites for many years now...... but these versions, php, tpl, twig and other protocols get me really confused.... sometimes so hard to know which is the right direction to be heading in. My main dilemma is keeping the site current with other protocols / servers so that i dont have security issues. I've had great success with 2.3.0.2 for many years so would love to stay on it - but at what point do i say its time to move forward?
By simply moving forward to the most recent releases.