Poster: Student Volunteer of 36th IPA Convention and Exhibition
(click on the image to see the high resolution version)
Earth Scientist, Wordpress Developer
Poster: Student Volunteer of 36th IPA Convention and Exhibition
(click on the image to see the high resolution version)
For WP E-Commerce users, to hide/remove decimal point on product price, add this to the bottom of your theme’s functions.php file:
/**
* Hide/Remove Decimal Point on Product Price by http://www.agusmu.com
**/
add_filter( 'wpsc_toggle_display_currency_code', 'amu_hide_decimal_point' );
function amu_hide_decimal_point( $args ) {
$args['display_decimal_point'] = false;
return $args;
}
Mike Jolley (WooCommerce Developer) shared simple but useful snippet yesterday. You can use it to show min-max prices for variations in WooCommerce, rather than the min price only.
/**
* 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 .= '' . _x('From', 'min_price', 'woocommerce') . ' ';
$price .= woocommerce_price($product->get_price());
if ( $product->max_variation_price && $product->max_variation_price !== $product->min_variation_price ) {
$price .= ' ' . _x('to', 'max_price', 'woocommerce') . ' ';
$price .= woocommerce_price($product->max_variation_price);
}
return $price;
}
Source: https://gist.github.com/1600117
The process of scientific discovery is, in effect, a continual flight from wonder.
~ Albert Einstein
I highly recommend to use WordPress SEO plugin, but some people still love All In One SEO Pack plugin. If you want to enable SEO column support for WP E-Commerce Product post type, you can go to Settings – All In One SEO page, check “SEO for Custom Post Types” option, and use shift-click to select “wpsc-product”.

I am an ordinary man who have a great interest in wordpress development, scientific research, and sciences education.
My favorite subjects are geosciences, physics, mathematics, and wordpress.
Enter your email address to subscribe to this blog and receive my new posts by email.
This work by Agus MU is licensed under a Creative Commons Attribution 3.0 Unported License.