Akopia Akopia Services

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

[mv] 4.02 -> 4.03 Problems



******    message to minivend-users from Chris Rapier <rapier@psc.edu>     ******

1) The following code works under 4.02 but not under 4.03
[item-list]
[perl tables="products"]
$ref = $Db{products};
$column = "quantity";
$cart_sku = $Items->[$i]{'code'};
$cart_quantity = $Items->[$i]{'quantity'};
$db_quantity = $ref->field($cart_sku, $column);
$difference = $db_quantity - $cart_quantity;
# checks to see if they order more than we have
# if they do their order is reduced automagically
if ($difference < 0){
  $Items->[$i]{'quantity'} = $db_quantity;
  $Scratch->{'overorder_flag'} = 1;             
}
$i++;
return "";
[/perl]
[/item-list]

Under 4.03 I get an error message of:
10.1.1.2 qJjxo6Jb:10.1.1.2 - [31/March/2000:01:11:43 -0500] SCC2
/cgi-bin/SCC2/process.html Safe: eval string trapped by operation mask
at /usr/home/rapier/mvend43/lib/Vend/Table/Common.pm line 255

This is vexing because I don't know enough about the Safe.pm to know
exactly where the problems is happening. My guess is when I'm trying to
set $Items->[$i]{'quantity'} but if it is that how do I get around the
Safe trap?

2) I still can't figure out how to get the history function to work. At
all. I'm totally lost. I cut and pasted the user tag from the simple
demo into my catalog. I cut and pasted the appropriate lines from
basket.html. It always returns me to the index page. It seems like
nothing is being pushed on to the $Vend::Session->{History} stack. I
tried accessing it though a [perl] but nothing there either. While this
isn't super critical to this project it would be much nicer than the
javascript history hack.
-
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: