Jump to content

Display Left Column


ldon

Recommended Posts

Hello,
 
I'm giving up. I've instaled the latest version of presta 1.6.0.5 and I've spended a few hours trying to display left column on the home screen but I'm not able to do so.
 
Please help.
 
 
Thank you in advance.

 

Link to comment
Share on other sites

Modules/position

Then look for display left column and see the modules that are listed under that. Click edit next to each one and in the field exceptions remove 'product' It may appear more than once.

 

Do these for each module in the left column, and repeat for each page you want the left column to appear on.

  • Like 1
Link to comment
Share on other sites

Modules/position

Then look for display left column and see the modules that are listed under that. Click edit next to each one and in the field exceptions remove 'product' It may appear more than once.

 

Do these for each module in the left column, and repeat for each page you want the left column to appear on.

 

The exceptions field is empty.

Link to comment
Share on other sites

I had the same problem but after enabling in in the theme configuration the left column showed up.  But when I tried disabling it, it didn't want to go.

 

I have tried everything and the only way I could disable it was to play around with the layout.tpl file.

 

So there are some bug with this module, left and right columns are not working properly.

Link to comment
Share on other sites

I had the same problem but after enabling in in the theme configuration the left column showed up.  But when I tried disabling it, it didn't want to go.

 

I have tried everything and the only way I could disable it was to play around with the layout.tpl file.

 

So there are some bug with this module, left and right columns are not working properly.

It doesn't work in my shop.

Link to comment
Share on other sites

 

I've done all this but no changes has appeared.
 
Maybe because I've got it on localhost (easyphp)?

 

 

I'm using prestashop 1.6.0.5 , online and with a new copy on local with xampp , and I have the same problem.

...and more : in local I can add the left column in the index ( homepage) and not in the product. And online in any part.

 

Really a great tool, with very bad testers.Unbelievable....

Edited by zeus71 (see edit history)
  • Like 1
Link to comment
Share on other sites

when you're enabling left column, you see some confirmation message? (confirmation, that everything was saved correctly) ?

 

Vekkia: Yes, I see the confirmation message... :(

 

 

Hi,

 

Could you please look at: http://www.prestashop.com/forums/topic/307223-solved-hook-left-column-on-cms-pages/page-2?do=findComment&comment=1600499

This should solve your problem.

 

Thank you

Lucas: I tried this SQL, but nothing changed :/

Link to comment
Share on other sites

I found a solution!

I wanted mainly categories block in left columnt on homepage, but it was disabled in position...

 

In position of modules - find DisplayLeftColumn hook - there is Categories block>edit-enable index page.

 

I THINK THIS IS SOLUTION OF THIS PROBLEM. JUST ENABLE MODULES WHAT YOU WANT ON INDEX :)

(Of course after enabling left-column, like on video from Vekia)

 

My problem was only in wront settings, which I didn't expected.

I hope this will help you B)

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

I found a solution!

I wanted mainly categories block in left columnt on homepage, but it was disabled in position...

 

In position of modules - find DisplayLeftColumn hook - there is Categories block>edit-enable index page.

 

I THINK THIS IS SOLUTION OF THIS PROBLEM. JUST ENABLE MODULES WHAT YOU WANT ON INDEX :)

(Of course after enabling left-column, like on video from Vekia)

 

My problem was only in wront settings, which I didn't expected.

I hope this will help you B)

No solution for me. I've done this yet but no change appear.

Link to comment
Share on other sites

Let's try and debug.

 

Open AdminThemesController (controllers/admin), then locate

	public function ajaxProcessLeftMeta()
	{
		$theme_meta = Db::getInstance()->getRow(
			'SELECT * FROM '._DB_PREFIX_.'theme_meta WHERE id_theme_meta = '.(int)Tools::getValue('id_theme_meta')
		);

		$result = false;
		if ($theme_meta)
		{
			$sql = 'UPDATE '._DB_PREFIX_.'theme_meta SET left_column='.(int)!(bool)$theme_meta['left_column'].' WHERE id_theme_meta='.(int)Tools::getValue('id_theme_meta');
			$result = Db::getInstance()->execute($sql);
		}

		if ($result)
			echo json_encode(array('success' => 1, 'text' => $this->l('The status has been updated successfully.')));
		else
			echo json_encode(array('success' => 0, 'text' => $this->l('An error occurred while updating this meta.')));
	}

Instead of the error message write

 

echo json_encode(array('success' => 0, 'text' => mysql_error()));

Link to comment
Share on other sites

Thanks for the post gang! It helped me figure out what the issue is with the settings. 

You need to enable the left column on index:

ENKbU0E.png

 

Then you need to go to the modules and make sure they are not set to "NOT" display on the index. To do that go to Modules >> Positions.

 

Y7Psx7r.png

 

Then filter for the module that you are wanting to display

 

xV3l2Kl.png

 

Then go to the "displayLeftColumn" hook and click on the Edit button. Next you want to make sure that "index" is NOT selected:

 

odJg0Id.png

 

And then hit save. You will need to do this for any other modules that you want to display on the home page left column.

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...

Vekia thank you

 

 

Now try disabling it please and see if this works for you

I`ve had the same problem , confirming it`s a bug

now I had products squeezed in the middle and two invisible right and left columns ;)

 

 

 

-------------------------------------

edit: I changed to another theme and went back and it is the same, 

But if entering in the theme>themename and clicking by hand on every exclamation mark or whateveris called you can arrange your theme to be shown properly 

 

VERY SMART PRESTASHOP TEAM

I NEVER SEEN SUCH USER FRIENDLY  LOGIC BEHIND A SYSTEM - in 1.6.*

it is close to perfection !

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

Hi there,

 

Im a prestashop newbie and I have the same problem - upgraded to the latest PS and the left column appeared for a moment with manufacturers etc, then it disappeared.  I have left column activated on every page (this is how it was since upgrade - i didnt change it) but for some reason no left columns appear anywhere on the site.

 

Im using the default bootstrap theme on 1.6 - Any help greatly appreciated as I have just left this hoping that an update might fix it but nothing so far.

 

W

Link to comment
Share on other sites

nice shop !~

this setup worked for me 

(pegasusmarket.us)

 

 

you must select it and arrange it by hand

and here

 

check if you enabled default left column and click on th edit right on the name of used theme - the default bootstrap as I can see on your shop

 

it is located in 

Preferences>Themes

then Edit , check if you enabled default left column and click on th edit right on the name of used theme

 

also check modules - positions

`display home`  `left column` `categories`  for the left column hooks

Link to comment
Share on other sites

ok... this is what I have:

 

"Preferences>Themes

then Edit , check if you enabled default left column and click on th edit right on the name of used theme"

 

- Both left and right default is enabled.

 

"also check modules - positions

`display home`  `left column` `categories`  for the left column hooks"

 

No left column hooks in Display Home - I think I removed it as I didnt want left column on the Home Page.  Does this need to be here?

 

and what do you mean "left column""categories"...I cant find categories.  Am I missing something?

 

Thank you so much for taking the time to help : )

 

W

Link to comment
Share on other sites

YOU BEAUTY! I finally figured it out after reading your post again - slowly! Some of the modules had been disabled in the backoffice and some were not hooked in - I finally understand the hooks system ( i think) - I really didnt think Id ever get my head round it - You are a star!

 

Thank you! W

Link to comment
Share on other sites

  • 3 weeks later...

Tried this and every other solution mentioned in this thread. But no solution yet..

 

Looks like the left column just doesnt want to display :(

 

 

 

 

 

I found a solution!

I wanted mainly categories block in left columnt on homepage, but it was disabled in position...

 

In position of modules - find DisplayLeftColumn hook - there is Categories block>edit-enable index page.

 

I THINK THIS IS SOLUTION OF THIS PROBLEM. JUST ENABLE MODULES WHAT YOU WANT ON INDEX :)

(Of course after enabling left-column, like on video from Vekia)

 

My problem was only in wront settings, which I didn't expected.

I hope this will help you B)

Link to comment
Share on other sites

Tried this and every other solution mentioned in this thread. But no solution yet..

 

Looks like the left column just doesnt want to display :(

 

so, at the moment what's the issue?

you cant enable left column due to the error on theme configuration page... or? 

Link to comment
Share on other sites

No error on the config page when enabling the left column. When enabling the left column, status successfully updated is shown. But still no left column.

 

Removed the index from the exception field too. 

 

Very new to Prestashop. might be missing something very obvious

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Modules/position

Then look for display left column and see the modules that are listed under that. Click edit next to each one and in the field exceptions remove 'product' It may appear more than once.

 

Do these for each module in the left column, and repeat for each page you want the left column to appear on.

 

 

Sir,

 

You are my hero and saved my day!

 

I am new to prestashop and was looking hours for the solution. 

I had no idea tat is was so simple!

 

Tnx!

Link to comment
Share on other sites

  • 3 months later...
  • 3 months later...

Hi,

 

I have just installed Prestashop 1.6.0.11 i saw the video but i dont have an option to enable left column for product page , please check the snapshot and if any one knows what i need to do to eanble left column on product page. The other options that i can see in there like index and product comaprison when i enable them they are working fine .

 

Please help .

 

Thank you

post-252331-0-96123900-1421098048_thumb.png

Link to comment
Share on other sites

So i saw Vekia's post http://www.prestashop.com/forums/topic/317556-left-column-in-the-categories-page/

and i checked my database table ps_theme_meta , i have total 35 values there but in backend theme configuration it's showing me only 27 options so i dont what exactly is the problem but i changed the left columns values all to 1 and i got the left column in product page. But it will be good if someone can tell me that how exactly i can see this left column option in backend theme configuration.

 

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...

I also do have a problem with displaying the left_column (with category block module) on the product page. I will try to explain to make things a little bit more clear.

 

I can get it to show at only the product page. In my case it has something to do with the size of the $left_column_size variable in "header.tpl" that is not properly set.

I'm talking about the following code:

<div class="row">
 {if isset($left_column_size) && !empty($left_column_size)}
	<div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div>
 {/if}

 {if isset($left_column_size) && isset($right_column_size)}{assign var='cols' value=(12 - $left_column_size - $right_column_size)}{else}{assign var='cols' value=12}{/if}
	<div id="center_column" class="center_column col-xs-12 col-sm-{$cols|intval}">

I had done a print_r in smarty to see what $left_column_size contained as a result i got "0" that doesn't seem right. So what happens* (only at the product page) that he doesn't even shows the "left_column" div because the size is not set. That explains why there is no left column at all, but why only on the product page?

 

 

Temporary solution:

What i Tried and what worked is the following code but that isn't the proper way to do this i think?

{if $page_name == 'product'}
<div id="left_column" class="column col-xs-12 col-sm-3">{hook h="displayLeftColumn"}</div>
<div id="center_column" class="center_column col-xs-12 col-sm-9">
{/if}

So does anyone have any suggestions why the left-column is not showing at the product page it is turned on at "settings->themes->advanced-settings"

any help would be much appreciated  :rolleyes:

Edited by Paul de Cocq (see edit history)
Link to comment
Share on other sites

Found it. With the latest version (1.6.0.11) there seems to be a problem with updating the table ps_meta_lang.

Unfortunately you need access to phpmyadmin (database editor) to fix this.

Make a DB backup first!!!!!!

 

1. find the table {prefix}_meta. So most of the time: ps_meta.

2. Find the id_meta that belongs to the page "product".

3. Find the table ps_meta_lang

4. Check if there is a record with the id_meta as the previous page.

5. If not then add a record with this id and the appropriate fields id_shop and id_lang plus the title field

6. You might need to repeat #5 for each shop and each language, but I am not sure.

 

After that the product option in the advanced theme editor is activated.

I am not sure, if you need to set 'configurable' for the 'product' in ps_meta to '1'.

For me it makes no difference.

 

I hope this helps.

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

Found it. With the latest version (1.6.0.11) there seems to be a problem with updating the table ps_meta_lang.

Unfortunately you need access to phpmyadmin (database editor) to fix this.

Make a DB backup first!!!!!!

 

1. find the table {prefix}_meta. So most of the time: ps_meta.

2. Find the id_meta that belongs to the page "product".

3. Find the table ps_meta_lang

4. Check if there is a record with the id_meta as the previous page.

5. If not then add a record with this id and the appropriate fields id_shop and id_lang plus the title field

6. You might need to repeat #5 for each shop and each language, but I am not sure.

 

After that the product option in the advanced theme editor is activated.

I am not sure, if you need to set 'configurable' for the 'product' in ps_meta to '1'.

For me it makes no difference.

 

I hope this helps.

 

I will try this, after i back-upped the whole DB. It looks promising, Thanks!!

Link to comment
Share on other sites

I was close to end up with a headache when I saw that I might have to tangle with the code but then I found an interesting option for modules, called reset. I had the same issue, allowed left column, then blocks just wouldn't start to show, no matter what I did.

 

What solved the issue, even after hooking each block on left column, was the "reset" option for the modules.

 

Worked perfectly after all modules got a reset and now I can finally allow banners, specials block, newsletter block, and pretty much, any other block.

 

Hope this helps others, before they start to go into the code.

Link to comment
Share on other sites

×
×
  • Create New...