Search widgets not work - by Murasaki1020

This topic has 8 replies, 3 voices, and was last updated 7 years, 10 months ago ago by Olga Barlow

  • Avatar: Murasaki1020
    Murasaki1020
    Participant
    January 19, 2017 at 07:06

    Hi,

    When I used the search widgets to search product, such as product “55-03”, but it is not work.
    Please see http://prntscr.com/dxiar7

    Please help to fix it.

    Murasaki

    7 Answers
    Avatar: 8theme
    8theme
    Support staff
    January 19, 2017 at 10:31

    Hello,

    Thank you for contacting us.

    Could you please check is WooCommerce search works correctly with default theme. Try to switch theme for a few minutes and check Search Widget. It seems to be a plugin issue and is not related to our theme.

    Kind Regards

    Avatar: Murasaki1020
    Murasaki1020
    Participant
    January 19, 2017 at 16:36

    Hi,

    I check WooCommerce search, it is work.

    You said “Try to switch theme”, how to do it?

    Avatar: 8theme
    8theme
    Support staff
    January 20, 2017 at 08:21

    You can switch to default theme in Appearance -> Themes.

    Avatar: Murasaki1020
    Murasaki1020
    Participant
    January 20, 2017 at 14:35

    Hi,

    I switch to default theme Twenty Seventeen, the search widget works fine.
    After change back to Xstore-child, the search widget doesn’t work, goes to 404 page.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 20, 2017 at 20:29

    Hello,

    Provide, please, admin panel and FTP access in Private content area. We’ll try to fix the issue.

    Regards

    Avatar: Murasaki1020
    Murasaki1020
    Participant
    January 23, 2017 at 15:14

    Hi Olga,

    Thank you for your reply.

    I found that if I take-out the “/en” on url, the search widgets is worked.
    Please see http://prntscr.com/dz9j9v

    So I submitted a ticket to WPML. I just got their reply as below –

    ==================================================================

    I have been debugging Search form issue. Eventually I found this as a bug in the theme code. I am able to modify it and it works correctly now. Below are the changes I have made right now:

    1. In this file: /public_html/wp-content/themes/xstore/woosearchform.php

    Line #18 Changed from this:

    
    <form action="<?php echo esc_url( home_url( '' . $wpml . '/' ) ); ?>" id="searchform" class="<?php echo esc_attr($class); ?>" method="get">
    

    Changed to this:

    
    <form action="<?php echo esc_url( home_url( '' . '/' ) ); ?>" id="searchform" class="<?php echo esc_attr($class); ?>" method="get">
    

    Line #22 – I have added this code:

    
    <input type="hidden" name="lang" value="<?php echo(ICL_LANGUAGE_CODE); ?>"/>
    

    2. Please report this bug and solution to the XStore Theme Author. Also note that this change will be overwritten if you update theme. So it’s better to save this file or code as backup, just in case. Once Theme Author will fix this issue in the main theme, there will be no more issues with the updates.

    Please note.

    Best regards,
    Murasaki

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 23, 2017 at 18:36

    Hello,

    Yes, this is known issue and we’ll fix it in next theme update.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.