Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension already installed! - How to upgrade extension to new version if we can't upload #11673

Open
padaliyajay opened this issue Sep 21, 2022 · 6 comments
Labels
Planned We will be working on it soon

Comments

@padaliyajay
Copy link
Contributor

What version of OpenCart are you reporting this for?
Opencart 4

Describe the bug
If extension was already installed before and if new version available then i can't upload same named file again. if you upload then get error "Extension already installed".

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Extension -> installer'
  2. Click on 'Upload button'
  3. See error

Expected behavior
It should be accept file and overwrite existing extension files so we can update extension to new version

@danielkerr
Copy link
Member

uninstall and delete

@danielkerr
Copy link
Member

then reinstall. i will try to come up with a quick fix before next release.

@padaliyajay
Copy link
Contributor Author

ok but this is not right way because if we uninstall extension then it will also remove it database.

So it should be.
1). upload file
2). if already installed then delete existing extension files and add new files
3). change extension version in oc_extension_install table and reset file path in oc_extension_path

@danielkerr
Copy link
Member

i did have it so it would not delete but then caused other issues., ill add a upgrqade method befofe the next release.

@padaliyajay
Copy link
Contributor Author

Thanks daniel for your attention on this problem.

@BuslikDrev
Copy link
Contributor

i did have it so it would not delete but then caused other issues., ill add a upgrqade method befofe the next release.

Do a version check.

In install.json opencart.ocmod.zip the error is an extra comma.

@danielkerr danielkerr added the Planned We will be working on it soon label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Planned We will be working on it soon
Projects
None yet
Development

No branches or pull requests

3 participants