Jump to content

Cart Block in leftColumn hook


Recommended Posts

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

"#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

@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

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

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...