• Hello,

    I want to use paypal button on custom template page. I used shortcode [woocommerce_checkout] on my custom template page. Like that:
    echo do_shortcode(‘[woocommerce_checkout]’);

    But PayPal button is not showing.

    I googled that and find out solution that didn’t work for me:
    https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/pull/665

    I have changed 1 stroke in this file (line 463):
    class-wc-gateway-ppec-cart-handler.php

    From this:
    $is_checkout = is_checkout() && 'yes' === $settings->mark_enabled && ! wc_gateway_ppec()->checkout->has_active_session();

    To this:
    $is_checkout = ( is_page_template('template-memberships.php') || is_page_template('template-search.php') || is_checkout() ) && 'yes' === $settings->mark_enabled && ! wc_gateway_ppec()->checkout->has_active_session();

    I think that I should change something more. So the question is how enable paypal button on a custom page in [woocommerce_checkout]?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Evgenii Savelev

    (@evnomad)

    So… Is that possible to put this Paypal button on any page I want?

    @evnomad – before I attempt to look into this information, did you happen to solve this or have any additional information to provide at this point? This may be a bit beyond the assistance I can provide, but I’d be happy to try.

    – Joey

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    – Joey

    Thread Starter Evgenii Savelev

    (@evnomad)

    I made kinda like workaround. One page is checkout and using value in url like ?payment=paypal I just show only PayPal button.

    But the problem is still here. I read that it is going to be solved in version 1.7.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PayPal button is not showinf after shortcode’ is closed to new replies.