Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Delete button for item (without Javascript)



******    message to minivend-users from Stefan Hornburg <racke@linuxia.de>     ******


I like to make a button which deletes one item from the basket.
The following works, but I think this way to complicated.
Any simpler approaches ?

[item-list]
[perl interpolate=1]
$i = 0;
for (@$Items) {
    if ($i == '[item-increment]' - 1) {
        push (@qs, 'quantity' . $i++ . '=0');
    } else {
        push (@qs, 'quantity' . $i++ . '=' . $_->{quantity});
    }
}
$Scratch->{qlist} = join ("\n", @qs);
'';
[/perl]
    <td bgcolor="#999999"><img src="__IMAGE_DIR__/images/[item-field pic_mini]" width="33" height="32">[page form="
mv_action=order
mv_doit=refresh
mv_nextpage=bottom
[scratch qlist]
"]<image src="images/button_delete.gif" border=0 width="33" height="31"></a></td>
[/item-list]

Ciao
        Racke

-- 
LinuXia Systems, eCommerce and more => http://www.linuxia.de/ or 05130-377132.
Unsere Partner: Cobolt NetServices (http://www.cobolt.net), CAPCON Systemhouse
(http://www.capcon-systemhouse.com), ecoservice gmbh (http://www.ecoservice.de)
Unser Fokus liegt auf Open-Source-Software (MiniVend, Debian GNU/Linux, etc.)

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: