• Resolved jayesel

    (@jayesel)


    How can I change the location of the form on the product page? I’ve tried using remove_action/add_action to switch the locations, but I can’t seem to get it to work. I’d like it to be above the price, is the possible?

    So:
    Product Name
    Custom Form
    Price
    Add to cart button

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author acowebs

    (@acowebs)

    Hi,
    You can find all the template hooks at \wp-content\plugins\woocommerce\includes\wc-template-hooks .php, please find the required action hooks from here.

    For a simple product type, you can try this

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price' );
    add_action( 'woocommerce_before_add_to_cart_button', 'woocommerce_template_single_price', 20 );
    
    Plugin Author acowebs

    (@acowebs)

    As we haven’t heard back from you further, we assume that this issue has been resolved at your end and considering this ticket as closed. Please don’t hesitate to get back to us if you require any further assistance or clarifications from our end in future.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘move form location’ is closed to new replies.