This thread is resolved. Here is a description of the problem and solution.
Problem:
I bought WPML for cosmopharm.eu and I have problem with empty translated categories.
Design is broken and no product displayed to the translated categories.
Solution:
About the missing English products, it seems that some of them are out of stock. In order to display these products in the frontend, we need to turn off the " Hide out of stock items from the catalog" option in WC -> Settings -> Products -> Inventory
100% of people find this useful.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Bug
This topic contains 4 replies, has 2 voices.
Last updated by Mateus Getulio 1 year, 10 months ago.
Assisted by: Mateus Getulio.
Author | Posts |
---|---|
August 18, 2023 at 12:31 pm | |
mihai-stefanT |
Hi, The same issue for entire site. Exmple: hidden link I have contacted Betheme (muffin group) and they told me to contact WPML team, vecause is not a theme issue. |
August 18, 2023 at 1:50 pm | |
August 18, 2023 at 8:58 pm #14255233 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hi there, Thanks for your patience. We have just accessed the website again, and we could see that there are several updates available here: hidden link. It might be related to the issue, therefore, may I kindly ask you to do those updates and check if it helps? Just make sure to have a complete backup before trying it. Looking forward to your reply. Thank you. |
August 22, 2023 at 9:20 am #14269453 | |
mihai-stefanT |
Hi, You can click on all product categories to see the problem. I talked to the developer who takes care of the website's maintenance and he just said: "doubtful" 🙂 So I am turning to you again, I am convinced that you will solve it. Thank you. |
August 22, 2023 at 5:32 pm #14273135 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello again, I have double-checked the problem, but so far I haven't been able to find a fix. I asked my colleagues to take a look to see if there's anything I'm missing. I'll come back here as soon as one of them answers me (which shouldn't take long). Thank you in advance for your patience! Regards, |
August 23, 2023 at 1:14 pm #14278593 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hi there, Thanks for your patience. First, about the missing English products, it seems that some of them are out of stock. In order to display these products in the frontend, we need to turn off the " Hide out of stock items from the catalog" option in WC -> Settings -> Products -> Inventory: hidden link. We have changed it, and now we can see all the five products in the category you mentioned: hidden link Regarding the question with the English homepage hidden link - we checked it, and it seems WPML is not the culprit. If we check the logs generated, we'll see this: PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\templates\filters\filter-tax.php:26 Stack trace: #0 C:\xampp\htdocs\cosmo\wp-content\plugins\woocommerce\includes\wc-core-functions.php(345): include() #1 C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\includes\functions-yith-wcan.php(938): wc_get_template('filters/filter-...', Array, 'woocommerce/yit...', 'C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\includes\class-yith-wcan-filter.php(1451): yith_wcan_get_template('filters/filter-...', Array, false) #3 C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\templates\shortcodes\filters.php(44): YITH_WCAN_Filter->render() #4 C:\xampp\htdocs\cosmo\wp-content\plugins\woocommerce\includes\wc-core-functions.php(345): include('C:\\xampp\\htdocs...') #5 C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\includes\functions-yith-wcan.php(938): wc_get_template('shortcodes/filt...', Array, 'woocommerce/yit...', 'C:\\xampp\\htdocs...') #6 C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\includes\shortcodes\class-yith-wcan-shortcode-filters.php(48): yith_wcan_get_template('shortcodes/filt...', Array, false) #7 C:\xampp\htdocs\cosmo\wp-includes\shortcodes.php(395): YITH_WCAN_Shortcode_Filters::render(Array, '', 'yith_wcan_filte...') #8 [internal function]: do_shortcode_tag(Array) #9 C:\xampp\htdocs\cosmo\wp-includes\shortcodes.php(235): preg_replace_callback('/\\[(\\[?)(yith_w...', 'do_shortcode_ta...', '<p>[yith_wcan_f...') #10 C:\xampp\htdocs\cosmo\wp-includes\class-wp-hook.php(312): do_shortcode('<p>[yith_wcan_f...') #11 C:\xampp\htdocs\cosmo\wp-includes\plugin.php(205): WP_Hook->apply_filters('<p>[yith_wcan_f...', Array) #12 C:\xampp\htdocs\cosmo\wp-includes\widgets\class-wp-widget-block.php(81): apply_filters('widget_block_co...', '<!-- wp:shortco...', Array, Object(WP_Widget_Block)) #13 C:\xampp\htdocs\cosmo\wp-includes\class-wp-widget.php(394): WP_Widget_Block->widget(Array, Array) #14 C:\xampp\htdocs\cosmo\wp-includes\widgets.php(837): WP_Widget->display_callback(Array, Array) #15 C:\xampp\htdocs\cosmo\wp-content\themes\twentytwentyone\template-parts\footer\footer-widgets.php(13): dynamic_sidebar('sidebar-1') #16 C:\xampp\htdocs\cosmo\wp-includes\template.php(787): require('C:\\xampp\\htdocs...') #17 C:\xampp\htdocs\cosmo\wp-includes\template.php(720): load_template('C:\\xampp\\htdocs...', false, Array) #18 C:\xampp\htdocs\cosmo\wp-includes\general-template.php(206): locate_template(Array, true, false, Array) #19 C:\xampp\htdocs\cosmo\wp-content\themes\twentytwentyone\footer.php(19): get_template_part('template-parts/...') #20 C:\xampp\htdocs\cosmo\wp-includes\template.php(785): require_once('C:\\xampp\\htdocs...') #21 C:\xampp\htdocs\cosmo\wp-includes\template.php(720): load_template('C:\\xampp\\htdocs...', true, Array) #22 C:\xampp\htdocs\cosmo\wp-includes\general-template.php(92): locate_template(Array, true, true, Array) #23 C:\xampp\htdocs\cosmo\wp-content\plugins\woocommerce\templates\archive-product.php(105): get_footer('shop') #24 C:\xampp\htdocs\cosmo\wp-includes\template-loader.php(106): include('C:\\xampp\\htdocs...') #25 C:\xampp\htdocs\cosmo\wp-blog-header.php(19): require_once('C:\\xampp\\htdocs...') #26 C:\xampp\htdocs\cosmo\index.php(17): require('C:\\xampp\\htdocs...') #27 {main} thrown in C:\xampp\htdocs\cosmo\wp-content\plugins\yith-woocommerce-ajax-product-filter-premium\templates\filters\filter-tax.php on line 26 Therefore, it seems related to the 'YITH WooCommerce Ajax Product Filter Premium' plugin. If we deactivate it, the issue does not occur - please check it for a moment. May I kindly ask you to address the issue with their support team? They'll be better than us to tell what is wrong with the code in the files reported in the logs above. I checked myself and cannot tell for sure how we can fix it. Please check it with them and let us know how it goes. Thank you. |