![]() |
Functionality lost with simple style button links in IE
Hi all,
I am trying to convert the Buy Now and Add to Wish List button/links on the product/thumbnail list to small icon-like graphics. I figured the first thing to do is to convert the buttons to simple style (I had previously changed them to style="button") and then move on to change the label to be blank, just leaving the graphic link. However, when I change the relevant code pertaining to the button links in /customer/main/buy_now.tpl to style="simple" like in the following example from: Code:
<td>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"}</td> to: Code:
<td>{include file="buttons/add_to_cart.tpl" style="simple" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"}</td> The style changes fine, showing the text link and go button next to it, but, clicking on the link does not add the product to the cart and when I hover my mouse over the text label or the go button image, the status bar of my browser (lefthand bottom) displays: javascript: void(0); If I change the button style back (this is the only change being made), the product is added to the cart as expected, and everything works as it should... I have discovered that this only appears to be the case in Internet Explorer. Firefox works just fine... Can anyone shed any light on why the functionality stops working when changing the button style? Any help would be much appreciated... |
Re: Functionality lost with simple style button links in IE
OK, I have a couple of clues... I think this is linked to a section of button.tpl:
Code:
{* $Id: button.tpl,v 1.25.2.2 2006/06/16 10:47:41 max Exp $ *} I can comment out this... Code:
{if $js_to_href ne 'Y'} And the functionality now works in IE. But I'm not sure if there are any implications of doing this that may affect the original reason it's in the code... Also, with the above commented out, when I mouseover the link, instead of javascript: void(0); I now get this in the status bar: Code:
javascript: document.orderform_16194_1220758753.submit(); Can anyone shed some light? |
All times are GMT -8. The time now is 11:49 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.