Home › Forums › WoodMart support forum › gpay in checkout page
gpay in checkout page
- This topic has 3 replies, 2 voices, and was last updated 1 year, 2 months ago by
Luke Nielsen.
-
AuthorPosts
-
December 5, 2023 at 2:06 pm #518662
fcoerezzaParticipantHi support,
I’ve stripe that add a very big GPAY button at the top of the page. This button is also always visible, even if i chose other payment method. See attached image or go https://staging.acinolilla.com/pagamento/ to see it live.Is it possible to move this button a the bottom of the right column (where there are the payment method list), reducing its width?
should I create a new checkout layout?
thank you
FAttachments:
You must be logged in to view attached files.December 5, 2023 at 3:23 pm #518688
Luke NielsenKeymasterHello,
Please read this article for help: https://wordpress.org/support/topic/move-apple-google-pay-button-in-checkout/
Thank you for your time.
Kind Regards
December 6, 2023 at 3:12 pm #519075
fcoerezzaParticipantHi support,
I followed what written in the link sent, and I add the following to the function.php of the child theme:remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 ); //removes the button
remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 2 ); // removes the separator under buttonadd_action( ‘woocommerce_review_order_before_payment’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 ); // adds the button before payments
add_action( ‘woocommerce_review_order_before_payment’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 2 ); // adds separator before payments after buttonImmediately after the website crashed with this error:
Dettagli dell’errore
====================
Un errore di E_ERROR è stato causato nella linea 216 del file /home/staging/public_html/wp-content/themes/woodmart-child/functions.php. Messaggio di errore: Uncaught Error: Class “WC_Stripe_Payment_Request” not found in /home/staging/public_html/wp-content/themes/woodmart-child/functions.php:216
Stack trace:
#0 /home/staging/public_html/wp-settings.php(611): include()
#1 /home/staging/public_html/wp-config.php(87): require_once(‘…’)
#2 /home/staging/public_html/wp-load.php(50): require_once(‘…’)
#3 /home/staging/public_html/wp-admin/admin.php(34): require_once(‘…’)
#4 /home/staging/public_html/wp-admin/plugins.php(10): require_once(‘…’)
#5 {main}
thrownOf course I immediately deleted the code, but a problem still persists when I access to the product data. see image attached.
I also tried to switch the theme to the main one and disable all plugins, but the problem is always present.Please help, as I do not know what to do more.
I add also admin credentials and the recovery mode linkAttachments:
You must be logged in to view attached files.December 7, 2023 at 10:25 am #519329
Luke NielsenKeymasterHello,
Now the issue disappeared: https://take.ms/fP0Dk , https://take.ms/1kiT4
In this case, I suggest you contact the plugin support so they can prepare a custom code that changes the position of their button.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register