Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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!
    John

    #265658

    Hi 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,
    Devin

    #266391

    Hi 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?

    #266415

    Hi!

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.