Please Help, I have mad Shipping Problems on the 4.3 Cart

Problems installing or using the NOP Design Free Shopping Cart. **ARCHIVE** Please post new topics to one of the groups below.

Moderator: scott

try this....

Postby MouthSuit » Wed Jan 22, 2003 4:48 am

Change this line

if( fTotal < 8 ) fShipping = 2;

to this:

if( fTotal < 8 && fTotal > 0) fShipping = 2;

Or something similar.

Now, if someone could tell me why it's not passing the shipping on past the ManageCart page.... 8)
MouthSuit
 
Posts: 3
Joined: Wed Jan 22, 2003 4:44 am
Location: New Orleans, LA

Chris...

Postby winkphoto » Wed Jan 22, 2003 6:22 pm

Where is the info about your shipping for each of the products?

Is the shipping figured on a "total" of your shipping order? Or per product?

regards,

Marc
winkphoto
Guru
 
Posts: 176
Joined: Fri Nov 15, 2002 9:21 pm
Location: Nashua, NH

Postby MouthSuit » Wed Jan 22, 2003 9:55 pm

Marc,

I'm using the code scott wrote in this thread. That's the only place I do shipping. There is no shipping for individual items, just based on the total sale. Basically, $.01-$50 is $6.00, everything else is free.

Thanks.
jeff
MouthSuit
 
Posts: 3
Joined: Wed Jan 22, 2003 4:44 am
Location: New Orleans, LA

Look in...

Postby winkphoto » Thu Jan 23, 2003 2:47 am

Look in the NOPCART.JS file for the following line in the Manage Cart and CHeckout Cart Sections:

Code: Select all
fTotal += (parseInt(fields[1]) * parseFloat(fields[2]) );


Just after that line, insert the following:
Code: Select all
//Start fixed shipping calculation
if( fTotal < 50 )
fShipping = 6.00;
else
fShipping = 0.00;
//Finish fixed shipping calculation



And that should work for you. Remember that you have to add that code in two places, both the managecart and checkoutcart sections of the JS


Regards,


Marc
winkphoto
Guru
 
Posts: 176
Joined: Fri Nov 15, 2002 9:21 pm
Location: Nashua, NH

Postby Chris Hart » Thu Jan 23, 2003 5:04 pm

I cannot get the shipping to pass to the manage cart page, nor can I get the product description to pass to the Worldpay page :x HELP :D
Code: Select all
   if( fTotal < 15 && fTotal > 1) fShipping = 4.95;
   else if( fTotal < 15 && fTotal > 50) fShipping = 6.95;
   else fShipping = 0;
   strShipping = moneyFormat(fShipping);
This is may shipping code writtenm into Scott's previous adjustment!! Chris.
Chris Hart
 
Posts: 24
Joined: Tue Oct 01, 2002 9:51 am

Postby MouthSuit » Thu Jan 23, 2003 9:02 pm

First off, muchas gracias to marc, it's working perfectly now. :lol:

Now, chris, I'm not sure what to tell you. :? First, did you do both what scott said AND what marc said? Second, did you test a 4.95 shipping? Cuz the way the code is here,

Code: Select all
else if( fTotal < 15 && fTotal > 50) fShipping = 6.95;


shipping will never be 6.95, cuz fTotal can't be both less than 15 AND greater than 50. :P

Other than that, don't know what else, and hopefully the gurus on here will be able to find it.
MouthSuit
 
Posts: 3
Joined: Wed Jan 22, 2003 4:44 am
Location: New Orleans, LA

Postby Chris Hart » Fri Jan 24, 2003 11:03 am

:D Solved it - using the previous shipping code combined with the new NOP cart script (4.4) - The shipping costs work and the product details are now passing through to the Worldpay payment page! Thanks for your help guys :D
Chris Hart
 
Posts: 24
Joined: Tue Oct 01, 2002 9:51 am

Previous

Return to Installation and Setup Problems

Who is online

Users browsing this forum: No registered users and 0 guests

cron