Purchased product is not available in secondary language shop pages #241
Comments
4,5. Searching is a separate issue and not treated by this plugin. 1,2,3 stock synchronisation on purchase is handled by the Settings, WooPoly, Features, Stock Sync, check this is on. (the Meta setting only affects admin pages). |
You are right regarding searching. Searching is theme feature i am using. Maybe you can advise how to troubleshoot further ? |
The product is available in the category, for example from the link you have given: This contains: When you open http://www.parukas-pariki.lv/lv/pc/parukas/ It is also available in category in Russian. I can't see any problem at all. |
Product looks similar to SKU: 235 and have the same product title, but is not listed in shop categories and by metas. |
well, quite, it has the same product title, maybe woocommerce is not showing the duplicate titles. When you wrote the issue initially, I understood you to mean that NO products were showing up in categories. |
Nope. This happens with all previously purchased products which were out of stock and later stock quantity was changed back to be in stock (managed with stock management). |
in that case you have wooCommerce configured to hide out of stock items (Settings, Products, Inventory, Out of stock visibility - Hide out of stock items from the catalog), and these items are not properly back in stock. |
You are right. By switching product to "Out of stock" and switching back to be "In stock" it appeared on shop pages for main language but not for secondary language, although stock status field in secondary language displays read only value "In stock" Example is here link removed Is this known woo-poly synchronization bug ? |
There's no known bug about this. Maybe when you add inventory to an out of stock item in the user interface, then WooCommerce changes it's stock status to back in stock automatically, but when the plugin synchronises the meta this doesn't happen? Or maybe you didn't set the status to back in stock? Now we know what is happening, would you mind trying one more time, and open a new issue if there is a confirmed problem. I mean, first confirm that you have turned on all the stock options:
|
Oh, and do you have any caching tool like WP-SuperCache enabled? If the translated product doesn't show up even though it is back in stock, then it could be you are seeing a cached page... |
since you say 'secondary language displays read only value "In stock"' then perhaps the synchronisation was successful ? |
Checked below:
Updating product with woopoly, settings, features and metas enabled displays stock status correctly but seems that it is just display status and not real product stock status. For example I have disabled stock sync features and put both product translations to be "Out of stock" and than put both to be "In stock". This did the trick - product appears on main and secondary language shop category, meta pages & search. No, I am not using caching plugins. Using absolute minimum set of plugins. |
ok sure - can you just paste that into a new issue then? |
hi, where is the resolution of this problem? |
Can you reproduce this issue on default Wordpress theme (eg Storefront)?
Yes
Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?
Yes
What product versions and settings are you using when this issue occurs?
Wordpress: 4.8
WooCommerce: 3.1.1
Polylang: 2.1.6
Hyyan WooCommerce Polylang Integration: 1.0.3
Steps to Reproduce
I have system with two languages:
Main language and secondary language.
Similar behaviour is if customer buy product in main language, but after returning stock quantity back from 0 to 1 resulted products to be searchable only in main language, but not secondary language, also categories and product pages, although product in secondary language page is not out of stock. Accessing product by direct link and switching to secondary language displays the product as available for a purchase and in stock.
I have all settings enabled (including sync) in language options.
What I Expected
Non out of stock products should be available in store on all language pages, including search.
The text was updated successfully, but these errors were encountered: