Current location: Hot Scripts Forums » General Community » Script Requests » Script needed


Script needed

Reply
  #1 (permalink)  
Old 12-15-05, 08:52 AM
paatus paatus is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Script needed

Hi all!

Is it possible to make a script that would update a price based on a variable? I'll explain: The spot price on silver changes every minute. I sell silver bullion for let's say $2.50 over spot. The script would check for changes in the spot price every minute, add my $2.50 markup, and then adjust the price accordingly directly on my website. I also need an option to easily change/edit the markup in the script. The script must also calculate the price based on discounts:

5-49 (basic price)
50-99 (5% discount, editable)
100-499 (7% discount, editable)
500 or more (9% discount, editable)

So, if the editable part in the script looked something like this;

[spot] + (markup) 2.50 * (amount) 49 = [price]
[spot] + (markup) 2.50 * (amount) 99 / (discount) 5% = [price]
[spot] + (markup) 2.50 * (amount) 499 / (discount) 7% = [price]
[spot] + (markup) 2.50 * (amount) 500 / (discount) 9% = [price]

I don't know any programming and if this is possible at all, so I thought this might be the right place to ask. Am I way off on what can be done in programming here?
Reply With Quote
  #2 (permalink)  
Old 03-18-06, 10:04 AM
paatus paatus is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
*bump* Anyone? Just a "No-can-do!" would help..
Reply With Quote
  #3 (permalink)  
Old 03-18-06, 10:19 AM
Steelman's Avatar
Steelman Steelman is offline
Community VIP
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 399
Thanks: 1
Thanked 1 Time in 1 Post
You won't get any answers in here. This is a New Members & Introductions area. Try asking in the appropriate forum located here: http://www.programmingtalk.com/forumdisplay.php?f=137 (Script Requests)
Reply With Quote
  #4 (permalink)  
Old 03-18-06, 10:25 AM
paatus paatus is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, I'll try there! Admin: delete thread?
Reply With Quote
  #5 (permalink)  
Old 03-18-06, 07:42 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
Thread moved to appropriate forum...
Welcome to the forums, all scripts request should be posted in the Script Request forum.
__________________
:: ImperialBB :: New version in the works! :: http://www.imperialbb.com ::

:: Have a question about the board? The Rules? An Infraction/Warning? :: Contact Form ::
Reply With Quote
  #6 (permalink)  
Old 03-22-06, 07:52 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
This can be done in programming, but I'd argue it is custom, you're not likely to find something immediately usable.

My (Linux/Apache/MySQL/PHP) approach would be to develop a cron job that gets the price of silver every minute. It would simply write that value to a file on your server - every minute - and then the computations you describe above would use that value to compute the price for the pages on your site.

You might want to post it as a job opportunity and see what it would cost. It should not be too expensive.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom php script needed alley Job Offers & Assistance 5 06-30-10 02:14 AM
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 10:17 AM
Review and Rating Script Needed - Please Help rolf Script Requests 3 08-22-05 01:45 PM
Artist pages script needed SR_Ben Script Requests 0 07-09-04 02:30 PM
will pay. php script needed. upload, resize, & email jamjammo Script Requests 4 02-29-04 08:30 PM


All times are GMT -5. The time now is 11:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.