• Resolved gabrielazaucha

    (@gabrielazaucha)


    Hello, the new version is missing the option:
    Replace the Storefront theme’s default product search
    can this be somehow obtained? Do you just need to replace the search engine in the code? mobile and ordinary

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gabrielazaucha

    (@gabrielazaucha)

    The code in functions.php don’t working

    if ( ! function_exists( 'storefront_product_search' ) ) {
        function storefront_product_search() {
            if ( storefront_is_woocommerce_activated() ) { ?>
                <div class="site-search">
                    <?php echo do_shortcode( '[wcas-search-form]' ); ?>
                </div>
                <?php
            }
        }
    }
    add_action( 'wp_footer', 'tmp_dgwt_wcas_storefront_inverse_orientation' );
    
    function tmp_dgwt_wcas_storefront_inverse_orientation() {
        ?>
        <script>
            jQuery(window).on('load', function () {
                var $footerSearch = jQuery('.storefront-handheld-footer-bar .dgwt-wcas-search-input');
                if ($footerSearch.length > 0) {
    
                    $footerSearch.each(function(){
                        jQuery(this).dgwtWcasAutocomplete('setOptions', {
                                orientation: 'top',
                                positionFixed: true
                            }
    
                        );
                    });
    
                }
            });
        </script>
        <?php
    }
    Thread Starter gabrielazaucha

    (@gabrielazaucha)

    despite the manual change in the php code, the “search” button is not displayed – the button option is selected in the settings.

    https://drive.google.com/open?id=1f8tU3WLpBUicOVK89a5nHGj-ms_UH3hl

    Thread Starter gabrielazaucha

    (@gabrielazaucha)

    hello ?

    Plugin Author Damian Góra

    (@damian-gora)

    Hello Gabriela,

    Apologies for the delayed response.

    In the latest plugin version (v1.5.0) I moved storefront settings to separated tab. Take a look at the screen.

    Also, you can’t display a shortcode in this way, because shortcode has own <form> tag.

    <form class="nowe">
    <?php echo do_shortcode('[wcas-search-form]'); ?>
    </form>

    Remove <form class="nowe"> and </form>

    I don’t know why the search button and magnifying glass icon disappeared after the update. Maybe there was a CSS conflict. I can check it, but you have to enable v1.5.0.

    Also, if you want, you can contact me by https://ajaxsearch.pro/contact/ in Polish language.

    Best
    Damian Góra

    Thread Starter gabrielazaucha

    (@gabrielazaucha)

    unfortunately I can’t turn it on in production. I will try to check if there is any CSS conflict on the local server. I will let you know and thank you ??
    I think that contact in Polish will be much more convenient ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘version 1.5.0 – no option:Replace the Storefront theme’s default product search’ is closed to new replies.