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

Opencart 2.0 - Installation Database Prefix Issue & Solution #1894

Closed
kandarppatel opened this issue Oct 1, 2014 · 2 comments
Closed

Opencart 2.0 - Installation Database Prefix Issue & Solution #1894

kandarppatel opened this issue Oct 1, 2014 · 2 comments

Comments

@kandarppatel
Copy link

First of all thanks for such a great eCommerce System.

Database Prefix not working, always adding oc_ as prefex, its not considering to update database prefix based on mentioned in step 3 of installation.

In install/model/install.php below line of code required after line no 24

$sql = str_replace("CREATE TABLE IF NOT EXISTS oc_", "CREATE TABLE IF NOT EXISTS" . $data['db_prefix'], $sql);

Or we can replace line no 23 with above line too.

@daveyoi
Copy link

daveyoi commented Oct 2, 2014

@jamesallsup
Copy link
Contributor

thanks @daveyoi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants