vegaskev Posted May 26, 2014 Share Posted May 26, 2014 I have transplanted Cart Block module into leftColumn and it is there, however, as you can see by the screenshot, it's extremely messed up. I've looked for settings, duplicate instances of the module and cannot find any. I checked with "manage hooks" and no other instances of said module are hooked anywhere else. Any guidance would be awesome. Thank you in advance. http://awesomescreenshot.com/03a2vapi71 Link to comment Share on other sites More sharing options...
jleesaxon Posted May 27, 2014 Share Posted May 27, 2014 (edited) This module will not work unless it inside not just a "header" element, but a "header" element with the very specific and definitely useful id tag "#header." No one can tell me why. I hate this module. Edited May 27, 2014 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2014 Share Posted May 27, 2014 it's due to the css styles. /themes/deafult-bootstrap/css/modules/blockcart/blockcart.css change all instances of #header to #leftcolumn Link to comment Share on other sites More sharing options...
jleesaxon Posted May 27, 2014 Share Posted May 27, 2014 "#header" also appears in modules/blockcart/ajax-cart.js a couple times, you'd probably have to remove those too. I've tried removing it from both files in the past and still not gotten it to work, I may have just missed one though. Link to comment Share on other sites More sharing options...
vegaskev Posted May 28, 2014 Author Share Posted May 28, 2014 @vekia. Thank you for your patience and help. Unfortunately, your solution did not work for me. Do you have any other suggestions? @jleesaxon. Thanks as well. Unfortunately, your solution didn't work for me either. Have you had any luck with this since earlier today by chance? If so, can you please share? Thanks in advance. Link to comment Share on other sites More sharing options...
vegaskev Posted May 28, 2014 Author Share Posted May 28, 2014 I figured it out. Apparently, you need to keep a copy of the module transplanted inside of the displayHeader hook in order for the cart block to work elsewhere on the theme. Not sure why that is, nor do I understand why placing the cart block module inside the displayHeader hook doesn't make the cart block also appear inside the header, or, if it knows to only display itself once, why it chooses the displayLeftColumn over displayHeader. Some deeper info or links to deeper info on the "why" of this solution would be helpful in my pursuit to learn more about PrestaShop, if you could. Thanks in advance. 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