Jump to content

Removing blockcart from the order confirmation


jarneau

Recommended Posts

Hello,

 

I got a little problem. I just installed a new theme to my prestashop (electroshop). It has a cool shopping cart module on the right.

 

But, when I want to complete my order as a costumer, normally the blockcart module dissapeares, so there is enough space. Suddenly on the last two pages (bankwirepayment and order confirmation), the module comes back, so there isnt enough space for the rest.

 

How can I edit this?

 

webadres:

 

www.irepairtwente.nl (netherlands)

 

 

image file where you can see the problem:

http://s11.postimage.org/mrfs3846r/problem.jpg

 

 

Looking foward to your reactions!

Link to comment
Share on other sites

Ok there is a solution

It depends on your footer.tpl theme.

 

Just show me few code lines around

{$HOOK_RIGHT_COLUMN}

 

You can also put this in you tpl (secure a copy of the orginal file :ph34r: )

 

<!-- {$page_name} -->

 

This will confirm for what page name you have to deal with a specific exception

Then you wil be able to adapt the code here under

 

{if $page_name != 'modules/bankwire/payment'}
<div id="right_column" class="column">{$HOOK_RIGHT_COLUMN}</div>
{/if}

 

After further testing :

$page_name is going to be empty then useless.

 

You have the 2 options :

- modifying bankwire module and footer.tpl

- find a solution with the theme seller

 

First solution is to add a smarty value that will give footer.tpl to not display right column when in bankwire module.

It is easy and light fix, but it would interresting to know theme seller solution.

 

Good dev

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

Sorry for the late reaction. i found this line in the footer.

 

 

{if !$content_only}

</div>

 

<!-- Right -->

{if $page_name == 'index' OR $page_name == 'authentication' OR $page_name == 'order' OR $page_name == 'payment'}

{* no right sidebar *}

{else}

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

{$HOOK_RIGHT_COLUMN}

</div>

<div class="clear"></div>

</div>

{/if}

<div class="clear"></div>

</div></div>

 

<!-- Footer -->

<div id="footer"><div class="wrapper">

{$HOOK_FOOTER}

</div></div>

</div>

{/if}

</body>

</html>

 

 

I think i need to edit this page, but I dont know the names of the validation page..

Link to comment
Share on other sites

Ok there is a solution in the footer.tpl

{if $page_name == 'index' OR $page_name == 'authentication' OR $page_name == 'order' OR $page_name == 'payment'}

could be change with

{if $page_name == 'index' OR $page_name == 'authentication' OR $page_name == 'order' OR $page_name == 'payment' OR isset($do_not_display_cart)}

 

Then in bankwire module

 just after global $cookie, $smarty;

put this

$smarty->assign('do_not_display_cart','yes');

Link to comment
Share on other sites

Yes there is a last issue to get a nice display.

 

The step before bankwire you have

<div class="full-width" id="center_column">

 

In the bankwire you have

<div class="inner_column" id="center_column">

 

Now perhaps with a last modification that goes along {$do_not_display_cart} in the footer.tpl you will be able to definitly fix this.

Good modification :)

  • Like 1
Link to comment
Share on other sites

Correction, now the modification is in header.tpl

 

{if $page_name == 'index' OR $page_name == 'authentication' OR $page_name == 'order' OR $page_name == 'payment'}

The patch :

{if $page_name == 'index' OR $page_name == 'authentication' OR $page_name == 'order' OR $page_name == 'payment' OR isset($do_not_display_cart)}

It is the same fix you did in footer.tpl.

Do not worry this are really safe changes, they will not disturb standard display.

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

You just have to find this

<!-- Center -->
   {if $page_name == 'index' OR $page_name == 'authentication' OR $page_name == 'order' OR $page_name == 'payment' OR isset($do_not_display_cart)}
 <div id="center_column" class="full-width">

And really trust me

<div id="center_column" class="inner_column">

is present, okay not the class and then the id but this above exist. :D

Link to comment
Share on other sites

In fact there was a much simplier solution, that only required a modification in bankwire.php :

$smarty->assign('page_name','payment');

That solution did not need to change tpl files.

Anyway both solutions are good, the last one is just more elegant.

Link to comment
Share on other sites

Ok dear Jarnau,

 

Now it seems that you need the header.tpl fix that we talked about in previous post. (your perhaps reinstalled your whole theme ?)

 

And everything is going be all right. ;)

 

Or not ? perhaps you had put

$smarty->assign('page_name','payment');

Not in the first step of bankwire.php, anyway you are close to it.

 

In bankwire.php, you can put '$smarty->assign('page_name','payment');' everytime you see 'global $smarty '

global $smarty;
$smarty->assign('page_name','payment');

Edited by math_php (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...