• Resolved seaghanmoriarty

    (@seaghanmoriarty)


    Hi

    I am having some trouble with the paypal smart button

    The paypal button on a single item page is greyed out.
    When an item is in the customers cart the paypal button is not greyed out.

    The product is a “Simple product”

    On variable products the paypal button is greyed out until an option is chosen, I think this is correct behaviour.

    Woocommerce status: https://pastebin.com/SUZtGdKq

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @seaghanmoriarty

    We suggest you contact us directly for further assistance, as I cannot reproduce it on your site, probably because the smart buttons are currently disabled. We may need to examine your system report or logs to better understand what’s happening. You can open a ticket with our service desk.

    Here’s how you can request support: Request Support.

    Please make sure to include the URL of this thread in your ticket for reference.

    Kind regards,
    Krystian

    Thread Starter seaghanmoriarty

    (@seaghanmoriarty)

    Hi Krystian

    I have enabled the paypal button can you have another look. Thanks

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @seaghanmoriarty

    To fix it, add this snippet to your site via functions.php, or a dedicated plugin: Code Snippets

    add_filter( 'woocommerce_paypal_payments_product_buttons_disabled', function( $disabled, $context_data ) {  
    // Allow PayPal buttons for simple products
    if ( isset( $context_data['product'] ) && $context_data['product']->is_type( 'simple' ) ) {
    return false;
    }
    return $disabled;
    }, 10, 2 );

    This might fix this, as long as it’s not related to the theme hooks problem.

    If the issue remains, contact us via https://paypal.inpsyde.com/docs/request-support/

    Kind Regards,
    Krystian

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

The topic ‘Paypal button greyed out’ is closed to new replies.