How to move a woocmmerce product addons input area with hooks?

Question

I was wondering if it is possible to move the product input field for the woocmmerce product add-ons, using the below code sadly does not move it, if I use the below code in the original plugin file it does move, how would I change this so it moves the input area before the product variations, currently is it displayed before the add to cart. Thank you!

public function reposition_display_for_variable_product() { remove_action( 'woocommerce_before_add_to_cart_button', array( $this, 'display' ), 10 ); add_action( 'woocommerce_before_variations_form', array( $this, 'display' ), 15 ); }

0
, Matty_Ice 1 year 2020-07-13T18:10:25-05:00 0 Answers 71 views 0

Leave an answer

Browse
Browse