supernotuan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Term/Atributes descriptionsHello,
The answer from woocommerce is no:
“I’m sorry, we are not able to provide support for third-party themes and customizations, as per our support policy”
:_(
?Someone can help me please?
Thanks
Forum: Themes and Templates
In reply to: [Virtue] Term/Atributes descriptionsHi,
This is what I have ??
<?php /** * Product attributes * * Used by list_attributes() in the products class * * @author WooThemes * @package WooCommerce/Templates * @version 2.1.3 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } $has_row = false; $alt = 1; $attributes = $product->get_attributes(); ob_start(); ?> <table class="shop_attributes"> <?php if ( $product->enable_dimensions_display() ) : ?> <?php if ( $product->has_weight() ) : $has_row = true; ?> <tr class="<?php if ( ( $alt = $alt * -1 ) == 1 ) echo 'alt'; ?>"> <th><?php _e( 'Weight', 'woocommerce' ) ?></th> <td class="product_weight"><?php echo $product->get_weight() . ' ' . esc_attr( get_option( 'woocommerce_weight_unit' ) ); ?></td> </tr> <?php endif; ?> <?php if ( $product->has_dimensions() ) : $has_row = true; ?> <tr class="<?php if ( ( $alt = $alt * -1 ) == 1 ) echo 'alt'; ?>"> <th><?php _e( 'Dimensions', 'woocommerce' ) ?></th> <td class="product_dimensions"><?php echo $product->get_dimensions(); ?></td> </tr> <?php endif; ?> <?php endif; ?> <?php foreach ( $attributes as $attribute ) : if ( empty( $attribute['is_visible'] ) || ( $attribute['is_taxonomy'] && ! taxonomy_exists( $attribute['name'] ) ) ) { continue; } else { $has_row = true; } ?> <tr class="<?php if ( ( $alt = $alt * -1 ) == 1 ) echo 'alt'; ?>"> <th><?php echo wc_attribute_label( $attribute['name'] ); ?></th> <td><?php if ( $attribute['is_taxonomy'] ) { $values = array(); $separator = ','; // here I check the specific attribute echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( $separator, $values ) ) ), $attribute, $values ); // end changes persillie } else { // Convert pipes to commas and display values $values = array_map( 'trim', explode( WC_DELIMITER, $attribute['value'] ) ); echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); } ?></td> </tr> <?php endforeach; ?> </table> <?php if ( $has_row ) { echo ob_get_clean(); } else { ob_end_clean(); }
Forum: Themes and Templates
In reply to: [Virtue] Term/Atributes descriptionsHi,
Y es, I did it but the descriptions are not showing up evento theterms are disabled. I’ll paste the entire code, maybe I am doing something wrong
Thanks
Forum: Themes and Templates
In reply to: [Virtue] Term/Atributes descriptionsHi again,
I tried that code but is not working, maybe I did something wrong.
I deleted the if for apply it to all descriptions. I inserted in line 54 and I have tried with differents ways and is not working :_(.Thanks anyway
Forum: Themes and Templates
In reply to: [Virtue] Term/Atributes descriptionsHi,
Thanks so much for the answers, I′ll ask woocommerce, I hope to get a solution
Thanks again!!
Forum: Themes and Templates
In reply to: [Virtue] Term/Atributes descriptionsHi,
I′m adding that in Product > Atributes > Configurate terms. Inside Configurate terms you can edit one, then should modify the name term, slug and description. Look at this image found searching in google: https://www.remicorson.com/wp-content/uploads/2013/08/find-attribute-slug.jpg
So that description is not enabled by default in theme, isn′t it?
Thanks so much
Forum: Plugins
In reply to: Enable terms attributes in woocommerce/woo dojoStill I can′t make that descriptions appears :(. I have been about the plugin but the problem is not the plugin, wordpress don′t shows the descriptions by default.
Please, someone knows how to enable them?
Thanks
Forum: Plugins
In reply to: Enable terms attributes in woocommerce/woo dojoGuys, please, someone knows how to do that?
Thanks so much!!