roryaronson
Forum Replies Created
-
Got it, thanks! For anyone else looking at this thread, this the exact code I used to hide the payment request buttons on the product pages:
add_filter( 'wc_stripe_hide_payment_request_on_product_page', '__return_true' );
Holy crap, thanks for the extremely fast help. That did the trick!
Now, can I do something like
add_filter( 'wc_stripe_show_payment_request_on_product_page', '__return_false' );
to hide the payment request buttons on the product pages?I have my online shop setup to have a combined cart/checkout page. This is a cleaner/faster checkout flow in my opinion, and requires one less page load. I was stumped for a while why I couldn’t get the payment request button showing up on this combined page until I read this thread.
Turns out the button will not show up with the [woocommerce_cart] section if [woocommerce_checkout] is on the same page. That is unfortunate.
I think it would be great to have an option in the Stripe plugin to choose where the payment request buttons show up. Ideally I would have the button show up at the top of the [woocommerce_checkout] section or the bottom of the [woocommerce_cart] section. I would not display them on my individual product pages, and not have the restriction of not showing it on the checkout page.
Maybe this request should be submitted to the plugin page on woocommerce.com? Or GitHub?