• Resolved noclip27

    (@noclip27)


    Hi I am a new developer creating a website and wanted to add some back-end functionalities. I was conflicted about putting this topic on the woocommerce forums, but I figured there might be a solution that is more inherent to wordpress – that’s why I placed it here.

    I have a website with an e-commerce section, which is using woocommerce. What I would like to do is create a section during checkout where users may choose what type of ‘charity’ they want to donate some of their proceedings to. This will be the following: ‘animals’, ‘children’, ‘elderly’, ‘random’

    What I would like to do is have this option saved somewhere on the back-end with the order, so I could later utilize it to fulfill that ‘wish’. I would also like to be able to access this data so I could visualize it on the website as well.

    The actual UI of ‘choosing’ one of these charity options will be created by me using standard html/css. I was just wondering how I can ‘hook’ this to the wordpress back-end and have it save the options with the orders.

    Sorry if weirdly worded, thank you for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @noclip27,

    You can use the WooCommerce Checkout Add-Ons extension to add these fields to the checkout page.

    The data will form part of the order once the order is submitted, so you can use that to accurately remember which charity each customer wanted money to go to.

    Cheers

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there!

    Hope the previous reply answered your question. We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating a charity option – save choices’ is closed to new replies.