image

Poster: Student Volunteer of 36th IPA Convention and Exhibition

(click on the image to see the high resolution version)

Poster: Student Volunteer of 36th IPA Convention and Exhibition

 

post

WP E-Commerce – Hide/Remove Decimal Point on Product Price

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;
}
quote

Research is what I’m doing when I don’t know what I’m doing.

~Wernher Von Braun

post

WooCommerce – Show min-max prices for variations, rather than the min price only

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

quote

The process of scientific discovery is, in effect, a continual flight from wonder.

~ Albert Einstein

post

WP E-Commerce & All In One SEO – Enable “Product” SEO Column

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”.

WP E-Commerce & All In One Seo Product Seo Column