PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

The Category description does not appear on the Categories page.

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hola,

En la página de Categorías de WooCommerce no me aparece la descripción que tengo configurada. Tengo 2 tipos de Descripciones en cada Categoría y no aparece ninguna.

Si desactivo el plugin Husky aparecen.

Por favor, ¿saben cómo hacer que se muestren las descripciones?

 


 

Hello,

On the WooCommerce Categories page, the description that I have configured does not appear. I have 2 types of Descriptions in each Category and none appear. If I disable the Husky plugin they appear.

Please do you know how to get the descriptions to show up?

Hello

Please  drop  me  exact  link to the  issue

https://muxucosmetics.com/es/tienda/?swoof=1&product_cat=cepillo-dientes

Hello

OK! This is a link to the shop page with category search. Of course, there will be no category description here because this is shop page

If I uninstall the Plugin the description appears. That is, something in the plugin is blocking the description.

Hello

https://muxucosmetics.com/es/tienda/  - Where on this page should this description be?

Hi Pablo,

Before and after the products. There are 2 kind of descriptions. But they are in the category page https://muxucosmetics.com/es/tienda/?swoof=1&product_cat=cepillo-dientes .

Thanks for your time.

Laszlo

Hello Laszlo

This is a shop page, there should not be any category descriptions here.

https://muxucosmetics.com/es/categoria-producto/cuidado-bucal/cepillo-dientes/  - this is a category page and there should be a description of the category. does the description disappear on this page when the filter is active?

 

Hello, In order to add a text at the bottom of the products to improve the SEO of the web, I enabled through a code that many people have used without problems, a second description field in Products-->Categories. This description only appears if I disable your Husky plugin. I'll add the code if you want for you to review. I add the code through Code Snippets, but it can be added directly to the functions.php file.

 

// Mostrar el campo de texto cuando creas la categoría

add_action( 'product_cat_add_form_fields', 'dl_wc_anadir_editor_1', 10, 2 );

function dl_wc_anadir_editor_1() {
?>
<div class="form-field">
<label for="
desc"><?php echo __( 'Descripción de abajo', 'woocommerce' ); ?></label>

<?php
$settings = array(
'textarea_name' => 'seconddesc',
'quicktags' => array( 'buttons' => 'em,strong,link' ),
'tinymce' => array(
'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator',
'theme_advanced_buttons2' => '',
),
'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:75px; width:80%;}</style>',
);

wp_editor( '', 'seconddesc', $settings );
?>

<p class="description"><?php echo __( 'Este texto va en la zona de abajo de las categorías', 'woocommerce' ); ?></p>
</div>
<?php
}

// Mostrar el campo de editar texto en la edición de la categoría

add_action( 'product_cat_edit_form_fields', 'dl_wc_anadir_editor_2', 10, 2 );

function dl_wc_anadir_editor_2( $term ) {
$second_desc = htmlspecialchars_decode( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) );
?>
<tr class="form-field">
<th scope="row" valign="top"><label for="second-desc"><?php echo __( 'Descripción de abajo', 'woocommerce' ); ?></label></th>
<td>
<?php

$settings = array(
'textarea_name' => 'seconddesc',
'quicktags' => array( 'buttons' => 'em,strong,link' ),
'tinymce' => array(
'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator',
'theme_advanced_buttons2' => '',
),
'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:125px; width:100%;}</style>',
);

wp_editor( $second_desc, 'seconddesc', $settings );
?>

<p class="description"><?php echo __( 'Este texto va en la zona inferior de la categoría de productos', 'woocommerce' ); ?></p>
</td>
</tr>
<?php
}

// Que se pueda guardar el contenido

add_action( 'edit_term', 'dl_wc_guardar_campo', 10, 3 );
add_action( 'created_term', 'dl_wc_guardar_campo', 10, 3 );

function dl_wc_guardar_campo( $term_id, $tt_id = '', $taxonomy = '' ) {
if ( isset( $_POST['seconddesc'] ) && 'product_cat' === $taxonomy ) {
update_woocommerce_term_meta( $term_id, 'seconddesc', esc_attr( $_POST['seconddesc'] ) );
}
}

// Mostrar el texto en la categoría

add_action( 'woocommerce_after_shop_loop', 'dl_mostrar_desc_abajo_cat', 5 );

function dl_mostrar_desc_abajo_cat() {
if ( is_product_taxonomy() ) {
$term = get_queried_object();
if ( $term && ! empty( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) {
echo '<p class="term-description">' . wc_format_content( htmlspecialchars_decode( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) . '</p>';
}
}
}

Hello

Ok!

if ( is_product_taxonomy() ) {  - this code means that the description should be displayed on the category page (archive template).     https://muxucosmetics.com/es/tienda/?swoof=1&product_cat=cepillo-dientes  -  This shop page with a search query. This is not a category page. This is not an archive template. This page does not have a taxonomy object - https://c2n.me/4jd0L9f.png.

If you disable my plugin( in principle with my plugin will be the same result ) use this url https://muxucosmetics.com/es/tienda/?product_cat=cepillo-dientes  -  Then wordpress will redirect to the category page (archive).  In fact, another template will be used, another page. It will be like menu operation instead of search

Oh! I can't belive it :(  I'm so sorry I wasted your time.  And thanks a lot for show me it :)

 

Welcome;)