Credit card payment at order confirmation page for VP-ASP 7.00
If you are only accepting credit card payments through just Paypal or with a hosted payment gateway such as Authorize.Net SIM, you can modify one file so that the "Pay with Credit Card/Paypal" button are displayed at the order confirmation page; thus removing the extra step.
NOTES:
Please make a backup of shopcreateorder.asp and shop$config.asp files first.
shop$config.asp files should be located in "config" and "admin/config" folders.
The changes are as below :
1. Please open shopcreateorder.asp using text/HTML editor and locate the following code:
<!--#include file="shopcheckoutindicator.asp"-->
2. Below above line, add the following code:
<!-- #include file="paypalgateway.asp"-->
NOTES:
If you are using Paypal IPN, then add the following instead:
<!--#include file="paypalipngateway.asp" -->
If you are using a hosted payment gateway such as Authorize.Net SIM, then add the following instead:
<!-- #include file="ansimgateway.asp" -->
3. Locate the following code in around line 25:
NOTES: The code line we mention here could be not exactly the same line as in your file, but you could find it around the line mentioned.
dim oid
4. Change it into the following code:
dim oid, orders
5. Locate the following code in around line 134:
DisplayForm
6. Below the above line, add the following code:
if xcheckout="" then Savethisorder PaypalPerformGateway end if
7. Locate the following code in around line 160 within sub routine SaveThisOrder:
CartFormat remove
8. Change it into the following code:
if xCheckout <> "" then
CartFormat remove end if
9. Locate the following code in around line 187:
if ucase(getconfig("xPayPal_Website_Payment_Pro")) = "YES" then
10. Change it into the following code:
if xCheckout <> "" then
if ucase(getconfig("xPayPal_Website_Payment_Pro")) = "YES" then
11. Locate the following code in around line 210-211:
end if end sub
12. Change it into the following code:
end if end if end sub
13. Locate the following code in around line 244-246:
HtmlWrite "<div class=""std_table ar"">"
ShopButton GetConfig("xbuttoncontinue"),GetLang("langCommonOrderNow"),"action"
HtmlWrite "</div>"
14. Change it into the following code:
if xcheckout <>"" then
HtmlWrite "<div class=""std_table ar"">"
ShopButton GetConfig("xbuttoncontinue"),GetLang("langCommonOrderNow"),"action"
HtmlWrite "</div>"
end if
15. Locate the following code in around line 260-264:
HtmlWrite "<div class=""std_table ar"">"
ShopButton GetConfig("xbuttoncontinue"),GetLang("langCommonOrderNow"),"action"
addwebSessForm
HtmlWrite "</div>"
HtmlWrite "</form>"
16. Change it into the following code:
if xcheckout <>"" then
HtmlWrite "<div class=""std_table ar"">"
ShopButton GetConfig("xbuttoncontinue"),GetLang("langCommonOrderNow"),"action"
addwebSessForm
HtmlWrite "</div>"
HtmlWrite "</form>"
else
addwebSessForm
HtmlWrite "</form>"
end if
17. Save the file and open shop$config.asp file using text/HTML editor.
18. Please ensure that the following code is set:
const xCheckout=""
19. Save the file and check your shopping cart for the changes.
Times Viewed:
4211 |
Added By:
Wilson Keneshiro |
Date Created:
10/25/2006 |
Last Updated:
5/31/2011 |
|