Post by sansou » Fri Feb 14, 2025 10:55 am

dears, as the tile, Multi-languages & currencies switching buttons are not working after upgrading 3.0.2.0 to 3.0.4.1(from github.com/opencart/opencart/zip/3.0.x.x) to use PHP8, but all Multi-languages & currencies contents are there, any clue please?
my site is ch-power(dot) com

New member

Posts

Joined
Fri Feb 17, 2017 11:00 pm

Post by by mona » Fri Feb 14, 2025 11:33 am

No idea what you have done/how you have upgraded, but you have not done it correctly.

1. Great to see you have opted to stay with OC3

2. https://github.com/opencart/opencart/tr ... aintenance was correct for php8.
Since then OC3.0.4.0 was released (based on that branch) and has had time to be tested. OC 3.0.4.0 is currently the recommendation.
It can download from here (yes it supports php8) https://www.opencart.com/index.php?rout ... ad/history

3. Trying to upgrade is almost always a bad idea. Install a new opencart check it all works and transfer the data.

- Back up your site files and database
- Depending on your host and deal. Set up a development site either live or local.
- Install OC3.0.4.0 from new.
- Use the import export by JNeuhoff and import from your live site to your development site
https://www.opencart.com/index.php?rout ... sion_id=17
- Install all the modification and use the error log to fix the errors.
Alternatively you can download and upload your database once all the extensions / modifications have been installed.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by sansou » Fri Feb 14, 2025 2:10 pm

by mona wrote:
Fri Feb 14, 2025 11:33 am
No idea what you have done/how you have upgraded, but you have not done it correctly.

1. Great to see you have opted to stay with OC3

2. https://github.com/opencart/opencart/tr ... aintenance was correct for php8.
Since then OC3.0.4.0 was released (based on that branch) and has had time to be tested. OC 3.0.4.0 is currently the recommendation.
It can download from here (yes it supports php8) https://www.opencart.com/index.php?rout ... ad/history

3. Trying to upgrade is almost always a bad idea. Install a new opencart check it all works and transfer the data.

- Back up your site files and database
- Depending on your host and deal. Set up a development site either live or local.
- Install OC3.0.4.0 from new.
- Use the import export by JNeuhoff and import from your live site to your development site
https://www.opencart.com/index.php?rout ... sion_id=17
- Install all the modification and use the error log to fix the errors.
Alternatively you can download and upload your database once all the extensions / modifications have been installed.
thanks bro, all other function works well after auto upgrade including extensions, only here is not working;
You can see i moved Language & currency from left of top to right only.

New member

Posts

Joined
Fri Feb 17, 2017 11:00 pm

Post by by mona » Fri Feb 14, 2025 4:05 pm

I disagree.
Your site uses jquery-2.1.1
OC 3.0.4.0 uses jquery-3.7.0

It is your site and you can do as you wish.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by sansou » Fri Feb 14, 2025 4:10 pm

by mona wrote:
Fri Feb 14, 2025 4:05 pm
I disagree.
Your site uses jquery-2.1.1
OC 3.0.4.0 uses jquery-3.7.0

It is your site and you can do as you wish.
Really? I dont know I just downloaded and upgraded here github.com/opencart/opencart/zip/3.0.x.x only, I didn't change (i dont know how to change actually) jquery

New member

Posts

Joined
Fri Feb 17, 2017 11:00 pm

Post by by mona » Fri Feb 14, 2025 4:18 pm

Github is a developers site, it is not for official releases and it is not static.

https://www.opencart.com/index.php?rout ... ad/history
Opencart 3.0.4.0 official release.

There was a maintenance branch that developers recommended to download from github for a while because of php8 support as hosts were turning off 7.4 and Daniel was on OC4 and and and .. but as a general rule Official releases - not github, not softilicious -

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by sansou » Fri Feb 14, 2025 5:34 pm

thanks, understood now; still hope to solve the issue while waiting stable 4 version...

New member

Posts

Joined
Fri Feb 17, 2017 11:00 pm

Post by ADD Creative » Fri Feb 14, 2025 5:44 pm

It's your theme. The default OpenCart currency form has id="form-currency" yours has class="form-currency".

https://github.com/opencart/opencart/bl ... cy.twig#L3

www.add-creative.co.uk


Guru Member

Posts

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

Post by sansou » Wed Feb 19, 2025 3:38 pm

ADD Creative wrote:
Fri Feb 14, 2025 5:44 pm
It's your theme. The default OpenCart currency form has id="form-currency" yours has class="form-currency".

https://github.com/opencart/opencart/bl ... cy.twig#L3
Hi ADD Creative again! thanks a lot! how could I fix or change that to make it works please?

New member

Posts

Joined
Fri Feb 17, 2017 11:00 pm

Post by ADD Creative » Wed Feb 19, 2025 6:03 pm

sansou wrote:
Wed Feb 19, 2025 3:38 pm
Hi ADD Creative again! thanks a lot! how could I fix or change that to make it works please?
Check the differences between the your theme files to the files in a clean download of your version of OpenCart.

Check if you have any extensions making the changes.

www.add-creative.co.uk


Guru Member

Posts

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

Post by knowband.plugins » Wed Feb 26, 2025 9:46 pm

We have checked your website https://ch-power.com/ and it seems that the issue is now fixed.
It will be helpful if you can confirm that changing the theme files resolves the issue or if you have done anything else.

Regards,
Knowband Team

Opencart Plugins: Knowband Store
Email: support@knowband.com


User avatar
Active Member

Posts

Joined
Thu Aug 04, 2016 2:56 pm
Who is online

Users browsing this forum: No registered users and 4 guests