Saltar navegación

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the WoodMart theme with WPML, single product layouts based on product types are not working as expected. Instead, your products will fall back to the default layout.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/themes/woodmart/inc/modules/layouts/class-single-product.php file.
  • Look for line 20.
  • Replace:
    			$condition['condition_query'] = apply_filters( 'wpml_object_id', $condition['condition_query'], $condition['condition_type'] );
            
  • With:
    		if ( $condition['condition_type'] !== 'product_type' ) {
    			$condition['condition_query'] = apply_filters( 'wpml_object_id', $condition['condition_query'], $condition['condition_type'] );
    		}
            

Deje una respuesta

Por favor, mantente dentro del tema y sé respetuoso con los demás. Si necesitas ayuda con cuestiones no relacionadas con este post, utiliza nuestro Foro de soporte para iniciar un chat o enviar un ticket.

Puede utilizar estas etiquetas:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>