Jump to content

Purpose of hidden elements


Recommended Posts

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 by jleesaxon (see edit history)
Link to comment
Share on other sites

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 by jleesaxon (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...