[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Unable to create sub named "*Safe::Root10::database_field" at
****** message to minivend-users from jojo@buchonline.net ******
On 27 Sep, Sezer Yalcin wrote:
> ****** message to minivend-users from Sezer Yalcin <sezery@damla.net> ******
>
>
> hi,
>
> i am getting this error for the following line:
>
> $rat = database_field('taxgroups', 'rate', '[item-field taxgroup]');
>
> what can be the problem? can anyone help me?
>
>
> my string/integer conversion problem is also remaining. [data] tag is
> only producing string values that cannot be converted into integer or
> fload.
> This must be an important mistake if no solution is avaliable.
Try this (not tested)
1) add a line like
package Vend::Interpolate;
in your sub function
2)
try this
my $rat;
my $db = 'products';
my $field = 'taxgroup';
my $code = [item-code] (or [item-field code/sku?])
$rat = Vend::Interpolate::tag_data($db, $field, $code);
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671441
45886 Gelsenkirchen FAX: 0209 1671441
-
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