Home › Forums › Support › Custom fields and WooCommerce This topic has 11 replies, 2 voices, and was last updated 7 years, 6 months ago by Tom. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts September 27, 2016 at 6:53 am #229785 Thierry Hello, I use ACF and this plugin : https://wordpress.org/plugins/loushou-acf-for-woocommerce/ Ok for the back-office but how i display in front, wath’s the hook ? Thx September 27, 2016 at 8:45 am #229809 TomLead Developer Lead Developer Where are you trying to display your field? September 27, 2016 at 10:18 am #229817 Thierry In the content with GP hooks “Inside Content Container” but i think that is not the god thing with Woocommerce September 27, 2016 at 10:30 pm #229985 TomLead Developer Lead Developer Should work fine inside WooCommerce – that hook exists. What are you adding to it? September 28, 2016 at 9:08 am #230115 Thierry A pdf file for download. How i can work with the hook WooCommerce ? i use GP hooks or i copy a template of WooCommerce and i modify single-product.php ? September 28, 2016 at 12:02 pm #230142 TomLead Developer Lead Developer You can use GP Hooks, this would only show on WooCommerce templates for example: <?php if ( function_exists( 'is_woocommerce' ) ) : if ( is_woocommerce() ) { ?> Text here will only show on WooCommerce pages <?php } endif; ?> September 30, 2016 at 12:53 am #230563 Thierry Thank you Tom. Have you the same help for the WooCommerce pages ? http://demo.generatepress.com/hook-locations/ September 30, 2016 at 8:55 am #230666 TomLead Developer Lead Developer All of those hooks apply to WooCommerce as well as any other page. The code I provided above will make it so any code inside it will only apply to WC pages. September 30, 2016 at 9:22 am #230680 Thierry But i don’t found how i can write on my page product see the image : [URL=http://www.hostingpics.net/viewer.php?id=84662328GP.jpg][IMG]http://img15.hostingpics.net/thumbs/mini_84662328GP.jpg[/IMG][/URL] September 30, 2016 at 4:24 pm #230788 TomLead Developer Lead Developer Ah, you’ll have to ask WooCommerce if an action (hook) exists there. If it does, you’ll need to write the function, as only GP hooks are available in GP Hooks. This should help when it comes to writing a function: https://generatepress.com/knowledgebase/hook-list/ October 1, 2016 at 1:50 am #230847 Thierry I understand, thank you Tom October 1, 2016 at 9:33 am #230934 TomLead Developer Lead Developer No problem 🙂 Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In