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.
MurasakiSite URL: hidden Theme version: Theme Version: xstore v.3.3 WooCommerce version: WooCommerce: 2.6.11
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.
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.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty