Welcome, Guest ( Customer Panel | Login )




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

albertramsbottom3
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

Cheers

support
Administrator

4679 Posts

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

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")
shippingamount=orders("oshipcost")+orders("ohandling")

If CommaAsDecimal="Yes" then
Convertamount amount
Convertamount shippingamount
else
amount=formatnumber(amount,2)
amount=replace(amount,",","")

shippingamount=formatnumber(shippingamount,2)
shippingamount=replace(shippingamount,",","")

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

else
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.

Regards,
Michael
VPASP SUPPORT
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00