Title: Using function
Last modified: April 7, 2020

---

# Using function

 *  Resolved [jslom](https://wordpress.org/support/users/jslom/)
 * (@jslom)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/using-function/)
 * How do you use this function `alg_display_product_input_fields`
 * I am trying to add it to my template, but it is not showing. It will show if 
   I do
    `<?php echo alg_display_product_input_fields() ?>` but that will not submit
   it to the order or cart when added. What’s the proper syntax?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/using-function/#post-12644704)
 * Hi [@jslom](https://wordpress.org/support/users/jslom/),
 * Can you please inform us where are you adding this function alg_display_product_input_fields?
   Ideally, this function needs to be added within the Add to Cart form so values
   of the form get submitted when Add to Cart button is clicked.
 * ​I hope this information is useful to you.
 * Regards,
    Kenil Shah
 *  Thread Starter [jslom](https://wordpress.org/support/users/jslom/)
 * (@jslom)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/using-function/#post-12645237)
 * yes, I have it in /single-product/add-to-cart/variable.php
 *  Plugin Support [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/using-function/#post-12649937)
 * Hi [@jslom](https://wordpress.org/support/users/jslom/),
 * I think the ticket has been created for the same. So, I will get back to you 
   with an update on this on the ticket which has been created.
 * Regards,
    Kenil Shah

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using function’ is closed to new replies.

 * ![](https://ps.w.org/product-input-fields-for-woocommerce/assets/icon-256x256.
   png?rev=2717446)
 * [Product Input Fields for WooCommerce](https://wordpress.org/plugins/product-input-fields-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [kenil802](https://wordpress.org/support/users/kenil802/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/using-function/#post-12649937)
 * Status: resolved