Jump to content

Cannot apply themes to 1.2


Recommended Posts

I installed a fresh copy of PrestaShop 1.2 on my server, and uploaded various themes (from www.prestathemes.com), but when I use the theme selector in the Back Office, everything is OK with the change, but I look at the Front Office and the theme hasn't been applied - and there's a list of all the website contents in Times New Roman. Have a look: http://lv.maf-shop.com/

It does this with EVERY theme.

I have tried copying over the original "prestashop" theme, and also creating new ones - nothing works.

What is the problem?

Link to comment
Share on other sites

I too am experiencing this issue. I have tried both methods of the fix you suggested and still no go. Working on a site for someone and they want the "creation-shop-theme-1 / only-girls" theme. I apply the theme and it won't work. Any more though to why it does this?

Mustang97

Link to comment
Share on other sites

The file is

ROOT/config/settings.inc.php

However that fix didn't work for me.


i dont have that file...



The folder is named config and then you open settings.inc.php which is located in the config folder.

If you don't have this then no themes will work even the original 1.2 Prestashop Theme.
Link to comment
Share on other sites

Ah crap, I was looking in my local dir on Dw... but I didn't check the remote. It's there.
Sorry for being a dumbass.

Now to change what you suggested...

Ok, I checked, and it was already like that:

define('__PS_BASE_URI__', '/');

Strange... it seems 1.2 is buggy... I even tried a theme meant for 1.2 (Prestasweet 1.2)

Link to comment
Share on other sites

Hi,


at the moment in your source code I see this

<base href="lv.maf-shop.comhttp://lv.maf-shop.com/" />



it shouldn't be like that, have a look in header.php and if possible post the code here for me to see.





ok, i dont see anything irregular, but im not that up to speed with presta...

heres so u can have a looksie:

<?php

// P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies)
header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');

require_once(dirname(__FILE__).'/init.php');

/* CSS */
$css_files[_THEME_CSS_DIR_.'global.css'] = 'all';

/* Hooks are volontary out the initialize array (need those variables already assigned) */
$smarty->assign(array(
   'HOOK_HEADER' => Module::hookExec('header'),
   'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),
   'HOOK_TOP' => Module::hookExec('top'),
   'static_token' => Tools::getToken(false),
   'token' => Tools::getToken(),
   'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
   'content_only' => intval(Tools::getValue('content_only'))
));

if(isset($css_files) AND !empty($css_files)) $smarty->assign('css_files', $css_files);
if(isset($js_files) AND !empty($js_files)) $smarty->assign('js_files', $js_files);

/* Display a maintenance page if shop is closed */
if (isset($maintenance) AND (!isset($_SERVER['REMOTE_ADDR']) OR $_SERVER['REMOTE_ADDR'] != Configuration::get('PS_MAINTENANCE_IP')))
{
   header('HTTP/1.1 503 temporarily overloaded');
   $smarty->display(_PS_THEME_DIR_.'maintenance.tpl');
   exit;
}

$smarty->display(_PS_THEME_DIR_.'header.tpl');

?>

Link to comment
Share on other sites

Hi I am having the exact same problem when trying to install the themes, can somebody help!!!!! also i have got the custom template on now, and may I take this opportunity to say that after trying many shopping carts (test the water over the past few weeks) Think that this is the best one by far the only one I cant rate it against is magento. But alot better than zen and cubecart, oscommerce.

Can someone help me how do I edit the first page in www.chippedmodems.com ? I dont know where to take the french writing out or edit the names of pics etc etc etc

Thanks in advance.


Andy.

Link to comment
Share on other sites

hi..
i'm facing this problem also
i have changed :

- var baseDir = '{$base_dir}'; --> var baseDir = '{$content_dir}';
- define('__PS_BASE_URI__', '/prestashop/'); --> define('__PS_BASE_URI__', '/');

but it still not work.

i installed prestashop 1.2.0.8 in my pc using xampp.

can somebody help??

Link to comment
Share on other sites

Not seeing what your referring to. I see nothing about 1.1 compatibility.


** Correction

Now I see the option. Should have stated to make sure and get the updated release made yesterday. Now that I updated to the most current I see the option.

Link to comment
Share on other sites

  • 3 months later...

Hello, I am building a new theme and have followed the example as per http://www.prestashop.com/wiki/Themes/

But the only way I could force to use the new theme is to update the $ vim config/settings.inc.php

so that

define('_THEME_NAME_', 'mytheme');

I looked at the permissions for this folder and it is set as:

$ chmod 777 config

$ ls -al config
total 40
drwxrwxrwx 6 khine khine 204 Nov 17 10:12 .
drwxr-xr-x 62 khine khine 2108 Nov 17 10:12 ..
-rw-r--r-- 1 khine khine 5893 Oct 28 10:46 config.inc.php
-rw-r--r-- 1 khine khine 300 Oct 26 09:51 index.php
-rw-r--r-- 1 khine khine 429 Nov 17 10:09 settings.inc.php
-rw-r--r-- 1 khine khine 3224 Oct 26 09:51 smarty.config.inc.php

what should be the correct write permissions for the config folder and the file contents?

$ chmod 666 config/settings.inc.php

Is this correct?

Link to comment
Share on other sites

  • 2 weeks later...

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...