303i
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WooCommerce] Show highest price within grouped productHi, i am just starting to program.
Here is my functions.php. Where will I put there?Just above the end of file ‘?>’
Forum: Plugins
In reply to: [Plugin: WooCommerce] Show highest price within grouped productIf you’re using a woothemes theme, just add it in the
“You can add custom functions below”
section of functions.php. Example:
http://puu.sh/7Cuee.pngForum: Plugins
In reply to: [Double Opt-In for Download] Email not sendingThat worked! Thanks!
Forum: Plugins
In reply to: [Double Opt-In for Download] Email not sendingNope, didn’t work, pic of edit:
http://puu.sh/6H4j9.png
Could this be related to the undefined property error?Forum: Plugins
In reply to: [Double Opt-In for Download] Email not sendingRunning a debug, I get these two errors:
Notice: Object of class WP_Error could not be converted to int in /home/e*****/public_html/b*********.com/wp-includes/functions.php on line 2837
Notice: Undefined property: DoifdFormWidget::$options in /home/e*****/public_html/b*********.com/wp-content/plugins/double-opt-in-for-download/includes/class-email.php on line 122
Forum: Plugins
In reply to: [Plugin: WooCommerce] Show highest price within grouped productJust finally managed to fix, here it is if anyone wants to know:
/** * Returns max price for grouped products **/ function wc_grouped_price_html( $price, $product ) { $all_prices = array(); foreach ( $product->get_children() as $child_id ) { $all_prices[] = get_post_meta( $child_id, '_price', true ); } if ( ! empty( $all_prices ) ) { $max_price = max( $all_prices ); } else { $max_price = ''; } $price = '<span class="from">' . _x('From:', 'max_price', 'woocommerce') . ' </span>' . woocommerce_price( $max_price ); return $price; } add_filter( 'woocommerce_grouped_price_html', 'wc_grouped_price_html', 10, 2 );