Woocommerce get product addons fields

broken image
broken image
broken image

Per Pelmered's answer, I was able to get the add-on fields to show up with adding this to functions.php:Īdd_action( 'woocommerce_after_shop_loop_item_title', array($GLOBALS, 'display'), 10) I'm not sure if there is a function I can call for this, if it involves some more advanced coding. Both are needed before the product can be added to the cart from the product archive. In my case, this is a field for a card request and one for delivery date. I need to get this same set of form fields to display on the archive-product template (the list of products). This automatically displays on the single product template.īy some trial and error with the single product template, it appears to hook in somewhere in woocommerce_single_product_summary (single_meta?).

broken image

I'm using the extension for WooCommerce, which allows custom fields for products.