[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Script to modify values in database
****** message to minivend-users from "Mr. Christopher F. Miller" <cfm@maine.com> ******
On Tue, Apr 20, 1999 at 09:21:32PM -0400, Ezra Gilbert wrote:
> ****** message to minivend-users from Ezra Gilbert <EGilbert@CYBERNEX.NET> ******
I suppose that is a lot like adjusting the price of Maine
lobsters to "market". ;^)
You can do it with CommonAdjust:
CommonAdjust specials:price:, ;products:price, &{Vend::ClientPricing::lobsters();}
In that particular case Vend::ClientPricing is actually a perl module in
lib/Vend. I'd guess you could do it with code from catalog.cfg but
I've never really taken the time to figure that out.
cfm
>
> I am working on a jewelry site where the prices are to be based on the current exchange
> rates of gold & silver. These prices are changed twice a day. Basically, the price of
> an item is it's weight(a field in the products database) times the current value of
> whatever metal it is. I have the current values of the metals outputed to files twice a
> day and I was wondering if anyone had any advice on how I should go about modifying the
> database. I use tab delimineted databases.
>
> I was thinking a Perl script should do the job but I am still quite the novice when it
> comes to Perl and am not positive it can do the job. If anyone has ever done anything
> like this or can offer some advice it would be greatly appreciated.
>
> Ezra Gilbert
>
> -
> 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
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, electronic commerce, office and internet integration.
-
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