Akopia Akopia Services

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

Re: [mv] formatting tag time, total-cost



******    message to minivend-users from "Bill Randle" <billr@exgate.tek.com>     ******

On Apr 6,  9:48pm, Thomas May wrote:
} Subject: [mv] formatting tag time, total-cost
} ******    message to minivend-users from "Thomas May"
<thomas.may@x9media.com>     ******
}
} Hi there,
}
} i wanna format the output of the two standard variables, tag time and
} total-cost.
}
} tag time should be a date like 5.3.2000 22:40

Look at the convert-date usertag (in <mvroot>/usertag with MV4)
for an example of using time() and strftime(). You could create
your own custom usertag to display the date/time in your format
or use a little inline perl to do it. (The inline perl only
works if you have AllowGlobal set true in your catalog.cfg.)

E.g.:
    The current date is: [perl global=1]return POSIX::strftime('%d.%m.%Y
%H:%M', localtime());[/perl]


} and
} total-cost: instead of  200,00 DM it should be 20000

How about [total-cost noformat=1]?

} can someone help me ?
}
} thomas


	-Bill
-
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: