/    Sign up×
Community /Pin to ProfileBookmark

Passing Depedent Dropdown to Shopping Cart

Hello:

Will be EXTREMELY grateful for ANY help…even willing to pay at this point!

I need to pass ‘Style #’ info to a shopping cart from a an item order page. The style # is collected from the first dropdown…but when added to cart, doesn’t show style #…however, some of info. is passing since the price is adjusted in cartview for selected style.

Here’s the URL to the page with the script.

[url]http://www.tagxpress.com/basicstylefull.htm[/url]

The data I need to pass would be in the non-java area within the T1 tags…so how to pass options specfied by the t1 tag? Guess I might need to ‘add’ another procedure in JS to pass the 2nd aspect of t1?

I am guessing the changes would be made to this area of the first function:

function populateColor(inForm,selected) {
var selectedArray = eval(selected + “Array”);
while (selectedArray.length < inForm.p2.options.length) {
inForm.p2.options[(inForm.p2.options.length – 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval(“inForm.p2.options[i]=” + “new Option” + selectedArray[i]);
}
if (inForm.p1.options[0].value == ”) {
inForm.p1.options[0]= null;
if ( navigator.appName == ‘Netscape’) {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {
if (navigator.platform == ‘Win32’ || navigator.platform == ‘Win16’) {
window.history.go(0);

Thanks for ANY help, LS

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @luckysigns 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.28,
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,
)...