Post by omass » Thu Feb 21, 2013 12:06 am

it is working fine with 1.5.1.3 as jackson wrote on FF an IE, but does not work with Chrome.

New member

Posts

Joined
Sat Jan 12, 2013 3:16 am

Post by avinashkalro » Sun May 12, 2013 1:39 pm

Does anybody have a solution to this?

New member

Posts

Joined
Sat Apr 23, 2011 11:34 pm

Post by sandukadekar » Thu Sep 05, 2013 2:36 pm

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

Newbie

Posts

Joined
Thu Sep 05, 2013 2:31 pm

Post by thiskiss1990 » Mon Sep 09, 2013 4:36 pm

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

Newbie

Posts

Joined
Sun Aug 25, 2013 5:21 pm


Post by cashless » Wed Oct 09, 2013 4:39 pm

This is odd. I had this code running and working for a long time...

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>
And this at the bottom of cart.tpl

Code: Select all

<script language="javascript" type="text/javascript">
function remove(id)
{
document.getElementById(id).checked=true;
}
</script>
... But all of a sudden it stopped working in FF and Chrome. Anybody else?

Newbie

Posts

Joined
Sat Nov 26, 2011 5:26 am

Post by iomedesimo » Fri Nov 15, 2013 12:37 am

I know this topic is old, but maybe someone will solve this problem ....
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>
and

Code: Select all

<script language="javascript">
<!--
function cancella(testo) {
document.getElementById(testo).checked = true;
$('#basket').submit();
}
//-->
</script>

New member

Posts

Joined
Thu Dec 08, 2011 6:33 pm

Post by eastactive » Sat Nov 14, 2015 9:20 pm

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.

Newbie

Posts

Joined
Fri Nov 13, 2015 3:34 am
Who is online

Users browsing this forum: No registered users and 6 guests