Jump to content

I haven't right column


Recommended Posts

Hi,

My problem is that my template have the option to put right column or left column in the theme editor module. not let me put the two together

But i want two columns, right and left, and i think that i need change code of footer.tpl and global.css to have the 2 columns, but i don't know how.

 

this is my footer.tpl :

 

 

{if $page_name == 'stores' || $page_name == 'order-opc'}

{assign var='activeColumn' value='disable_left'}

{else}

{assign var='activeColumn' value='enable_left'}

{/if}

 

 

 

{if isset($warehouse_vars.left_column) && $warehouse_vars.left_column == 0}

 

{if $page_name == 'product'}

{assign var='activeColumn' value='disable_left'}

 

{/if}

{/if}

{if isset($warehouse_vars.h_left_column) && $warehouse_vars.h_left_column == 0}

{if $page_name == 'index'}

{assign var='activeColumn' value='disable_left'}

{/if}

{/if}

 

 

 

{if !$content_only}

{if $activeColumn == "enable_left" ||

$page_name == 'product'}

</section>

{/if}

</div>

{if $activeColumn == "enable_left"}

<div id="left_column" class="column" role="complementary">

{$HOOK_LEFT_COLUMN}

</div>

{/if}

</div>

</div>

</div>

 

<!-- Footer -->

<div id="product_added_confirm">

<div id="close_product_added_confirm">x</div>

<strong>pname</strong>

<p>

{l s='Product was successfully added to your shopping cart.'}

</p>

<div id="continue_product_added_confirm">« {l s='Continue shopping'}</div>

<a id="checkout_product_added_confirm" href="{$link->getPageLink('order.php')}">{l s='Checkout'} »</a>

</div>

<div id="product_added_error">

<div id="close_product_added_error">x</div>

<strong>{l s='Error'}</strong>

<p>

huston we have a problem

</p>

<div id="continue_product_added_error">« {l s='Continue shopping'}</div>

</div>

<footer id="footer" class="{if isset($warehouse_vars.tf_width) && ($warehouse_vars.tf_width == 1)} tf_content_width{/if} clearfix">

<div class="fixed_width footer_border clearfix">{$HOOK_FOOTER}

 

</div>

 

</footer>

{if isset($warehouse_vars.second_footer) && $warehouse_vars.second_footer == 1}

<div class="white_wrapper">

 

<footer class="fixed_width copyrights clearfix">

{if isset($warehouse_vars.copyright_text)} {$warehouse_vars.copyright_text} {/if}

{if isset($warehouse_vars.footer_img_src)} <img src="{$warehouse_vars.footer_img_src}" alt="logos" class="paymants_logos" />{/if}

 

</footer></div> {/if}

</div>

{/if}

<div id="toTop"></div>

</body>

</html>

 

 

my template is: WAREHOUSE

my page: www.modaalpormayor.com

 

Sorry for my english

 

 

 

Thanks!!

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

See here:

 

{if !$content_only}

{if $activeColumn == "enable_left" ||

$page_name == 'product'}

</section>

{/if}

</div>

{if $activeColumn == "enable_left"}

<div id="left_column" class="column" role="complementary">

{$HOOK_LEFT_COLUMN}

</div>

{/if}

</div>

</div>

</div>

 

See that {if $activeColumn == "enable_left"} ?

 

remove it, and the subsequent {/if} like this

<div id="left_column" class="column" role="complementary">

{$HOOK_LEFT_COLUMN}

</div>

 

Do it for the right column too. Of course, this way you'll always have both columns ;)

Link to comment
Share on other sites

Nemo thanks for your answer. But if i remove it:

{if $activeColumn == "enable_left"}

<div id="left_column" class="column" role="complementary">

{$HOOK_LEFT_COLUMN}

</div>

{/if}

i haven't columns in my page.

can you give an example of how it would be the footer??

 

thanks nemo!

Link to comment
Share on other sites

Footer?

That left column should be in the header.tpl file, I can't believe a theme developer put it in the footer :o

You don't have to remove it all, only the {if} logic, leave the html inside

 

<div id="left_column" class="column" role="complementary">

{$HOOK_LEFT_COLUMN}

</div>

Link to comment
Share on other sites

Nemo see this:

in my header.tpl i have:

 

<!-- Left -->

 

{if $page_name != 'index'}

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

{$HOOK_LEFT_COLUMN}

</div>

{/if}

 

<!-- Center -->

 

<div id="center_column">

 

and in my footer.tpl:

 

* International Registered Trademark & Property of PrestaShop SA

*}

 

 

{if !$content_only}

</div>

 

<!-- Right -->

{if $page_name != 'index'}

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

{$HOOK_RIGHT_COLUMN}

</div>

{/if}

 

</div>

</div>

 

 

<!-- Footer -->

<div id="product_added_confirm">

<div id="close_product_added_confirm">x</div>

<strong>pname</strong>

<p>

{l s='Product was successfully added to your shopping cart.'}

</p>

<div id="continue_product_added_confirm">« {l s='Continue shopping'}</div>

<a id="checkout_product_added_confirm" href="{$link->getPageLink('order.php')}">{l s='Checkout'} »</a>

</div>

<div id="product_added_error">

<div id="close_product_added_error">x</div>

<strong>{l s='Error'}</strong>

<p>

huston we have a problem

</p>

<div id="continue_product_added_error">« {l s='Continue shopping'}</div>

</div>

<footer id="footer" class="{if isset($warehouse_vars.tf_width) && ($warehouse_vars.tf_width == 1)} tf_content_width{/if} clearfix">

<div class="fixed_width footer_border clearfix">{$HOOK_FOOTER}

 

</div>

 

</footer>

{if isset($warehouse_vars.second_footer) && $warehouse_vars.second_footer == 1}

<div class="white_wrapper">

 

<footer class="fixed_width copyrights clearfix">

{if isset($warehouse_vars.copyright_text)} {$warehouse_vars.copyright_text} {/if}

{if isset($warehouse_vars.footer_img_src)} <img src="{$warehouse_vars.footer_img_src}" alt="logos" class="paymants_logos" />{/if}

 

</footer></div> {/if}

</div>

{/if}

<div id="toTop"></div>

</body>

</html>

 

 

....

 

if you want see: www.modaalpormayor.com

and now i have the right column but misplaced...

I think that in this template the parametres of right column are wrong, because in the theme editor module to put the sidebar in right, use the left column, i don't know if you understand.

 

i tried to position the right column with firebug, but depending of page don't appear in his place.

 

SORRY FOR MY ENGLIGH

 

HELP and Thanks again! :)

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

Well, if the theme is setup to display only one column, you'll need to edit the css along with the tpls.

 

In global.css, line 58, be sure to set the right column like left column (240px width and float left)

 

It uses a really weird structure anyway, maybe to allow customization via back office

Link to comment
Share on other sites

  • 3 months later...

Hi

I just spent over 1.5 hours trying to get the right column in my theme (i also am using Warehouse), i failed!

I copied the code you gave above in red but it seems to delete the left column i have in the homepage, and in the product page when the 'right column' appears is adjacent to the left column (in the area they call the product footer).

I tried to change some css (line 58) to the required width, but everything is just not working!

 

Could you please help!! :unsure:

 

In theme editor i have it set to sidebar on the left. I want there to be a left column (ONLY) on the homepage, and a left AND right column in the product page.

I have the same files as you with the same code. Would you be able to send me the files that you changed?

 

By the way, my website is large width (just over 1200px) & responsive... do you think this is why it's not working for me as it does on your non responsive normal width website?

 

Thanks!!! :rolleyes:

Edited by Cari (see edit history)
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...