News:

Looking for documentation? Take a look on our wiki

Main Menu

Add a class to the modal window content of the Add to Cart response

Started by neo314, February 10, 2013, 20:08:03 PM

Previous topic - Next topic

neo314

In 2.0.18a (and before), the output after adding to cart of the modal window comes out like this:

<div>
<a class="continue" href="/my-products">Continue Shopping</a>
<a class="showcart floatright" href="/my-cart">Show Cart</a>
<div>The product was added to your cart.</div>
<h4>Premium Widget was added to your cart.</h4>
</div>


The opening div tag needs a class in order to facilitate styling. The message div could use a class as well. For my template, I styled a.continue to float left, but I don't have any way to style the message div, so "The product was" appears before the links and without the float left, it does not look right either.

The only way to style it right now is to edit a core VM file, or style the first div after all modal windows using fancybox.