dpatisserie
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Completely Blank Store PageI think I’ve the same problem:
http://wordpress.org/support/topic/no-image-product-on-products-category-page?replies=1
But I didn’t find yet how to solve it :/
Forum: Plugins
In reply to: [WooCommerce] Removing the 2 prices on variable productsHello,
I found how to solve my problem !
For those who have the same issue:
/**
* This code should be added to functions.php of your theme
**/
add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2);function custom_variation_price( $price, $product ) {
$price = ”;
if ( !$product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) $price .= ‘<span class=”from”>’ . _x(‘From’, ‘min_price’, ‘woocommerce’) . ‘ </span>’;
$price .= woocommerce_price($product->get_price());
if ( $product->max_variation_price && $product->max_variation_price !== $product->min_variation_price ) {
//$price .= ‘<span class=”to”> ‘ . _x(‘to’, ‘max_price’, ‘woocommerce’) . ‘ </span>’;//$price .= woocommerce_price($product->min_variation_price);
}return $price;
}Forum: Plugins
In reply to: [WooCommerce] Removing the 2 prices on variable productsHi,
This one isn’t working also: https://gist.github.com/kloon/8981075
When I put the code in my child theme, all my site is out. Only blank pages.
Any idea ? :/