This is the code for add to car in the tpl file.florinsith wrote:Post the exact code of your add to cart button here. Leave the css alone.
All the respect!
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
And this is the code for the live demo also in the tlp flie next to add to car.
<a class="button2" target="_blank" href="<?php echo $product_info['sku']; ?>">Live demo</a>
And this is the full code in the stylesheet.
}
.button_add_small, a.button_add_small:visited {
margin-top: 3px;
background: url('../image/button_add_small.png') no-repeat left center transparent;
padding:5px;
text-decoration: none;
cursor:pointer;
.button2 {
padding-left: 8px;
display: inline-block;
margin-right: 5px;
background: url('../image/button_add_small') top left no-repeat;
text-decoration: none;
color:#FFF;
}
.button2 span {
color: #FFF;
display: block;
padding: 4px 12px 5px 5px;
background: url('../image/button_add_small') top right no-repeat;
Thanks James