Home Forums WoodMart support forum Paypal Smart Button in Mini Cart and Checkout

Paypal Smart Button in Mini Cart and Checkout

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #624546

    m.spanier
    Participant

    We 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

    #624671

    Artem Temos
    Keymaster

    Hello,

    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 Builder

    Thank you in advance.

    #627770

    m.spanier
    Participant

    i will create an staging site to test and and then I’ll get back to you

    #629242

    m.spanier
    Participant

    The 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.

    #629288

    Artem Temos
    Keymaster

    Try 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');
    #629408

    m.spanier
    Participant

    Works perfect.

    Many thanks.

    #629511

    Artem Temos
    Keymaster

    You are welcome. Feel free to contact us if you have any further questions.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Paypal Smart Button in Mini Cart and Checkout’ is closed to new replies.