• Resolved Martin

    (@martyshka)


    Hi,

    I would like to place a search field at top of the single product page with the “woocommerce_before_single_product” hook, but I can’t seem to get it going.

    Has anyone implemented it like this?
    Thanks
    Martin

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

Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Please use this code snippet

    add_action( 'woocommerce_before_single_product', 'aws_woocommerce_before_single_product' );
    function aws_woocommerce_before_single_product() {
        if ( function_exists( 'aws_get_search_form' ) ) {
            aws_get_search_form();
        }
    }

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘On single product page with hook’ is closed to new replies.