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-Cart StoreFront Customer Forum

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

 All Forums
 VPCart Forum
 pay pal
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

40 Posts

Posted - December 05 2006 :  03:55:28  Show Profile  Reply with Quote
This may be a silly question but how does one configure vpasp's shipping with paypal.

I can configure pay pal separatly for postage but would ideally like vpasp to pass forward the postage through to pay pal.

what ever i seem to do when i get to the shpping cart the postage isnt there. I have configured the shipping to include to different postage rates. When the user gets to the customer info form there is a drop down with these postage options in it, but when i reach the cart the postage isnt visable.

Any ideas

im sure that i have missed something in the administration side of things



4284 Posts

Posted - December 10 2006 :  20:25:35  Show Profile  Visit support's Homepage  Reply with Quote

This requires a modification to paypalgateway.asp.

You will need to replace the paypalGetDatabaseFields sub routine with the following:

Sub paypalGetDatabaseFields
Dim Dbc, myname, amount, shippingamount
Dim StrSql
OpenOrderdb dbc ' Open the database
strsql = "select * from orders where orderid=" & oid
Set Orders = dbc.execute(strsql)
If Not Orders.eof then
amount=orders("orderamount") 'this may need to be amount=orders("producttotal")

If CommaAsDecimal="Yes" then
Convertamount amount
Convertamount shippingamount


end if
paypaldofield "amount", amount
paypaldofield "shipping", shippingamount

debugwrite "Cannot find order"
end if
Closerecordset Orders
ShopCloseDatabase dbc
end sub

Please note that this may need to be slightly modified in each individual case depending on whether the value of ordertotal in your
orders table already accounts for shipping and handling.

As this code may need to be modified depending on each individual's situation, we cannot provide support for it - it is provided simply as a guide to assist those who wish to display their shipping amount separately at Paypal.

Thank you.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000