jarneau Posted July 19, 2012 Share Posted July 19, 2012 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 More sharing options...
math_php Posted July 19, 2012 Share Posted July 19, 2012 Hello, I went on your site using Firefox, and it is ok for me the cart did not come back. The theme is nice. Link to comment Share on other sites More sharing options...
jarneau Posted July 19, 2012 Author Share Posted July 19, 2012 Thanks! But what about the last page? (where you have chosen your payment option). On my firefox browser, the cart suddenly came back. Grtz Link to comment Share on other sites More sharing options...
math_php Posted July 20, 2012 Share Posted July 20, 2012 Ok sorry, I can not speak or write decently english, then imagine my understanding of dutch... Yes you have the return of cart block in payment option. 1 Link to comment Share on other sites More sharing options...
math_php Posted July 20, 2012 Share Posted July 20, 2012 (edited) 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 ) <!-- {$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 July 20, 2012 by math_php (see edit history) 1 Link to comment Share on other sites More sharing options...
jarneau Posted July 23, 2012 Author Share Posted July 23, 2012 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 More sharing options...
math_php Posted July 23, 2012 Share Posted July 23, 2012 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 More sharing options...
jarneau Posted July 24, 2012 Author Share Posted July 24, 2012 Thanks for the info, the cart is now dissapeared! But the frame is still seperated on two lines (like the cart is still using space). Very strange.. I posted a pic so you can see what i mean. Link to comment Share on other sites More sharing options...
math_php Posted July 24, 2012 Share Posted July 24, 2012 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 1 Link to comment Share on other sites More sharing options...
math_php Posted July 24, 2012 Share Posted July 24, 2012 (edited) 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 July 24, 2012 by math_php (see edit history) 1 Link to comment Share on other sites More sharing options...
jarneau Posted July 24, 2012 Author Share Posted July 24, 2012 I changed the header.tpl (in the theme directory), but the problem didn't go away. I also can't find this line in a file: <div class="inner_column" id="center_column"> Link to comment Share on other sites More sharing options...
math_php Posted July 24, 2012 Share Posted July 24, 2012 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. Link to comment Share on other sites More sharing options...
math_php Posted July 25, 2012 Share Posted July 25, 2012 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 More sharing options...
jarneau Posted July 28, 2012 Author Share Posted July 28, 2012 Damn, I didn't know what I did, but my cart is now always under de centertext! I also forgot to make a backup of the file. I allready edited a lot.. Link to comment Share on other sites More sharing options...
math_php Posted July 31, 2012 Share Posted July 31, 2012 Do not ask me how, but I send it to you via private message. Apply the last solution I gave to you. Link to comment Share on other sites More sharing options...
jarneau Posted July 31, 2012 Author Share Posted July 31, 2012 I applied the original header.tpl from this theme. After that I applied this code to the bankwire file $smarty->assign('page_name','payment'); De cart dissapeares, but the page is still small.. Link to comment Share on other sites More sharing options...
math_php Posted July 31, 2012 Share Posted July 31, 2012 (edited) 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 July 31, 2012 by math_php (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now