YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

[Urgent] how to stop bypass the shipping charges Options
supralex
#1 Posted : Monday, February 22, 2010 7:27:50 AM
Rank: Starting Member

Groups: Registered

Joined: 2/22/2010
Posts: 1
Location: hong kong
Hello,

I got a big problem and hope the paypal developer can shed some light on it.

I've created a set of code with "add to cart", "shipping charges", and "desire quantity".

User should select how many and which location they want, then click 'add to cart' to pay via paypal.

However, I just realized that if I didn't select the quantity and location, then a customer can simply select "add to cart" to bypass the shipping charges. That's a big problem for me.

May I know what additional codes I should add to force the customers to select location and quantity before they access the paypal payment page? Or after clicking "add to cart' without select anything, the paypal page shows some kind of 'invaild selection' message and urge the user to go back before pay out?

here is the site I build ( http://www.ternarypro.com/news-detail.php?id=155 )

Many thanks in advance.

Cheers,
aL
Sponsor  
 
nds_webdesign
#2 Posted : Thursday, March 25, 2010 5:47:05 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
you would want to do this via JavaScript on the Page. A simple alert("You Must Select Shipping") should do the trick.

you would add it to your <form> statement "onsubmit="validate()"" something like that. I put in a link below to some good scripts that I use quite a bit for form validation with PayPal Buttons:

http://www.jkquilting.com/z_code/Intro.html

I know this is a bit late, but maybe someone else will see it and get some use out of it.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.188 seconds.