[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: accessing scratch variables within [discount][/discount] tags
Try to embed your perl statement into either a pair of [perl][/perl] or
[calc][/calc] tags!
Chris
Tim Shea wrote:
>
> ****** message to minivend-users from Tim Shea <tim@valutech.net> ******
>
> Hi All,
>
> Almost time to quit for the night - this is the only thing that seems to be
> holding up my custom pricing routine. (Yes, I'm doing it the hard way. )
>
> I've snipped out all of the code except what looked like was needed to ask
> for help:
>
> [set name=PricingData interpolate=1][data base="prices" field="prices"
> key="[item-code]"][/set]
> [scratch PricingData]
>
> (...this works so far...)
>
> [discount [item-code] interpolate=1]
> my $pricingdata = $Safe{'scratch'}->{'PricingData'};
> .
> .
> .
> [/discount]
>
> This generates and error:
> Can't locate object method "scratch" via package "PricingData" at (eval
> 2242) line 5.
>
> Any help would be greatly appreciated.
>
> Fatigued Cheers,
> Tim
> -
> 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