After adding and removiming product I have this html:
<div style="display: block; overflow: hidden;">
<!-- Order object present and cart is not empty. -->
<div>
<!-- Cart is empty or order object is null. -->
<div id="cd-cart" class="ajax-shopping-cart-wrapper">
<h2>Cart</h2>
<div class="empty-shopping-cart">
Shopping cart is empty </div>
<div class="ajax-shopping-cart-total"></div>
<div class="ajax-shopping-cart-checkout"></div>
</div>
</div>
</div>
First level div and second level div are new wrappers after ajax cart manipulations.
In template file I just changed:
<div id="cd-cart" class="ajax-shopping-cart-wrapper">
Comments
Comment #1
anikitin35 commentedComment #2
subhojit777Yes I am aware of this issue. I am trying to find an alternate for ajax_command_replace().
Again, patches are welcome.
Comment #3
anikitin35 commentedSorry, yours code is very hard for understanding.
Comment #4
torgospizzaEDIT: Unrelated.
Comment #5
joelpittetI was having a hard time checking if it was related based on the Issue Summary, but following to see what comes of this. @anikitin35 can you provide more details about the bug/incorrect markup?
Comment #6
anikitin35 commentedFor example:
we just added product to shopping cart and we have html:
Old strings in the beginning...
Comment #7
joelpittetHmm it's hard to tell if the issues are the same still, though could you try the patch and see if it help?
Comment #8
joelpittetNever mind they are unrelated.
Comment #9
torgospizzaRats. Thanks for the confirmation, I'll update my comment.
Comment #10
subhojit777Comment #11
subhojit777Closing this on behalf of #2318385: Extra div after ajax updates