/    Sign up×
Community /Pin to ProfileBookmark

Shopping Cart Error

Hello I have been maintianing a website [url]www.artopea.com[/url] and need to add a shopping cart to sell artwork. I have been looking around for different types of shopping cart software and they are very expensive. So I found this site
[url]http://www.htmlgoodies.com/beyond/javascript/article.php/3471331[/url]
and used there template. All that I have changed was the properties font, background and color. My question is when I get to the order page and fill in the blanks and press submit a window pops up and reads FIRST FALSE with an exclamation to the left of it. What does this mean and what did I do wrong. Heres the page I created [url]http://artopea.com/shopcartindex.html[/url]. The only link that is available is Robert Deford (link).

Heres the code I found with First False, what wrong with it:

function orderSubmit(type)
{
if (type == ‘order’)
{if ( ! ( (document.order.order_type.checked) ||
checkRequired() ))

{ // checkCardNumber(); ENTRY HERE
alert(‘first true’);
document.order.form_action.value = type;
document.order.submit();
return true;

}
else {
alert(‘first false’);
return false;

}
}

}

Thanks

Adam ?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @digitalmarks 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...