Tuesday, February 22, 2011

ZenCart 1.3.9 - Template Problem

ISSUE:

After working to create a custom theme I found the default template and any new templates became unavailable through the typical method within the admin console.  I attempted to resolve the issue by re-installing and stepping through each modification systematically with no success.  This led to the manual modification of the database to choose the theme of choice.

WORK AROUND:
  • Obtain the database name, database username and password.
  • Create a new template being sure to include a template_info.php with the correct information.  Note the directory name.
  • Enter MySQL (-p will prompt for the user password)
       # mysql -u database_username -p
  •  Select database to use.
       mysql> use database_name;
  • Change the default template dir.
       mysql> UPDATE database_template_select SET template_dir = 'new_template'; 
  • Exit database
       mysql> \q
Template directory has now been changed and will be reflected in the admin console.

No comments: