MiniVend Akopia Services

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

Re: order_quantity via order link



******    message to minivend-users from "Thoren Johne" <thoren@csi.com>     ******

There was no helpfull reply to my question, but for Minivend 3.12 i found a solution. Targets are necessary in my case, because i use a <BASE TARGET=...> tag on my page.

Side-effects: 0 and negative quantities are possible (and will be calculated with a subtractive price!), so i suppress any item with a zero quantity. These "zero"-items will be only erased from the basket if you press "recalculate" on the ord/basket page, perhaps it is possible to integrate that process in the list itself - please tell me if you know how to :)

ok... there's my piece of code, it's not surrounded by a <FORM>-tag. As you can see i still could use some help to make it working smoother by having an integrated auto-delete for zero quantities.

ah... well... you need to get rid of the perl-style comments - don't try to use them at home ;)

[if items]
    <TABLE>
        <TR><TD COLSPAN="3">Bestellt:</TD></TR>
        <TR> 
            <TD>#</TD>
            <TD>Artikel</TD>
            <TD>Preis</TD>
        </TR>
    [item-list]
    [if explicit]
        [condition]                            # suppress display of items
            $count = '[item-quantity]';        # with zero quantity so its
            return 0 if $count eq 0;           # not possible to decrease
            return 1;                          # into the negative
        [/condition]        
        <TR> 
            <TD>[item-quantity]
                <A HREF=[area form="
                    mv_order_item=[item-code]
                    mv_order_quantity=-1       # decrease by one
                    mv_todo=refresh
                "] TARGET=nav>-</A>
                <A HREF=[area form="
                    mv_order_item=[item-code]
                    mv_order_quantity=1        # increase by one
                    mv_todo=refresh
                "] TARGET=nav>+</A>
            </TD>
            <TD><A HREF="[area [item-code]]" TARGET=main>[item-code]</A></TD>
            <TD>[item-subtotal]</TD>
        </TR>
    [/if]
    [/item-list]
        <TR><TD></TD></TR>
        <TR>
            <TD>Summe:</TD>
            <TD>[subtotal]</TD>
        </TR>
        <TR>
            <TD>[page ord/basket]Mengen bearbeiten/l&#246;schen</A></TD>
            <TD>[page ord/checkout]zur Kasse</A></TD>
        </TR>
    </TABLE>
[/if]

cheers
thoren
8#X

----- Original Message ----- 
From: Russ <russ@khouse.org>
To: <minivend-users@minivend.com>
Sent: Thursday, April 15, 1999 6:54 PM
Subject: RE: order_quantity via order link


> ******    message to minivend-users from "Russ" <russ@khouse.org>     ******
> 
> Did you ever get any response or answer to this question?  I am trying to do
> the same thing.
> 
> Russ
> 
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Thoren Johne
> Sent: Sunday, March 28, 1999 7:24 AM
> To: minivend-users@minivend.com
> Subject: order_quantity via order link
> 
> 
> ******    message to minivend-users from "Thoren Johne" <thoren@csi.com>
> ******
> 
> hi all,
> 
> i try to find a way to increase/decrease an item quantity in basket by
> clicking e.g. twice on an
> <A MV="order [item-code]">place order</A>
> link on a search result page.
> 
> unlike the "form way" of placing an order, the "link way" does not seem to
> offer a way to set the mv_order_quantity value.
> 
> am i missing something, or is the "link way" to order an item only good to
> increase the item quantity once from 0 to 1?
> 
> what i actually was trying, was a very compact shopping basket without form
> elements on each item entry. item increase/decrease/deletion accessible via
> link.
> 
> tia
> thoren johne
> 8#X
> 
> 
> 
> 
> -
> 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
> 
> -
> 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
> 




-
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: