• Resolved balletmusicdk

    (@balletmusicdk)


    How come browser payment options show on my external and affiliate products when they can’t be bought in my shop? Is there a way to remove this without having to go through all products individually? I have about 50 external/affiliate products.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @balletmusicdk,

    You should navigate to the Browser Payments Settings page and there you will see a “Sections” option where you can disable the payment request button on product pages globally. You can then enable it on individual product pages.

    Kind Regards,

    Thread Starter balletmusicdk

    (@balletmusicdk)

    Thank you for getting back to me so quickly!
    But the thing is I have even more regular products – maybe 300!
    So this is not possible.
    The last Stripe plugin I used only put the browser payment option on regular products. What’s the reason for putting it on the external products when they can’t be bought on the site anyway?

    Thanks,
    Soren

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @balletmusicdk,

    I am not able to re-create on my test site. The browser button does not render on the external product for me. I will do some testing to determine why it would render for you but not for me. Are you using a theme which has customized the WooCommerce templates?

    There is a temporary fix you can add to prevent manually disabling. You can use the wc_stripe_product_payment_methods filter. Here is an example:

    add_filter('wc_stripe_product_payment_methods', function($gateways){
        global $product;
        if($product->get_type() === 'external'){
            $gateways = array();
        }
        return $gateways;
    });

    Be sure and test before implementing.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @balletmusicdk,

    I found the reason why it wasn’t showing for me. WC has some logic where the Add to Cart button is not rendered if the external product doesn’t have a url configured. That results in the actions that the Stripe plugin listens to not being triggered. When I added the external url the buttons showed.

    I have added some logic to ensure the payment buttons aren’t rendered on external products. You can reach out to me via the Help button on the plugin settings if you want that feature in advance of the next release.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 3.2.13 released which doesn’t render payment buttons on external product pages.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Browser payment on external products’ is closed to new replies.