Showing posts with label woocommerce. Show all posts
Showing posts with label woocommerce. Show all posts

Thursday, September 24, 2015

WC Vendor Allow vendors to view all media

Hi friends
If you are using Wc Vendor plugin and
If you want Allow vendors to view all media library
Step 1 
Please open file in editor
wp-content > plugins > wc-vendors > classes > admin > class-admin-users.php

And find filter 
Filter user attachments so they only see their own attachments 

And remove 
Filter Code under this filter  

Wednesday, August 27, 2014

Add a custom currency / symbol

Hi
To add a custom currency paste this code in your theme functions.php file and replace Currency Name with your currency and symbol with own symbol

add_filter( 'woocommerce_currencies', 'add_my_currency' );
function add_my_currency( $currencies ) {
$currencies['ABC'] = __( 'Currency name', 'woocommerce' );
return $currencies;
}
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'ABC': $currency_symbol = '$'; break;
}
return $currency_symbol; 
}


Enjoy Comments are welcome !!