VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 delivery charge
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jinesh
VP-ASP New User

141 Posts

Posted - September 12 2007 :  09:18:27  Show Profile  Reply with Quote
my delivery charge is according to price range. the delivery charge is free when amount is over $50....
the issue is:
the delivery charge for some states will be different when its below $50.....
can this be done..
thanks in advance
jinesh

THeVerve
VP-ASP New User

117 Posts

Posted - September 13 2007 :  01:33:43  Show Profile  Reply with Quote
You will probably need to modify shophandling.asp

Locate this code :

If getconfig("xhandlingPrice")<>"" then
Handling=getconfig("xhandlingPrice")
end if

modify it to :

If getconfig("xhandlingPrice")<>"" then
if total > 50 then
Handling= 0
else
if getsess("state") = "NY" then
handling = 10
else if getsess("state") = "MD" then
handling = 15
end if
end if
end if

Hope you get the idea..
Go to Top of Page

jinesh
VP-ASP New User

141 Posts

Posted - September 13 2007 :  05:29:46  Show Profile  Reply with Quote
hi...
i'm getting error page after modifying with this code.... when i order the product
Go to Top of Page

dwight
VP-ASP New User

USA
143 Posts

Posted - September 17 2007 :  10:58:06  Show Profile  Reply with Quote
I loved to hear from you if you get this figured out.
Please post.
Thanks
Dwight
Bye
Go to Top of Page

Kidd
VP-ASP Super User

Australia
373 Posts

Posted - September 18 2007 :  00:25:31  Show Profile  Reply with Quote
hey jinesh,

whats the error?
Go to Top of Page

jinesh
VP-ASP New User

141 Posts

Posted - September 19 2007 :  02:44:05  Show Profile  Reply with Quote
error was minor and solved.... n instead of handling.asp we can use this logic in shopshippingcalc.asp n it will work for shipping charge according to state....
the eroor was "else if" should be written close "elseif"
Go to Top of Page

SSJen
Starting Member

1 Posts

Posted - June 30 2009 :  21:11:28  Show Profile  Reply with Quote
I read this thread and used it to modify my cart to be able to have shipping rates based on US states. I just set the shipping charge to a flat amount for the state that I am located in (VPASP doesn't assess sales tax on handling charges so that's why that has to be that way) and then put in an additional amount for the handling charge to other states using slightly modified code TheVerve provided.

I worked great... until one day I noticed that the code provided looks at the billing state and not the ship-to state. So it should say "shipstate" instead of "state".

I'm still really appreciative of this post- it was really easy to implement and trust me I'm no developer.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000