qubik
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] ERR_HTTP2_PROTOCOL_ERROR After Some TimeI’m having the same issue in one of our servers. A client with 400.000 pageviews a day, using JetPack is having random ERR_HTTP2_PROTOCOL_ERROR.
I can provide logs and everything needed in order to help you investigate the issue.
Forum: Plugins
In reply to: [WooCommerce] Change "Choose an option" with attribute nameHi there again,
I’ve double checked and the path was correct. I was /wp-content/themes/divi-child/woocommerce/single-product/add-to-cart/variable.php
My exact code is:
<table class="variations" cellspacing="0"> <tbody> <?php $variations_arr = array(); foreach ( $attributes as $attribute_name => $options ) : ob_start(); ?> <tr> <td class="label"><label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( $attribute_name ); ?></label></td> <td class="value"> <?php $selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) : $product->get_variation_default_attribute( $attribute_name ); wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) ); echo end( $attribute_keys ) === $attribute_name ? '<a class="reset_variations" style="display: block;" href="#">' . __( 'Clear selection', 'woocommerce' ) . '</a>' : ''; ?> </td> </tr> <?php $variations_ob = ob_get_clean(); $variations_arr[wc_attribute_label($attribute_name)] = $variations_ob; endforeach; foreach ($variations_arr as $name => $ob) { echo str_ireplace('choose an option', 'Choose '.$name, $ob ); } ?> </tbody> </table>
As you can see here, https://www.coolmaison.com/producto/fillin-lamp/ is still saying “Escoge una opción” which means Choose an option in Spanish.
It is strange, because changes like
<a class="reset_variations" <strong>style="display: block;"</strong> href="#">' . __( 'Clear selection', 'woocommerce' ) . '</a>
do apply.Thanks for your time!
Forum: Plugins
In reply to: [WooCommerce] Change "Choose an option" with attribute nameHi there,
Is it possible that this solution doesn’t work anymore in WooCommerce 2.5. I have the same files with the same content, and changing
<?php foreach ( $attributes as $attribute_name => $options ) : ?> <tr> <td class="label"><label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( $attribute_name ); ?></label></td> <td class="value"> <?php $selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) : $product->get_variation_default_attribute( $attribute_name ); wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) ); echo end( $attribute_keys ) === $attribute_name ? '<a class="reset_variations" href="#">' . __( 'Clear selection', 'woocommerce' ) . '</a>' : ''; ?> </td> </tr> <?php endforeach;?>
to what @mrosata posted 4 months ago doesn’t seem to work for me.
I’ve also tried to follow the StockOverFlow post with the same results.
Thanks for your help,
Romeo.