Tagged: enfold, woocommerce
-
AuthorPosts
-
May 14, 2014 at 9:59 pm #264945
Hi – I’m using Gravity Forms with WooCommerce in Enfold and I am trying to reposition the Gravity Forms info (add to cart, quantity etc) below the description. I can’t find what file to edit to move this and make it upgrade friendly. I am pretty sure it’s the same as the regular quantity & add-to-cart elements, and Gravity Forms just ties into them, so moving the standard quantity to below should work.
I thought it would be in /config-woocommerce/config.php, but I just don’t see it. I want to make it upgrade friendly, so I’m assuming it would be a remove_action and then an add_action in my child-theme’s functions.php file, but I’m still working on being proficient with actions…
Thanks for your help!
JohnMay 16, 2014 at 2:45 am #265658Hi sundialstudios!
I don’t think the theme does anything with those elements so you could re-order them using the normal WooCommerce hooks.
Best regards,
DevinMay 18, 2014 at 7:15 pm #266391Hi Devin,
I’ve tried the “standard” woocommerce hooks in my functions.php but it doesn’t seem to work.
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 100 );
All this does is move the add to cart section below the tags and categories, but not below the description tabs.
Any suggestions?
May 18, 2014 at 8:15 pm #266415Hi!
If you want to place the hooks into the child theme use the after_theme_setup action like:
add_action('after_setup_theme','avia_change_wc_templates'); function avia_change_wc_templates(){ remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 100 ); }
I’m not sure which hooks are used by Gravity Forms though. Your best bet is to contact the developers of the Gravity Forms plugin or WC extension.
Regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.