ASP change item quantity

Get help with nopcart intergration with ASP and related issues

Moderator: Koibito

ASP change item quantity

Postby dinkado » Tue Jun 05, 2007 1:04 am

Hello,
I have the shopping cart working to a point. As long as there are not more than 250 in the quantity it works fine. If I enter 251 I get
SHIPPING CHARGE $NaN.aN and TOTAL $NaN.aN
when I click on SECURE CHECKOUT
I get an alert box that says I cannot proceed until a Shipping Area has been selected. This occurs no matter which area I select.

My problem is I need to allow quantities of more than 250 of the same item.
It is a promotional advertising site and some items require a min order of 500 and others depending on quantity determines the price.
I am fairly new to asp and I have not been able to find the var I need to change.
Can some one please point me in the right direction?
Thanks in advance.
dinkado
dinkado
 
Posts: 7
Joined: Mon Dec 12, 2005 10:02 am

Postby Koibito » Tue Jun 05, 2007 1:46 am

Could you give us a URL?
Does the secure checkout use https?
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Postby dinkado » Tue Jun 05, 2007 4:55 am

Yes the url is
http://adpromospecialty.com
No I have not set up the secure server yet. Eventually it will be as
https://adpromospecialty.com
Thank you for your quick response.
dinkado
dinkado
 
Posts: 7
Joined: Mon Dec 12, 2005 10:02 am

Postby dinkado » Tue Jun 05, 2007 5:03 pm

oops...
the url is adpromospecialty.com/closeout.htm
dinkado
 
Posts: 7
Joined: Mon Dec 12, 2005 10:02 am

Postby Koibito » Tue Jun 05, 2007 6:35 pm

John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Postby Stefko » Tue Jun 05, 2007 11:45 pm

As you can tell the weight has reached 500 lbs!

Each Zone in the ComputeShipping Function should look like this:
Code: Select all
if (LocationValue == 7 ) {
if (TotWeight <= 1) return 9.18;
if ((TotWeight <= 500) && (TotWeight > 1)) return (9.18 + (0.65 * Math.ceil(parseFloat((TotWeight - 1) / 1))));
if(TotWeight > 500){
alert(MaxWeightPrompt);
}
}

As you can see, I add the prompt if weight is over 500lbs.

You need to do some coding to figure shipping for weights over 500lbs!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS


Return to Help: ASP & NOPCart

Who is online

Users browsing this forum: No registered users and 0 guests

cron