/    Sign up×
Community /Pin to ProfileBookmark

Help Please, Shopping Cart

Hello,

I am a small business owner with some HTML experience (enough to know it is usually the smallest of errorr that causes the greatest frustration).

My frrustration is trying to set up the order.html page from the “So You Want a Shopping Cart, Huh?

The instrucions call for changes to be made in the area identified with bold type. I am not clear on what I am supposed to change these items to.

[B]Problem 1…[/B] I get a “first false” error message that I assume is caused by the need to change the bold ENTRY HERE. However, I have no idea what to change it to?

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

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

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

}
}

}

[B]Problem 2…[/B]I do not know where I am to put the encypte “plain/text” command

<!– YOU CAN PUT YOUR EMAIL ADDRESS IN THE FORM COMMAND BELOW AND THE –>
<!– THEN IT WILL BE SENT TO YOU AS A SIMPLE MAILTO GUESTBOOK FORM –>
<!– IF YOU DO THAT – BE SURE TO ADD THE COMMAND enctype=”plain/text” –>

<form action=”MAILTO:[email protected]” method=”POST” name=”order” enctype=”plain/text”>
<input type=”hidden” name=”subject”
value=”Order Forms – [B]NAME OF FORM HERE[/B]“><input type=”hidden”
name=”recipient” value=”[email protected]“><input
type=”hidden” name=”redirect”
value=”thanku.htm”><input
type=”hidden” name=”retailer” value=”4394 Gallery”><input
type=”hidden” name=”form_action” value=”order”>

[B]Problem 3[/B]…I am not sure about what to enter in for “NAME OF FORM HERE” (I assume it is “order”?

I like the set-up of this shopping cart as it will serve my needs well

looking forward to the solutions.

Thanks,
Wanderin

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@MrNobodyFeb 10.2009 — First, let me say that I'm not impressed with either that article or that code. But I always write my own so I don't know of any other script out there to recommend to you. So...

Problem 1: That line is commented out and can be ignored. The intent of that line is if you have some means of checking the card number entered as a valid number. You don't, so ignore it. This also means that your "first false" is not because of this line but is trying to tell you something else.

Problem 2: The specified encoding type is already in place so you can ignore that instruction, too. However, let me say that with the setup shown, fully half of your visitors won't be able to use your order form anyway. So, make sure to include a note telling them that they can print it off and mail it to you the old fashioned way -- or they can call you on the telephone to order by voice.

Problem 3: That field, as shown below, is intended to become the subject line for the email which half of your visitors won't be able to send to you anyway. So, fill in whatever you'd like the email subject line to say for the other half of your visitors.
[CODE]<input type="hidden" name="subject" value="Order Forms - NAME OF FORM HERE">[/CODE]
×

Success!

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