Akopia Akopia Services

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

Re: [mv] Lost in Perl



******    message to minivend-users from cfm@maine.com     ******

On Fri, Mar 24, 2000 at 08:48:02PM -0500, Chris Rapier wrote:
> ******    message to minivend-users from Chris Rapier <rapier@psc.edu>     ******
> 
> I'm not exactly a newbie when it comes to perl but using it with
> minivend is confusing and frustrating me. 

Start with $Vend::Session->{'values'} and go from there.
Unpack it and see what you have.

mv_searchspec, for example, is $Vend::Session->{'values'}{'mv_searchspec'}


> 
> Consider the below code
> [item-list]
>   [perl tables="products"]
>      $price = $Values->{price};
>      return "The price is $price<BR>";
>   [/perl]
> [/item-list]
> 
> It seems to me that this should return the prices of all of the items
> currently in the cart. Unfortunately $price always ends up being null.
> Am I missing something here?
> 
> Oh, and products is defined as a table in the catalog.cfg and another
> [item-list] loop is returning the information so I know something is in
> the cart.
> 
> Aside from that I just don't know what is going on.
> -
> 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

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
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: