MiniVend Akopia Services

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

Using @@global@@ variable in usertag



Well, guess the topic says it all -
Im writing a usertag in catalog.cfg and would like to access a global variable like this:

UserTag price-mod Routine <<EOR
## this code has rips from CFM and Mike :) thx guys
sub {
     my $s = $Vend::Interpolate::s;
     my $item = $Vend::Interpolate::item;
     my $adj=0;
     # Do whatever you want to price here

     if ( $item->{code} eq "01-001" ) {
         return @@GVALUE@@; ## this doesn't work
     }
     return $adj;
}
EOR



Search for: Match: Format: Sort by: