Leandro Martins Guimar?es
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 extension for Google Map fields] Notice messageI’ll have a look at the cf7 Smart Grid.
Thanks, Aurovrata!
Forum: Plugins
In reply to: [Contact Form 7 extension for Google Map fields] Notice messageHello Aurovrata!
I couldn’t find the repo for this plugin before, and that was the reason why I posted this message here. But now I did it the right way, opening a PR on the GitHub. ??
Thanks for your work!
Forum: Plugins
In reply to: WooCommerce Shortcode [sale_products] not showing products?@justravis, try the just released version 2.3.10
Forum: Plugins
In reply to: WooCommerce Shortcode [sale_products] not showing products?As a workaround, add this code to your functions.php:
// DELETE ON SALE TRANSIENTS WHEN POST SAVED
function delete_sale_transients() {
global $post;
if( $post->post_type == 'product' ) {
delete_transient( 'wc_products_onsale' );
}
}
add_action( 'save_post', 'delete_sale_transients' );
And just open and save anyone of your products to refresh cache data.Anyway, we’re still waiting for a better solution from WooCommerce guys.
This solution was originally suggested by “otggamer” here: https://support.woothemes.com/hc/communities/public/questions/201933598-On-sale-products-not-displaying-in-Woocommerce-products-widget
Forum: Plugins
In reply to: [WooCommerce] Problems with pricesTo use comma (or anything else) as decimal separator without problems, just put this in your functions.php:
function site_woocommerce_get_price($price, $product) {
$decimal_sep = wp_specialchars_decode(stripslashes(get_option(‘woocommerce_price_decimal_sep’)), ENT_QUOTES);
if ($decimal_sep != ‘.’)
$price = str_replace($decimal_sep, ‘.’, $price);return $price;
}
add_filter(‘woocommerce_get_price’, ‘site_woocommerce_get_price’, 10, 2);I reported this issue for WooCommerce dev team here: https://github.com/woothemes/woocommerce/issues/3587