MiniVend Akopia Services

[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 "Webmaster of Infothai CM Co., Ltd." <webmaster@infothai.com>     ******

I did something similar with exchange rates. I used the "#include" functionality 
in the catalog configuration file to incorporate the contents of the file. The 
file itself contained the exchange rate defined as a Minivend localization 
paramter, e.g.:

	Locale en_TH PriceDivide 36.7979

You could do something similar, or simply define your own variable.

Whenever the file is updated, the affected catalog(s) must be restarted.
Perl can do this by calling the appropriate catalog restart scripts.

Regards,

Mike


On Tue, 20 Apr 1999 21:21:32 -0400, Ezra Gilbert wrote:

>******    message to minivend-users from Ezra Gilbert <EGilbert@CYBERNEX.NET>     ******
>
>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
>


webmaster@infothai.com
http://www.infothai.com


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