use following line
<td class="remove"><img src="delete.png" onclick="$('#basket').submit();" name="remove[0]" value="<?php echo $product['key']; ?>" /></td>
instead of
<td class="remove"><input type="checkbox" name="remove[]" value="<?php echo $product['key']; ?>" /></td>
also remember you can use onclick="$('#basket').submit();" or onclick="$('#cart).submit();" as per your update button onclick
<td class="remove"><img src="delete.png" onclick="$('#basket').submit();" name="remove[0]" value="<?php echo $product['key']; ?>" /></td>
instead of
<td class="remove"><input type="checkbox" name="remove[]" value="<?php echo $product['key']; ?>" /></td>
also remember you can use onclick="$('#basket').submit();" or onclick="$('#cart).submit();" as per your update button onclick
Yes i know i could but i got some old modules that i can't run without ,but until i got updates for those i try to make it as useful as I can ,thanks
This is odd. I had this code running and working for a long time...
And this at the bottom of cart.tpl
... But all of a sudden it stopped working in FF and Chrome. Anybody else?
Code: Select all
<a onclick="$('#basket').submit();" class="delete" />
<input type="checkbox" id="<?php echo $product['key']; ?>" name="remove[]" value="<?php echo $product['key']; ?>" style="display:none;"/>
<img src="lib/cart_remove_btn.png" onclick="remove('<?php echo $product['key']; ?>');"/>
</a>
Code: Select all
<script language="javascript" type="text/javascript">
function remove(id)
{
document.getElementById(id).checked=true;
}
</script>
I know this topic is old, but maybe someone will solve this problem ....
I simply solved in this way...
and
I simply solved in this way...
Code: Select all
<td class="remove">
<a href="javascript:cancella('<?php echo $product['key']; ?>')"><img src="catalog/view/theme/default/image/close.png" /></a>
<input type="checkbox" name="remove[]" value="<?php echo $product['key']; ?>" id="<?php echo $product['key']; ?>" style="visibility:hidden"/</td>
Code: Select all
<script language="javascript">
<!--
function cancella(testo) {
document.getElementById(testo).checked = true;
$('#basket').submit();
}
//-->
</script>
Just installed Opencart 2.1.0.1 on Centos 7.0.
found the issue still exists. delete button works with IE, but not Chrome. have not try firefox yet.
client OS is windows 8.1 Pro.
found the issue still exists. delete button works with IE, but not Chrome. have not try firefox yet.
client OS is windows 8.1 Pro.
Who is online
Users browsing this forum: No registered users and 6 guests