/    Sign up×
Community /Pin to ProfileBookmark

Dummy needs simple script (I think)

Hi,

Dummy needs simpe java script. I need a java script to make and order (so tired I can’t even explain it) I have made a menu with several choices to pick from, after picking one their supposed to click the order button which takes them to the shopping cart with their chosen selection.

So far I have it going to the shopping cart but no matter which choice you pick it goes to the same item in the shopping cart. PLEASE HELP ME!!!! I know it’s probably a simple task but I’m lost.

Thanks,
Mokitty?

to post a comment
JavaScript

11 Comments(s)

Copy linkTweet thisAlerts:
@mokittyauthorJan 28.2003 — Sorry - Here's a link to the page http://babytowne.com/store3/cozycover.htm It's the spot whet you can choose a fabric color. It doesn't matter what color I pick, it takes me to the same item in the shopping cart. I need to be able to tell it to pull up the right choice.

Thanks again,

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 29.2003 — Thanks Dave - I'm not sure I understand what you're saying. The drop down menu that has fabric choices. When it get's ordered it would need to go to the shopping cart with the correct choice, not go to the page where they are all listed. I can link it straight to the cart but I can't get it to bring in the correct fabric choice. When I link it straight to the shopping cart no matter what fabric choice is picked it jujst doesn't get the choice. Somewhere in the code each color choice needs to be able to go to the shopping adding the correct choice.

Hope you can help,

Thanks,

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 29.2003 — Dave - Thank you, thank you, thank you. I will try this and let you know how it works. I won't do it tonight, I am burned out from working on it today and getting nowhere. I'll try tomorrow and let you know.

Thanks again,

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 29.2003 — Well, I'm back. I added selection stuff you said to but not sure where to put

var sel = document.formName.elements["Select Fabric"];

if (sel.selectedIndex < 1) {

alert("No selection made.");

return false;

}

var Product_Code = sel.options[sel.selectedIndex].value;

I didn't think it was this complicated. I still need help

Thanks,

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 30.2003 — Hi Dave,

I'm afraid to say yes, you need to explain, if you don't mind. We have other sites like www.watersportsproducts.com with just single items that go to the shopping cart which was a breeze, but this one is so confusing to me. I feel super dumb on this one.

Thanks,

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 30.2003 — Dave - Thanks but I still don't understand what you're saying. I thought I had to have something in the method="post" action=""

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 30.2003 — Dave,

I have been working on this for days and I still can't get it to functions right. Please have a look at the page on the internet, choose a fabric color then click on the order button and you'll see, it takes you to the shopping cart but no matter which color fabric you choose you get the same results. NBow my question is in that action are is where I have to put the code to go the shopping cart but how the hell do I get it to function to put in the right choice.

Going crazy,

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 31.2003 — Hi Dave,

Thank you, thank you, thank you. The dummy doesn't know what you mean by code this function. What do I do with it and where do I put it?

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 31.2003 — Hi Dave,

OK, I put the code in, however it still doesn't bring up the right item in the cart. What am I doing wrong. it should be a lot simpler than that www.babytowne.com/cozycover.htm

This is driving me nuts

Mokitty
Copy linkTweet thisAlerts:
@mokittyauthorJan 31.2003 — Dave - Still doesn't work right. I've tried everything. I have a template for this site. I'll try a couple other things.

Mokittty
Copy linkTweet thisAlerts:
@mokittyauthorFeb 01.2003 — Dave - I appreciate what you've done and I've done everything you've suggested but it doesn't work. I think there is still something misssing in the code or it would work.

Mokitty
×

Success!

Help @mokitty spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...