Akopia Akopia Services

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

Re: [mv] Accessing variables in perl environment (MV4.04)



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

Quoting Stefan Hornburg (racke@linuxia.de):
> > 
> > Hey folks,
> > 
> > I'm encountering the following problem:
> > 
> > [currency][perl values]
> >          my $summe=safe_tag('subtotal');
> >          return $summe;
> > [/perl][/currency]
> > 
> > The part with "safe_tag('subtotal')" used to work in MV3.14 just
> > perfectly and now produces an error message:
> > Safe: Unable to create sub named "*MVSAFE::safe_tag" at (eval 102) line
> > 2
> > 
> > And $Tag->subtotal() didn't work either. It produces the following error
> > message:
> > Safe: Can't use string ("") as a subroutine ref while "strict refs" in
> > use at /usr/local/minivend/lib/Vend/Parse.pm line 797
> 
> Try 
> 
> $Tag->subtotal ('main');
> 
> See the tag reference on subtotal for more information.

You might also do:

[perl tables="pricing products"]
	$Tag->subtotal();
[/perl]

If you have not opened up the database tables beforehand, you will
get an error.

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>

Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun
-
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: