Post by burrito » Mon Apr 20, 2015 8:42 pm

How do I format the sql table names in install.sql to be used for an Ocmod extension? The original opencart.sql that is in the install package uses oc_tablename for all tables, obviously, if you change the prefix in the installation process that still works. Will it work for the extension installer aswell? Should I name the tables similarly? (oc_tablename) ?

Opencart specialist | Our website | Our modules

User avatar
Active Member


Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by Jsf » Tue Jan 17, 2017 9:17 pm

Maybe the answer will be helpful for everyone:

Yes, all tables in install.sql file should be with "oc_" prefix, because during installation "oc_" automatically renamed to your store database PREFIX, which is set in config.php file.

User avatar
New member


Sun Jan 26, 2014 4:08 am
Who is online

Users browsing this forum: No registered users and 7 guests