I made the mistake updating Pro and WooCommerce. After the fact, I learned that I had to go back to Woo 3.0.7. Gah! Everything with the shop is now messed up. The swedish version of this page is now not showing any products.
I was using my own custom shop page with the Grid instead of the ugly default layout of shop catalogue. What do I do now? Below is my PHP customizations, in case those are needed.
Please help before I go nuts.
<3
Installed custom php monroedesign.se
Replace your wpml code in your child theme’s functions.php file to this.
// Custom display of WPML flags
// =============================================================================
function custom_language_selector_flags(){
$languages = icl_get_languages(‘skip_missing=0&orderby=code’);
$output = ‘’;
if(!empty($languages)){
foreach($languages as $l){
$output .= ‘<div class"myflags">’;
$output .= ‘’;
$output .= ‘’;
}
}
return $output;
}
add_shortcode(‘myflags’, ‘custom_language_selector_flags’);
add_filter(‘x_option_x_topbar_content’, ‘do_shortcode’);
// =============================================================================
Then enable topbar under Appearance > Customize > Header > MISCELLANEOUS > topbar
and add this as content [myflags]
To make product single images 1040x650 px instead of default 400x400. Add to chill function.php
// Do Not Remove Woocommerce Plugin Settings
// =============================================================================
function x_woocommerce_donot_remove_plugin_setting(){
if ( ! is_admin() ) {
return;
}
remove_filter( ‘woocommerce_product_settings’, ‘x_woocommerce_remove_plugin_settings’, 10 );
}
add_action(‘init’, ‘x_woocommerce_donot_remove_plugin_setting’);
// Do Not Remove Woocommerce Plugin Settings
// =============================================================================
function x_woocommerce_donot_remove_plugin_setting(){
if ( ! is_admin() ) {
return;
}
remove_filter( ‘woocommerce_product_settings’, ‘x_woocommerce_remove_plugin_settings’, 10 );
}
add_action(‘init’, ‘x_woocommerce_donot_remove_plugin_setting’);
// =============================================================================
// Add close button to search pop up
// =============================================================================
function x_navbar_searchform_overlay() {
if ( x_get_option( ‘x_header_search_enable’ ) == ‘1’ ) :
?>
<div class="x-searchform-overlay">
<?php
endif;
}
add_action( ‘x_before_site_end’, ‘x_navbar_searchform_overlay’ );
// =============================================================================