• Resolved HambiRas

    (@fmsgroup)


    Hello,

    Can I display apple pay with a shortcode on the product page or cart??
    because they are custom build with elementor.

    Regards.
    Fourkan

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

    (@mrclayton)

    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,

    Thread Starter HambiRas

    (@fmsgroup)

    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?

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @fmsgroup,

    Is your elementor product template using a custom add to cart widget or the standard add to cart widget?

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    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,

    Thread Starter HambiRas

    (@fmsgroup)

    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"]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcode for apply pay?’ is closed to new replies.