Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
SajMalik
SajMalik
I am trying to add an image to the Add to Cart link.
I did this easily in 3.6 but cannot get the image to show in 4+
 
The original script for templates>user>block_product_details.html is -
 
<!-- begin add_button -->
<a class="button button-add" id="add_{item_id}" href="{buy_href}" onclick="return confirmBuy(document.form_{item_id}, 'cart', this);"><span>{ADD_TO_CART_MSG}</span><img src="images/tr.gif" alt="{ADD_TO_CART_MSG}" /></a>
<!-- end add_button -->
 
.
I have changed this to:
 
<!-- begin add_button -->
<a class="button button-add" id="add_{item_id}" href="{buy_href}" onclick="return confirmBuy(document.form_{item_id}, 'cart', this);"><span>{ADD_TO_CART_MSG}</span><img src="images/shoppingcartADD2.png" alt="{ADD_TO_CART_MSG}" border="0" /> </a>
<!-- end add_button -->
 
.
Should this work or have I missed something?
 
Chris
 
TOCDCO
TOCDCO
Chris,
 
In your css stylesheet you have:
 
a.button {color: #26779A; font: 18px "MS Sans Serif", Geneva, sans-serif; padding: 0px 10px 0px 0px; text-transform: lowercase; white-space: nowrap;}
a.button img {display: none;}
a.button-add {color: #FF4E00;}
 
Change the 'a.button img {display: none;}' to 'a.button img {}'
 
This should correct your issue Smile
 
SajMalik
SajMalik
Thanks Dan
 
TOCDCO
TOCDCO
No problem. Anytime Smile