Hi @admin247365,
When you navigate to the Add Payment Method page do you not see the credit card from? The fact that your footer is not rendering hints at an exception being thrown in the code somewhere around the time the credit card form is being rendered.
Once you disabled other plugins the issue persisted?
I am not sure what you mean when you say there is no lock showing on the credit card form.
I recommend that you check your server’s error log. If an exception is being thrown it will be written to the server error log and will greatly help in identifying the location of the issue.
If you want to provide site specifics please email me using our support email and we can take a look.
Kind Regards,
-
This reply was modified 8 years, 2 months ago by
Clayton R.
Thread Starter
WP-77
(@admin247365)
Hi, and thank you for the great plugin and fast response!
To answer your questions:
• I do not see the credit card form in Add Payment Method.
• The problem does persist when the plugins are disabled.
• The lock I mentioned in checkout was (as I recall) an icon next to the checkbox to save the payment method. I just noticed there is a lock in the checkout page payment form that is for the CVV code. Maybe I just don’t recall correctly how the save payment option should be displayed (sorry).
When I compare the credit card form in my Checkout page against what is displayed in My Account> Payment Methods> Add Payment Method ONLY the radio button with the Title Text and Credit Card Icons are shown. The actual credit card entry form is missing.
My debug log does show this:
PHP Fatal error: Call to undefined method WC_Checkout::get_checkout_fields() in /mysite.xyz/public_html/wp-content/plugins/woo-payment-gateway-pro/templates/myaccount/add-payment-method.php on line 10
Line 10: = $fields = $checkout->get_checkout_fields( ‘billing’ );
I’m not sure what this could mean. Does the payment plugin require a minimum version of Woocommece? My version is a bit dated – 2.6.14.
Thank you!
Hi @admin247365,
Good work, that is the exception that is causing your credit card form to not render. I just performed a search in your version of WC and the method get_checkout_fields is indeed not defined.
That means that WC added that method sometime after your version but there are no notes on the method indicating at what version it was added. We will need to make the code in the add-payment-method.php page so that it’s not dependent on any one version. There are several things you can do to solve the issue until we provide a fix in the next release:
Method 1:
upgrade to the latest version of WC.
Method 2:
Go in to your active theme’s directory and add a folder called woo-payment-gateway.
Add a another folder inside the woo-payment-gateway directory called myaccount.
Copy the plugin’s add-payment-method.php page to the newly created myaccount directory.
Change line 10 of the add-payment-method page to the following:
$fields = $checkout->checkout_fields['billing'];
The following link has an article on how to create a customer form should you need a more in depth tutorial for Method 2. The process is exactly the same for changing any file in the templates folder of the plugin.
https://support.paymentplugins.com/hc/en-us/articles/115001605627-Customize-Forms
Kind Regards,
Thread Starter
WP-77
(@admin247365)
Wow, that was a fast response.
Option #2 worked to display the credit card form in Payment Methods.
BUT, I don’t see the checkbox to Save the credit card in the Checkout page.
Also, the credit card form now shows the Street Address field under the Credit Card Number, Exp Date, CVV and Postal Code entry fields (in Payment Methods). I don’t see this in the Checkout page.
I think it best I update WC and a few other related plugins. At least I know the source of this issue before I start updating.
Thank you!
Hi @admin247365,
There is an option on the plugin’s Checkout Settings page called “Allow Save Payment Method.”
You must enable that settings (checkbox) in order for the save payment method checkbox to appear on the checkout page.
The street address is not needed on the checkout page because that information is already captured in the WC billing address fields. It didn’t make sense to make the customer enter duplicate information. The billing address is rendered on the Add Payment Method page in case a merchant has AVS street address checks enabled.
Kind Regards,