[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [ic] Delete item as image?
"Reid Ivens" <reid@n-visionit.com> writes:
> Hi folks,
>
> Is it possible to change the "Remove Item from Shopping Cart" checkbox on
> the shopping cart page with an image? I've tried a number of ways, but
> after clicking on the image the process page sends me back and the item is
> still there.
I found a rather complicated way to accomplish this, but it works for me:
[if items]
[item-list]
[perl interpolate=1]
$i = 0; @qs = ();
for (@$Items) {
if ($i == '[item-increment]' - 1) {
push (@qs, 'quantity' . $i++ . '=0');
} else {
push (@qs, 'quantity' . $i++ . '=' . $_->{quantity});
}
}
$Scratch->{qlist} = join ("\n", @qs); '';
[/perl]
<a href="[area scan
sf=idf
se=[item-code]
sp=content_detail
]" target=content><img src="images/[item-field pic_mini]" border=0 width="52" height="44"></a><a href="[area form="
mv_action=order
mv_doit=refresh
mv_nextpage=[scratch index]
[scratch qlist]
"]" target="_top"><img src="images/button_delete.gif" border=0 width="41" height="44"></a>
[/item-list]
[else]
[/else]
[/if]
Ciao
Racke
--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---
_______________________________________________
Interchange-users mailing list
Interchange-users@www.minivend.com
http://www.minivend.com/mailman/listinfo/interchange-users