[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Recalculate Problem
After much time spent narrowing it down I have found the following to be the
case:
This code in my templates/components/cart file:
[button
text="Check Out"
src="navigation/checkout_button.gif"
hidetext=1
form=basket
]
mv_todo=return
mv_nextpage=ord/checkout
[/button]
Is normally displayed on the My Cart page as:
<script language="javascript1.2">
<!--
document.write('<INPUT TYPE=hidden NAME="mv_click_map"
VALUE="Check_Out"><INPUT TYPE=hidden NAME="mv_click_Check_Out" VALUE=""><A
HREF="javascript:void 0" onMouseOver="window.status=\'Check Out\'"
onClick=" (basket.mv_click_Check_Out.value=\'Check Out\') &&
basket.submit(); return(false);" ALT="Check Out"><IMG ALT="Check Out"
SRC="/~shop/cart/images/navigation/checkout_button.gif" border=0
align=top></A> ');
// -->
</script>
<noscript><INPUT TYPE="submit" NAME="mv_click" VALUE="Check Out"></noscript>
Which results in the checkout button being displayed properly. However,
whenever I hit recalculate on the My Cart page the following code takes the
place of the above code after it refreshes:
<INPUT TYPE="submit" NAME="mv_click" VALUE="Check Out">
Which is just a normal forms submit button labeled "Check Out". Why does it
switch the code like that after a recalculate? The button is displayed
properly with the initial code at all other times on the My Cart page.
Either button clicked leads to the checkout page properly with SSL and all.
Why is all that Javascript even necessary to checkout with a gif when that
short line above checks out the same way with a forms-style button?
Thank you!
Grant
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com