• Resolved DHappiness

    (@dhappiness)


    Hi! Is there a way to move fields to another place? I’m trying to remove action of the plugin and create my own action to bind plugin’s function to it. But instead of any result I just getting a js error.

    Here is the code

    remove_action( 'woocommerce_before_add_to_cart_button', array( 'NM_PersonalizedProduct', 'render_product_meta' ), 15 );
    add_action( 'my_action', array( 'NM_PersonalizedProduct', 'render_product_meta' ) );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    well I don’t know why you are hooking your own action, because it should be linked only with current woocommerce hook we used.

    Thread Starter DHappiness

    (@dhappiness)

    Actually I need to move fields to lightbox.. That’s why I’m trying to hook my own action..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Move fields’ is closed to new replies.