jleesaxon Posted July 22, 2013 Share Posted July 22, 2013 (edited) cartblock.tpl contains 7 lines of code for <h4 class="title_block"> and 15 lines of code for <div id="cart_block_summary>. cartblock.css contains 11 lines of code for the former and 1 line for the latter. And it's all set to display:none. Why write all that and then hide it? Any reason I shouldn't just delete it? Edited July 22, 2013 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted July 22, 2013 Share Posted July 22, 2013 Because with that block, js sets it to display:block when you hover over the cart. Link to comment Share on other sites More sharing options...
jleesaxon Posted July 22, 2013 Author Share Posted July 22, 2013 (edited) From what I can see, just <div id="cart_block_list"> (not <h4 class="title_block"> or <div id="cart_block_summary">) appears/expands when you hover over blockuserinfo's <li id="shopping_cart">. See this completely unmodified v1.5.4.1 test install: http://www.elliscame...blockcart_test/ There does appear to be code (for buttons in cartblock.tpl and functions in ajax-cart.js) that would allow the ajax cart rollout to be collapsed into a summary or expanded into a full list, but I haven't been able to figure out how to activate it. Maybe the feature is depricated? It does seem kinda pointless for the ajax rollout to duplicate the cart summary that blockuserinfo's <li id="shopping_cart"> already provides.... Edited July 22, 2013 by jleesaxon (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