MiniVend Akopia Services

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

Re: [mv] bug report - cart functions and mv_click_map



******    message to minivend-users from Mike Heins <mike@minivend.com>     ******

Quoting Nathan ZYLBERSZTEJN (zyloo@zylooplanet.net):
-users from Nathan ZYLBERSZTEJN <zyloo@zylooplanet.net>     ******
> 
> Hi all,
> 
> I already submit one message about this bug

You can't say it is a bug until you characterize it.

> but I can now describe it more 
> precisely. I have spent a lot of time on it and I don't think the fault 
> comes from my code. This occurs when calling a cart function (save_cart 
> ,get_cart or delete_cart) by submitting a form with an image:
> 
> <form action="[process-target]" method="POST">
> 
> 	[set get]
> 	[userdb function=get_cart nickname="the_cart_you_want"]
> 	[/set]
> 	
> <input type="hidden" name="mv_click_map" value="get">
> <input type="image" src="get.gif" name="mv_click.get">
> </form>
> 
> The problem is that you have to submit it twice in order to let MV know the 
> name of the cart you want. If you want to get your cart using checkboxes or 
> radios, you'll get the cart you selected before: if you select first cart1 
> you won't get anything. If you select cart 2, you will get the cart1, ...
> 
> I use mv_click_map in all my pages and it is the only problem I had.
> 
> The same kind of problem occurs with [setlocale...]and [L][/L]: You have to 
> reload twice to page to get the effect of setlocale. Curiously it works at 
> the first time using [loc][/loc]
> 

Both of these are chicken before egg problems.  Things happen in a sequence,
they can't happen all at once. If you set things in the right order, they will
happen as you want.

The [L] [/L] is not a tag; I state this specifically in the documentation.
It is a high-performance method of translating a page *when it is read*.
You can't change locales in the middle of a page and have it work.

[loc][/loc] is a tag; you can use that everywhere if you want to take
the performance hit.

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Any man who is under 30, and is     131 Willow Lane, Floor 2  | ||  _ \
not liberal, has not heart; and     Oxford, OH  45056         | || |_) |
any man who is over 30, and is not  <mikeh@minivend.com>     |___|  _ <
a conservative, has not brains.     513.523.7621 FAX 7501        |_| \_\
 -- Winston Churchill              
-
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: