Akopia Akopia Services

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

Re: [mv] Help! Still Lost in Perl



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



Mike Heins wrote:
> 
> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******
> 
> Quoting Chris Rapier (rapier@psc.edu):
> >
> > By putting in a breakpoint I confirmed that the line
> > $ref = $Db->{products}
> > Isn't actually doing anything like I expected. :P
> 
> I fixed the fault in the docs which misled you. Sorry.
> 
> If you use $Db{products} it should work. Change $qauntity to 
> $quantity
> and you should be good.

Thank you, I do appreciate this. 

I think I might have found another problem though. 
The original code to access a field was:
$field = $ref->field($column, $cart_sku);

But this produced an error which said there 
was no column '1590', which is actually the sku value. 
By swapping the two values to:
$field = $ref->field($cart_sku, $column);

I was able to get the right information.

Again, this might be something on my end or it might 
be a documentation problem. I'm not sure. I'm going 
to do some more testing with the $Db methods and 
see what I can find out.
-
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: