Akopia Akopia Services

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

[mv] loading carts



******    message to minivend-users from "Bill Randle" <billr@exgate.tek.com>     ******


OK, I've spent most of today and half of yesterday trying to figure
this out and I'm at wits end!

What I'm trying to do is load a new or temporary cart with data from
another, pre-existing cart. This is happening in a different (later)
session and with a different user than when the orignal cart was
created. Because of this, I can't use the standard [userdb get-cart]
function.

I've got a handle to the cart info from the userdb of the cart creator
and can even print out the contents of all the carts. I have
$Values->{user_carts} containing the contents of the 'carts' field
of the userdb. Printing $Values->{user_carts} shows:

{ 'C_A004198' => [ #0 { 'mv_price' => '35', 'code' => 'PU10000065', 'size' =>
undef, 'mv_ip' => 0, 'mv_ib' => 'products',
 'quantity' => 1, 'color' => undef } ]

(I have only one cart at the moment.) My problem is how to get a specific
cart loaded into $Vend::Items. It appears that $Vend::Items is actually
a reference to a cart. I've tried all sorts of assignments and dereferencing
but $Vend::Items always ends up empty by the time it gets to the submit
sub in minivend.

I apologize if this is confusing. It's confusing to me, which makes it hard
to explain, also. I'd sure appreciate any suggestions, pointers, hints, etc.

	-Bill Randle
	billr@exgate.tek.com
-
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: