Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VPCart 9 Questions
 Make Credit Card Default and Show Form
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Data0999
Starting Member

USA
46 Posts

Posted - March 27 2020 :  15:11:49  Show Profile  Visit Data0999's Homepage  Reply with Quote
The payment method (Step 5) on the One Page Checkout on our site provides two current options: Credit Card Option and PayPal. I''m looking for a way to make Credit Card default and show the form automatically so folks just continue on without selecting it. If they want to use the PayPal method, they can choose it but the majority of purchases are Cards through the gateway.

My coding skills are just good enough to be dangerous and so far nothing has worked for this without messing it up. Appreciate any assistance on this.

Thank you,
Dave

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - April 27 2020 :  21:25:38  Show Profile  Reply with Quote
dave, i have a trick, but just if you are using xallowcreditcards = Yes..
here to do:

on file shoponepagecheckout_payment_subs.asp
///////////////////////

look at the following line 56-67

if creditcardstatus = "99" then
if lcase(GetConfig("xallowcreditcards")) = "yes" then

after that you will insert

creditcardstr = "yes"

//////////////////////
on file plugins/checkout/onepagecheckout

//////////////////////

look at the following line 18

$(document).ready(function(){

after that you insert this

$(''#creditcard_desc_wrapper'').show();

/////////////////////

and that''s it you will achieve your wanted stuff...
i used to stay home im having much time here
diego
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