• Resolved Sarathlal N

    (@sarathlal)


    On my product page, I have an extra product option. I have followed various tutorials on the internet & If I use default Add to cart button, it works like charm.

    Example tutorial link is given below.

    https://www.kathyisawesome.com/add-a-custom-field-to-woocommerce-product/

    But When I enable apple pay in stripe plugin, the item added to cart & I can proceed to checkout, but additional details I have entered in my product page not updated.

    I have checked stripe plugin code & confirmed that plugin collecting product ID & quantity, then performing add to cart function via AJAX.

    How I can solve this issue? Is there any filter to update cart item data when I’m using Apple Pay button in product page?

    • This topic was modified 6 years, 2 months ago by Sarathlal N.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hey @sarathlal

    I wouldn’t be able to help with any custom coding issues, however you can find the Hooks for the Stripe plugin here:

    https://docs.woocommerce.com/document/stripe/#section-13

    If you aren’t able to get the customization you are doing working, you would be able to do this with the Product Add-Ons plugin. That would allow you to add a custom input field that will be attached to the product upon purchase.

    I hope that helps to get you pointed in the right direction.

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    As I have not heard back from you, I’m assuming that the above information helped. I’m going to mark this topic as resolved, however please feel free to open a new thread for any other questions.

    Thread Starter Sarathlal N

    (@sarathlal)

    Hi Phil,

    Thank you for your support. I have checked the link you gave. Find out too many filters and action hooks regarding stripe payment method. Also checked the plugin you have mentioned.

    Unfortunately, I can’t use the plugin you mentioned & I need to use default WooCommerce add to cart form in the product page.

    I have checked your plugin code. As per my understanding, if I’m using Apple pay or Google pay button in the product page, the javascript function will collect the product ID, quantity & variation attributes.

    In line number 257 of woocommerce-gateway-stripe/assets/js/stripe-payment-request.js, we can see that function.

    In the given document, I can’t find filter hooks regarding payment request button.

    • This reply was modified 6 years, 1 month ago by Sarathlal N.
    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    As per my understanding, if I’m using Apple pay or Google pay button in the product page, the javascript function will collect the product ID, quantity & variation attributes.

    That’s correct.
    If you checkout using the Payment request buttons, the product info is still collected for the order. When looking at an order from you admin interface, these orders will appear the same as your non-payment request orders.

    I wouldn’t be able to give any advanced coding suggestions. If you want to pursue customizing this to capture your custom fields though, I recommend asking in our developer’s slack community:

    https://woocommercecommunity.slack.com/

    If you don’t already have an account, you can sign up at the bottom of the following page:https://woocommerce.com/develop-woocommerce/

    Thread Starter Sarathlal N

    (@sarathlal)

    Hi Phil,

    Thank you for the support. I will try to contact other WooCommerce developers through slack.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Support Extra product options – Google pay & Apple pay’ is closed to new replies.