• Resolved dandyliondigi

    (@dandyliondigi)


    HTTP Authentication

    username: flywheel
    password: slim-act

    Hi,

    I am trying to move the price input to above the recipient form. I’ve followed the instructions on this page: https://docs.woocommerce.com/document/name-your-price/faq/#section-2, but I’ve been unable to successfully get the custom price input to display underneath the variation drop down/above the recipient information form.

    I’m unable to open a support ticket, as there seems to be an issue with my account verification; I’ve tried resending the verification by clicking the button, but it just takes me to my WordPress.com account and then nothing happens. I’ve tried logging out and logging back in, but that didn’t help.

    Anyway, anyone with experience on this? It’s like the last thing I need to do for the client and I just can’t figure it out… so any help would be AMAZING!

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dandyliondigi

    (@dandyliondigi)

    Here is what I have in my functions.php based on the help doc:

    /* Move Name Your Price box */
    function nyp_move_price_input(){
    	if( class_exists( 'WC_Name_Your_Price_Display' ) ) {
    		remove_action( 'woocommerce_before_add_to_cart_button', array( WC_Name_Your_Price()->display, 'display_price_input' ), 9 );
    		add_action( 'woocommerce_before_add_to_cart_form', array( WC_Name_Your_Price()->display, 'display_price_input' ) );
    	}
    }
    
    add_action( 'woocommerce_before_single_product' , 'nyp_move_price_input' );
    Mirko P.

    (@rainfallnixfig)

    Hi @dandyliondigi,

    Relating to moving elements you may find helpful the visual hook guide from Business Bloomer for the WooCommerce Single Product Page. Here you can find WooCommerce hooks quickly and easily by seeing their actual locations:

    https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

    If you do require more help with the actual coding, we’d recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Thanks.

    Thread Starter dandyliondigi

    (@dandyliondigi)

    Hi Mirko,

    I checked the Business Bloomer article showing the locations; that’s what helped me figure out where I wanted to move it. However, in the snippet provided, I’ve done this but the field does not seem to move no matter the hook I use.

    Hello @dandyliondigi

    Thanks for your response.

    As the Name Your Price extension is a premium one, we cannot support it in the forums. Kindly open a ticket from the account this was purchased from.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move custom field for WC Name Your Price extension’ is closed to new replies.