Hyyan Abo Fakher
Forum Replies Created
-
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem OK , here is my email : [email protected] , let me see if I can do something with this
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem , I don’t believe it is an issue related to the cart widget , something is wrong with your current setup for sure , I just can’t find what is wrong.
Take a look at your product here , the product is translated correctly as it seems here , but by adding the product or its translation with any variation to the cart , the Português version is only added . something went wrong when you translated your product. please double check this.
For now , I would recommend to re-setup you store again , or you can use qsandbox.com to create a fast fresh setup for testing with you current theme.
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem after updating to version 0.23 you must remove the lines I gave it to you from your functions.php file , cause it is not needed anymore , the lines add support for woocommerce search widget (search form) to show correct results when the polylang “hide default language” options is enabled.
I’ve been looking in the screenshot you have provided , What I think is that your pages are not organized correclty , in the first screenshot you have store page translated to “loja” , and the translated page is the parent page for other woocommerce pages (cart,my accoun ,…) for both languages , this is wrong , “cart” page must have “store” as parent page not “loja”. I think this is has something to do with the situation you are facing here , although it is strange cause polylang must set the correct parent page automatically.
Could you fix this and provide the results please.
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Wrong redirectionOk , marking topic as resolved
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem I am sorry for taking time to answer sometimes , the electricity and the internet are not stable in my country.
You were right , I thought it was the same problem. I’ve should read more carefully , sorry for that.
I’ve tried to reproduce the Cart page issue in test website , but with no luck.
Please see the following test website god-tender-416.qsandbox.com and the access code is 1234the website has all woocommerce menus.page translated with one translated simple product , adding the product to the cart then visiting the cart page and switching between languages , shows no issue at all , cart page is displayed in the correct active language.
Polylang options :
* [√] Hide URL language information for default language
* [x] Detect browser languageI believe it is a cache problem , please correct me if I am still missing something here.
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Wrong redirection@ankur Prem , translating the cart page solved the issue ?
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@Ankue Prem is the duplicated-search-result stills an issue ? if this is the case please made sure to remove the solution I wrote Here , cause now it is included in the new release , if we are talking about cart issue . let us please move the discussion to the wrong-redirection as they are separated issues.
Is that OK ?
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem fixed in version 0.23
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Wrong redirection@ankur Prem Are you sure you have translated your pages , cart , shop , checkout, My account ? as it seem you didn’t translate the cart page
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem Great I’ll add the fix in the next release , for the cart issue , I will look into it now , thanks for your feedback , you are help me making this plugin better and better
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Not visible on new product@bbstijn any news , about this ?
@ewape are you still facing this issue , or should I mark the topic as resolved
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Duplicated search result@ankur Prem thank you for your feedback , you are correct about the Polylang option to set the language by content , it is not supported yet , and I think I’ve to mention that in the install note.
I’ve digged more in the polylang code and I found it has a special support for wordpress search form only when it is defined in the searchform.php template file. nothing more than that.
I’ve added and experiment feature to support the woo searchform in the same way. I think it will solve the issue even when the polylang option hide url for default is enabled.
Could you please past this code in your theme’s functions.php file and provide me with the results .
add_filter('get_product_search_form', function($form) { global $polylang; if ($form) { if ($polylang->links_model->using_permalinks) { // take care to modify only the url in the <form> tag preg_match('#<form.+>#', $form, $matches); $old = reset($matches); $new = preg_replace('#' . $polylang->links_model->home . '\/?#', $polylang->curlang->search_url, $old); $form = str_replace($old, $new, $form); } else $form = str_replace('</form>', '<input type="hidden" name="lang" value="' . esc_attr($polylang->curlang->slug) . '" /></form>', $form); } return $form; });
Thank you again for your support
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Not visible on new product@bbstijn the browser is not a matter , it might be a bug in the plugin default configuration.
Could you please go to polylang settings page and see if the translation is enabled for products and orders , the plugin must check this be default. if not activated activate them and the issue will fixed for now
Forum: Plugins
In reply to: [Hyyan WooCommerce Polylang Integration] Not visible on new product@bbstijn do you mean the translation links in polylang language metabox?
if that what you mean please make sure to flush page cache in your browser because links are hidden using javascripts for now , and make sure you are using the version 0.22 from this plugin cause the issue was fixed in this release .