Jump to content

[Solved] DB Table that holds theme config


Recommended Posts

Hello,

 

What table is used for theme config , cuz I cannot change the default theme to my custom  theme thru the backoffice.

 

"Back Office >> Preferences >> Appearance >> Theme"

 

Im using 0.9.7

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

Your PrestaShop current theme is stored in your settings.inc.php file :

 

define('_THEME_NAME_', 'default');

 

If your custom theme is not displayed in the backoffice, did you put a preview.jpg file in your theme directory ? (eg. /themes/mytheme/preview.jpg)

 

Best regards,

Share this post


Link to post
Share on other sites

Oh I see, I thought it was saved on a db table, so it's in a file. Ok thanks i changed the theme now, and when I look now at the back office it's sync as well. I think the settings.inc.php file is not writable that's why it doesn't reflect when I change it on the backoffice.

 

Thanks again.

Share this post


Link to post
Share on other sites
  • 12 years later...

That is very old but i was searching for information about the name of the table for PS 1.7.3 that needs to be changed in the date base. So it is SELECT * FROM `ps4e_shop` the MySql or simply ps4e_shop. There and also config/defines_uri.inc.php the first line _PS_DEFAULT_THEME_NAME_ . After you upload your new theme , change the name to those two places and you are good to go. Also very important is your config.yml in the theme's folder. If there is someting messed up to that file will give you error like " A YAML file cannot contain tabs as indentation at line 69"  That was my case and just wanted to share experience for future reference.

Cheers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More