Unable to change the position of the CPA form
-
Hello!
Product type is Variable Subscription, the CPA form is added on ‘woocommerce_before_add_to_cart_button’ action. We want to put it above the variations list.
For some reason the following code doesn’t work. Any idea why?
remove_action('woocommerce_before_add_to_cart_button', array('WCPA_Front_End', 'before_add_to_cart_button')); add_action('woocommerce_before_variations_form', array('WCPA_Front_End', 'before_add_to_cart_button'));
It adds the second instance of the form above the variations list, but doesn’t remove it from the original position.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Unable to change the position of the CPA form’ is closed to new replies.