Tag Archive | woocommerce

Add Currency to Woocommerce

Add this code to your functions.php file:

function add_my_currency( $currencies ) {
$currencies["IDR"] = 'Rupiah';
return $currencies;
add_filter( 'woocommerce_currencies', 'add_my_currency', 10, 1 );

Woocommerce: Change number of products displayed per page

add_filter('loop_shop_per_page', create_function('$cols', 'return 6;'));

Display Product Category Description in Product page on woocommerce

You can use this code to display the product category description:

<?php global $post, $product;
$categ = $product->get_categories();
$term = get_term_by ( 'name' , strip_tags($categ), 'product_cat' );
echo $term->description; ?>