Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variable error #20

Open
breadadams opened this issue Apr 23, 2015 · 1 comment
Open

Undefined variable error #20

breadadams opened this issue Apr 23, 2015 · 1 comment

Comments

@breadadams
Copy link

Hey Bass,

I'm getting the following error: Notice: Undefined variable: woocommercetwitterbootstrap in /Applications/MAMP/htdocs [...] on line 300

Here's the exact code I've placed in my functions file:

if( !function_exists( 'wts' ) ):

function wts() {
    wp_deregister_style ( 'woocommerce-twitterbootstrap');
    wp_dequeue_style( 'woocommerce-twitterbootstrap');
    wp_register_style ( 'woocommerce-twitterbootstrap', get_template_directory_uri() . '/woocommerce/wts/css/woocommerce-twitterboostrap.css', 'woocommerce' );
    wp_enqueue_style( 'woocommerce-twitterbootstrap');
}

endif;  
add_action( 'wp_enqueue_scripts', 'wts', 200 ); 

remove_action('admin_menu',array($woocommercetwitterbootstrap,'add_menu'));
add_action('admin_menu','woocommerce_twitterbootstrap_add_menu');
/** * add a menu */ 
   function woocommerce_twitterbootstrap_add_menu() {
     global $woocommercetwitterbootstrap;

     add_theme_page('WooCommerce Twitter Bootstrap Settings', 'WooCommerce Bootstrap', 'manage_options', 'woocommerce-twitterbootstrap', array($woocommercetwitterbootstrap, 'plugin_settings_page'));
} // END public function add_menu()
remove_action('admin_menu', array($woocommercetwitterbootstrap,'add_menu'));

And I copied all files from master.zip to the wts folder inside my themes woocommerce folder.

Any ideas?

@Poggen
Copy link

Poggen commented Oct 18, 2015

Did you solve this, @breadadams?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants