• Resolved forwardpatrol

    (@forwardpatrol)


    Hey everybody,

    I’m creating an e-learning course that, by the end of it, the student will get a certificate. This certificate will have a dynamic field.

    When the user purchases this course at the checkout page, I put an additional field (via WooCommerce’s native Additional Fields feature) where they will have to input a five digit number. The certificate will have a dynamic field that will display this info.

    What I think the strategy would be to accomplish this is to: create additional code that will be added to the theme’s php file. This code will have to pull this information from each order and display it on each certificate through shortcode.

    How would I be able to call this data from a WooCommerce Additional Field (each user enters different values when they purchase the course) and display it through shortcode? I appreciate any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @forwardpatrol

    I understand that you want to capture the number entered by the user at checkout and put it on the certificate.

    When the user purchases this course at the checkout page, I put an additional field (via WooCommerce’s native Additional Fields feature) where they will have to input a five digit number. The certificate will have a dynamic field that will display this info.

    By native Additional Fields feature you mean you added the additional checkout field using actions and filters as explained here, or you used a plugin such as this one?

    Thread Starter forwardpatrol

    (@forwardpatrol)

    Hi there,

    I used the Checkout Fields Manager plugin by QuadLayers in order to add Additional Fields to my checkout page. It’s similar to the second link you provided because it integrates directly into WooCommerce.

    ForwardPatrol

    Mirko P.

    (@rainfallnixfig)

    Hi @forwardpatrol,

    What you need to do is pull data from the checkout custom field and store it in a shortcode but this appears to be a fairly complex development topic that is not covered on this forum.

    You can get in touch with QuadLayers, the author of the Checkout Field Manager (Checkout Manager) for WooCommerce plugin, and ask them if they have some suggestions for you. Here’s their support forum for the plugin:

    https://www.ads-software.com/support/plugin/woocommerce-checkout-manager/

    That said, I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying Data from WooCommerce Additional Fields’ is closed to new replies.