Can someone please help me implement this script?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Can someone please help me implement this script?
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
It's a script for calculating the shipping cost by weight and zone. The script works perfectly as a standalone but I'm having trouble figuring out how to add it into my PayPal shopping cart.
[ Register or login to view links on this board.]

I want to ask the user for their zip code when they get to my catalog. I'll use the zip and combine it with the product weight(which is hardcoded into the page). Then the resulting shipping cost will be plugged into the form for submission to PayPal.

I sure would appreciate some help on this.
Thanks




_________________
Beer is proof that God loves us and wants us to be happy. - Ben Franklin
Back to top Reply with quote
#2   re: Can someone please help me implement this script?
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
Did I say something wrong? icon_redface.gif
I was directed here by a friend who told me you guys could fix anything.
I know that being the noobie, you can make forum mistakes without even realizing it.
Can someone tell me how to get an answer here?
Thanks!




_________________
Beer is proof that God loves us and wants us to be happy. - Ben Franklin
Back to top Reply with quote
#3   
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
Welcome to CZ. icon_biggrin.gif

No, you haven't said anything wrong. Sometimes, it takes a little while for someone who can help you to see your post and reply. What you're asking requires more knowledge about Javascript than I possess. Hopefully someone will be able to help you soon.



Back to top Reply with quote
#4   re: Can someone please help me implement this script?
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
Thanks Kelly, I was starting to get a bit paranoid,,, lol. icon_biggrin.gif

p.s. I'd much rather have someone "show me how" than to do it for me.
I'm having most of my trouble just passing variables to the js. I really want to learn javascript, it's a bit difficult at times.




_________________
Beer is proof that God loves us and wants us to be happy. - Ben Franklin
Back to top Reply with quote
#5   re: Can someone please help me implement this script?
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
This works, (the first part that computes shipping) but I want to pass the 2 variables "wt" and "zip" without using a form. I want the page to load and "just do it". Would using an OnLoad event handler be bad style in this case?

The "wt" would be hardcoded with the product, but the "zip" would be entered by the user before shopping and maybe saved to a cookie. It's like it is right now just to get it to work.

Also, how do I post the actual code without it being interpreted? I tried the buttons up there but I must be doing something wrong.



Attached Files
products.txt (1.54 KB, Downloaded: 5234 Time(s))



_________________
Beer is proof that God loves us and wants us to be happy. - Ben Franklin
Back to top Reply with quote
#6   re: Can someone please help me implement this script?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Kelly_Hero has been a member for over 20 year's 20 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.50 posts per day
Posts: 3765
Points: 351,412
   
If you want to post code in the forums, use the BBcode buttons. If you're posting script, put a space in the script tags. Like this:

<s cript>blah blah<s cript>



Back to top Reply with quote
#7   
GoddsEgo
PayPal Donation
CZ Moderator
GoddsEgo has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Hey beer guy do you have yahoo messanger?



Back to top Reply with quote
#8   re: Can someone please help me implement this script?
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
Thanks Kelly icon_biggrin.gif

I do have Yahoo Messenger but I rarely use it.
my username is: sparrows_ink "at" yahoo.com




_________________
Beer is proof that God loves us and wants us to be happy. - Ben Franklin
Back to top Reply with quote
#9   
GoddsEgo
PayPal Donation
CZ Moderator
GoddsEgo has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Give me a holler on it @

rob_u_of_pleasure



Back to top Reply with quote
#10   
GoddsEgo
PayPal Donation
CZ Moderator
GoddsEgo has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
ok i got u'r request on yahoo pager and sent you message but you are not answering.

try sending me message



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum