Conversation
supportHi @mrclayton , I have an external / affiliate product on my live site that unexpectedly has a PayPal payment button for it – https://prnt.sc/Xooj07ax7eBF . I created another such product from scratch and get the same. Thanks, James The page I need help with: [ log in to see the link]
Hi @james-feaver There are two places that PayPal can be enabled for products, at the global level or the product level. On the PayPal Settings page, under the Payment Sections option, check if you have PayPal enabled for products. If you created your product as a copy of a product that had a product level configuration, then that would explain it as well. Can you share what the product type value is on the Edit Product page? Kind Regards
Hi @mrclayton , Thanks for coming back to me. I do have PayPal enabled for products at the global level, in the PayPal settings ( https://prnt.sc/XswvCvNkZ07M ). However, I do have the same setting for your Stripe Plugin, for Google Pay for example, and that correctly does not appear on this product page. Yes, I could set it for every product except this one but that defeats the purpose of the global level which, I believe, should ignore external/affiliate products. My product type is External/affiliate ( https://prnt.sc/-aJcT7tZ1rCi ) and correctly, the Edit Product page for it has no PayPal settings section. I assume I created the product from scratch rather than copying another product but cannot be certain. Thanks, James
Hi @james-feaver Thank you for the additional information. It’s possible that the express payment button logic on the product page is not filtering based on product type. I will have that tested and if it’s missing, will have that logic added. There’s a release planned for this week so expect that to be added in the next release if it’s needed. Kind Regards
Hi @mrclayton , Okay, thanks very much. James
Hi @james-feaver Ok I received an update. Normally, the action woocommerce_after_add_to_cart_button is not triggered by WooCommerce when a product is an external type. However, it looks like in your setup, that action is being triggered despite the product type. That’s why the PayPal button is rendering. We can add a product type check in our code which will resolve that for you. But it’s worth pointing out that for some reason, your site is triggering that action. Kind Regards
Hi @james-feaver There are two places that PayPal can be enabled for products, at the global level or the product level. On the PayPal Settings page, under the Payment Sections option, check if you have PayPal enabled for products. If you created your product as a copy of a product that had a product level configuration, then that would explain it as well. Can you share what the product type value is on the Edit Product page? Kind Regards
Hi @mrclayton , Thanks for coming back to me. I do have PayPal enabled for products at the global level, in the PayPal settings ( https://prnt.sc/XswvCvNkZ07M ). However, I do have the same setting for your Stripe Plugin, for Google Pay for example, and that correctly does not appear on this product page. Yes, I could set it for every product except this one but that defeats the purpose of the global level which, I believe, should ignore external/affiliate products. My product type is External/affiliate ( https://prnt.sc/-aJcT7tZ1rCi ) and correctly, the Edit Product page for it has no PayPal settings section. I assume I created the product from scratch rather than copying another product but cannot be certain. Thanks, James
Hi @james-feaver Thank you for the additional information. It’s possible that the express payment button logic on the product page is not filtering based on product type. I will have that tested and if it’s missing, will have that logic added. There’s a release planned for this week so expect that to be added in the next release if it’s needed. Kind Regards
Hi @mrclayton , Okay, thanks very much. James
Hi @james-feaver Ok I received an update. Normally, the action woocommerce_after_add_to_cart_button is not triggered by WooCommerce when a product is an external type. However, it looks like in your setup, that action is being triggered despite the product type. That’s why the PayPal button is rendering. We can add a product type check in our code which will resolve that for you. But it’s worth pointing out that for some reason, your site is triggering that action. Kind Regards