Streaming live at 10am (PST)

Adding collection wrapper to cart

I’ve been trying to add a collection list wrapper to the cart, but it doesn’t seem to work, first I tried it with the cart-item, but that doesn’t have a wrapper and then I tried appendTo(), but it adds it as a script. I was wondering if anyone knew a way to include a collection wrapper to the cart?

Any help is highly appreciated.

Read-only link:
https://preview.webflow.com/preview/modvrn-3-new?utm_medium=preview_link&utm_source=designer&utm_content=modvrn-3-new&preview=b063e0c1cdac7f7c44e268f2bcf665cc&mode=preview

I figured it out. If you would like to add a collection wrapper to the cart, add one to the navbar and then with custom code via Jquery insert it to the cart. Below is the custom code that worked for me. Be sure to hide the wrapper from the navbar.

Feel free to comment if you found an easier or alternative way to do it. Webflow is awesome!

( document ).ready(function() { window.addEventListener('DOMContentLoaded', (event) => { ( “.name-of-wrapper” ).insertAfter( ( ".element-to-add-after" ) ); setTimeout(function() { ( “.name-of-wrapper” ).css(“display”, “block”);
$( “.name-of-wrapper .collection-list-name” ).css(“display”, “flex”);
}, 300)
})