Jump to content

[SOLVED] Help please with modified default theme 1.5.5.0


tkrm

Recommended Posts

I am in the process of adapting the default theme 1.5.5.0 and would appreciate some help with the following problem.

 

I have changed the default theme to 2 column as per this thread

 

http://www.prestashop.com/forums/topic/265644-increase-prestashop-center-column-1540/

 

However, after deleting some modules and moving others from the right column to the left column using Live Edit, the moved modules are also showing up in the centre column (picture below). This was done prior to doing the 2 column mods.

 

I am working on a local machine, so no link to a live page, force compilation on and cache disabled.

 

Any help to solve this appreciated.

 

post-706824-0-11753700-1378877799_thumb.jpg

Link to comment
Share on other sites

Thanks for the welcome.

I should mention I am only self taught in this and still learning.

Files below. Not sure how to post code here so that it shows proper formatting.

 

Vekia - I will go hunt for your suggestion in the morning (here), to see what I can find.

 

Header.tpl

 

{*

* 2007-2013 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:


* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <[email protected]>

*  @copyright  2007-2013 PrestaShop SA

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="{$lang_iso}"> <![endif]-->

<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$lang_iso}"> <![endif]-->

<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$lang_iso}"> <![endif]-->

<!--[if gt IE 8]> <html class="no-js ie9" lang="{$lang_iso}"> <![endif]-->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">

<head>

<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>

{if isset($meta_description) AND $meta_description}

<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />

{/if}

{if isset($meta_keywords) AND $meta_keywords}

<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />

{/if}

<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

<meta http-equiv="content-language" content="{$meta_language}" />

<meta name="generator" content="PrestaShop" />

<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />

<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />

<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />

<script type="text/javascript">

var baseDir = '{$content_dir|addslashes}';

var baseUri = '{$base_uri|addslashes}';

var static_token = '{$static_token|addslashes}';

var token = '{$token|addslashes}';

var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};

var priceDisplayMethod = {$priceDisplay};

var roundMode = {$roundMode};

</script>

{if isset($css_files)}

{foreach from=$css_files key=css_uri item=media}

<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />

{/foreach}

{/if}

{if isset($js_files)}

{foreach from=$js_files item=js_uri}

<script type="text/javascript" src="{$js_uri}"></script>

{/foreach}

{/if}

{$HOOK_HEADER}

</head>

 

<body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column {/if} {if $hide_right_column}hide-right-column {/if} {if $content_only} content_only {/if}">

{if !$content_only}

{if isset($restricted_country_mode) && $restricted_country_mode}

<div id="restricted-country">

<p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>

</div>

{/if}

<div id="page" class="container_9 clearfix">

 

<!-- Header -->

<div id="header" class="grid_9 alpha omega">

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/>

</a>

<div id="header_right" class="grid_9 omega">

{$HOOK_TOP}

</div>

</div>

 

<div id="columns" class="grid_9 alpha omega clearfix">

<!-- Left -->

<div id="left_column" class="column grid_2 alpha">

{$HOOK_LEFT_COLUMN}

</div>

 

<!-- Center -->

<div id="center_column" class=" grid_7 omega"> <!-- <div id="center_column" class=" grid_5"> tkrm -->

{/if}

 

Footer.tpl

 


{*

* 2007-2013 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:


* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <[email protected]>

*  @copyright  2007-2013 PrestaShop SA

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*}

 

{if !$content_only}

</div>

 

<!-- Right --><!-- commented out for 2 column -->

<div id="right_column" class="column grid_2 omega">

{$HOOK_RIGHT_COLUMN}

</div> 

</div>

 

<!-- Footer -->

<div id="footer" class="grid_9 alpha omega clearfix">

{$HOOK_FOOTER}

{if $PS_ALLOW_MOBILE_DEVICE}

<p class="center clearBoth"><a href="{$link->getPageLink('index', true)}?mobile_theme_ok">{l s='Browse the mobile site'}</a></p>

{/if}

</div>

</div>

{/if}

</body>

</html>

 

Edited by tkrm (see edit history)
Link to comment
Share on other sites

Uhm... the right column doesn't seem to be commented out actually.

 

Try wrapping this

<div id="right_column" class="column grid_2 omega">
{$HOOK_RIGHT_COLUMN}
</div> 

Like this

{*<div id="right_column" class="column grid_2 omega">
{$HOOK_RIGHT_COLUMN}
</div> *}

With Smarty comments :)

Link to comment
Share on other sites

Yep, The footer code isn't commented out. Comment is a left over from previous try earlier.

 

This is what happens when I comment it out in the footer.tpl.

 

I've cropped the image, but there is the same amount of whitespace to the right as there is where the footer has shifted left. Hope that made sense.

 

Also, as you can see, the top half has now turned blue.

 

post-706824-0-97582900-1378905873_thumb.jpg

Edited by tkrm (see edit history)
Link to comment
Share on other sites

Unfortunately, I'm working on a local machine, so no live url at the moment.

 

I will see about uploading it to my domain tomorrow and give you a link.

 

Will also post a list of all the mods done and in which files tomorrow.

 

I've been at this so long today, I'm going cross-eyed and almost ready to put my foot through the screen, so I'm of to bed (it's almost 11.16 pm here)

 

Thanks for the replies so far.

Link to comment
Share on other sites

I have switched shop to live.

 

These are the files that have been modified:

 

../themes/tkrm/global.css line 298 --> change colour

 

../themes/tkrm/global.css line 579 --> change colour

 

root/modules/blocktopmenu/css/superfish-modified.css line 19 --> change colour

 

root/modules/blocksearch/blocksearch.css line 24 --> change colour

 

../themes/tkrm/header.tpl line 93 changed to --> <div id="center_column" class=" grid_7 omega">

 

I removed the change to ../themes/tkrm/footer.tpl as per Nemo1 in post #5 as it just screws everything.

 

can you for example, disable modules in: modules > positions

search for "displayRight" modules list - and remove from this list new products block module

 

Couldn't find any way to search for "displayRight" in modules > positions list

Edited by tkrm (see edit history)
Link to comment
Share on other sites

okay i checked it, your right column is in the code, it isn't removed.

FfurzWv.png

 

follow Nemo's suggestion:

 

Like this

{*<div id="right_column" class="column grid_2 omega">
{$HOOK_RIGHT_COLUMN}
</div> *}

With Smarty comments  :)

 

 

and go to adv. param. > performance and turn on force compilation

 

when it will be done, can let me know here?

  • Like 1
Link to comment
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...