Hi @fmsgroup,
At this time there is not a shortcode that will output the payment buttons. I am looking at adding that in a future version though.
The plugin listens for the following actions when rendering payment buttons on the product and cart page:
Product Page
woocommerce_after_add_to_cart_button
or woocommerce_before_add_to_cart_button
depending on your settings.
Cart Page
woocommerce_proceed_to_checkout
You can also control the output of the buttons using the plugin’s code.
https://docs.paymentplugins.com/wc-stripe/api/source-class-WC_Stripe_Field_Manager.html#70
Example:
WC_Stripe_Field_Manager::output_product_checkout_fields();
.
Kind Regards,
Hello,
Thanks for your reply,
I’m sorry I didn’t get what you mean I have no knowledge in coding. Is it possible to add custom code to child theme to display the apple pay button on the product page that is built with elementor?
Hi @fmsgroup,
Is your elementor product template using a custom add to cart widget or the standard add to cart widget?
Kind Regards,
Hi @fmsgroup,
In the next release of the plugin, I am including a new shortcode [wc_stripe_payment_buttons
] which will allow you to output the payment buttons anywhere on a product page or cart page.
I am not super familiar with Elementor. Does it let you add shortcodes to pages?
Kind Regards,
Hello,
Thank you that would be nice. Yes, you can add shortcodes with Elementor.
Regards.
Fourkan
@mrclayton I’d like to add a +1 for this feature. I was about to open a new thread to request it.
If possible, it would be great to extend the shortcode to have a product_id parameter. This would be great for adding a payment request button on separate pages.
[wc_stripe_payment_buttons product_id="123123"]