Post by jabbergabber » Tue Sep 19, 2017 3:48 am

Hi. Can anyone point me in the direction of any instructions to copy the default theme to include twig files in version If I follow the old instructions and upload a basic set of files to catalog/view/theme/{new theme name}.. I can select the new theme folder from the admin panel from extension/extension/edit theme but when I use the theme editor no changes are made. Am I assuming correctly that new themes should be able to be modified from the theme designer ?
I have now managed to load the twig files from my theme by activating the theme in the system/settings - edit - Theme dropdown. But if i try and enable the theme in Extensions/Themes(2) I get a HTTP error 500. I have also made new files in the following folders:

admin/controller/extension/theme/{name}.php ..... I have changed reference from /theme/default to /theme/{name}

admin/language/en-gb/extension/theme/{name}.php ..... I changed theme title

admin/view/template/extension/theme/{name}.twig .... no changes

I now also get an error when I view the site - a blank page with the text-> Error: A theme has not been assigned to this store!

Any ideas folks ?

Kind Regards



Mon Sep 18, 2017 6:34 pm

Post by IP_CAM » Wed Sep 20, 2017 4:10 am

Well, I just hope, that you don't plan to use an older version Theme, and just
rename all it's file-extensions to .twig, to then be able to use it in an OC v.3 :choke:
It would just not function, TWIG is no longer PHP !
Good Luck! ;)
OC v. Product Page Content:

Code: Select all

<div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
<div class="row">
<?php if ($column_left || $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } else { ?>
<?php $class = 'col-sm-8'; ?>
<?php } ?>
OC v.3.0.2.x Product Page Content:

Code: Select all

<div id="content" class="{{ class }}">{{ content_top }}
<div class="row"> 
{% if column_left or column_right %}
{% set class = 'col-sm-6' %}
{% else %}
{% set class = 'col-sm-8' %}
{% endif %}

I don't use the Forum Mailer, to reach me, contact:
OpenCart LIGHT v.
OpenCart V-PRO v.
1'700+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site:

User avatar
Legendary Member


Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by somjai007 » Thu Sep 21, 2017 10:45 am

Thanks for the info




Sun Sep 10, 2017 3:06 pm
Who is online

Users browsing this forum: No registered users and 9 guests