http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab/#.UcjvjJxTBdA
Monthly Archives: June 2013
Add space between currency and price
In theme’s function.php we have this new code:
add_filter(‘woocommerce_currency_symbol’, ‘add_my_currency_symbol’, 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case ‘NOK’: $currency_symbol = ‘kr ‘; break;
}
return $currency_symbol;
}
Where NOK is the name of the currency, as found on /woocommerce/woocommerce-core-functions.php
Anti scraper solutions
jQuery UI touch support
jQuery ui doesn’t have touch support. You should use it with jQuery-ui touch punch.
Just add the script after jQuery ui:
http://code.jquery.com/jquery-1.7.2.min.js
http://code.jquery.com/ui/1.8.21/jquery-ui.min.js
http://jquery.ui.touch-punch.min.js
Get plugin url
$plugin_url = plugins_url( basename( plugin_dir_path(__FILE__) ), basename( __FILE__ ) );