Home › Forums › WoodMart support forum › Paypal Smart Button in Mini Cart and Checkout
Paypal Smart Button in Mini Cart and Checkout
- This topic has 6 replies, 2 voices, and was last updated 10 months, 2 weeks ago by
Artem Temos.
-
AuthorPosts
-
December 22, 2024 at 11:48 pm #624546
m.spanierParticipantWe switched to Woodmart and the paypal smart button is not showing in Mini Cart and Checkout.
Before it does in normal “Checkout” Widget (Elementor used before, too)On Cart page everything works fine.
I use the WooCommerce Hook Widget -> woocommerce_checkout_order_review to show the table and payment contents.
So.
Here you find a solution but does not write the solution. 😉
https://xtemos.com/forums/topic/paypal-button-not-showing-up-in-checkout/Would be fine, if you could help me.
thanks in advance.
PS: I can code and know what is a filter and an action in WP – so if you can give me some code (change priority for your hooks etc.) it would be great
December 23, 2024 at 11:59 am #624671
Artem TemosKeymasterHello,
Thank you so much for purchasing our theme and contacting our support center.
Please disable any plugins not directly related to our theme and provide us with your admin access details. We will log in to your dashboard and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
– WoodMart core
– WooCommerce
– Elementor/WPBakery Page BuilderThank you in advance.
January 6, 2025 at 6:30 pm #627770
m.spanierParticipanti will create an staging site to test and and then I’ll get back to you
January 13, 2025 at 1:23 pm #629242
m.spanierParticipantThe login details are attached.
I noticed that when the number of products in the mini cart is increased, the Paypal Express button disappears from the mini cart.
January 13, 2025 at 3:16 pm #629288
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
function wd_paypal_payments_add_btn() { add_action( 'woocommerce_widget_shopping_cart_after_buttons', function () { if ( ! WC()->cart->get_cart() ) { return; } echo '<p class="woocommerce-mini-cart__buttons buttons">'; echo '<span id="ppc-button-minicart"></span>'; do_action( 'woocommerce_paypal_payments_minicart_button_render' ); echo '</p>'; }); } add_action( 'wp_ajax_woodmart_update_cart_item', 'wd_paypal_payments_add_btn'); add_action( 'wp_ajax_nopriv_woodmart_update_cart_item', 'wd_paypal_payments_add_btn');January 13, 2025 at 6:54 pm #629408
m.spanierParticipantWorks perfect.
Many thanks.
January 14, 2025 at 10:56 am #629511
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
-
AuthorPosts
Tagged: checkout, express, minicart, paypal, smart button, woocommerce
The topic ‘Paypal Smart Button in Mini Cart and Checkout’ is closed to new replies.
- You must be logged in to create new topics. Login / Register
