woocommerce-quick-donation.php 16.3 KB
Newer Older
Tech No Freaky's avatar
Tech No Freaky committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
/*  Copyright 2014  Varun Sridharan  (email : varunsridharan23@gmail.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as 
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
    Plugin Name: Woocommerce Quick Donation
    Plugin URI: http://varunsridharan.in/
    Description: Woocommerce Quick Donation
Tech No Freaky's avatar
Tech No Freaky committed
20
    Version: 1.0
Tech No Freaky's avatar
Tech No Freaky committed
21 22 23 24 25 26 27 28 29 30
    Author: Varun Sridharan
    Author URI: http://varunsridharan.in/
    License: GPL2
*/
defined('ABSPATH') or die("No script kiddies please!"); 
define( 'wc_qd_u', plugin_dir_url( __FILE__ ) );
define( 'wc_qd_p', plugin_dir_path( __FILE__ ) );

class wc_quick_donation{
	
Tech No Freaky's avatar
Tech No Freaky committed
31 32
	public $donation_id;
    private $plugin_v;
Tech No Freaky's avatar
Tech No Freaky committed
33 34 35 36 37 38
	
	/**
	 * Setup The Plugin Class
	 */
	function __construct() {
		$this->donation_id = get_option('wc_quick_donation_product_id');
Tech No Freaky's avatar
Tech No Freaky committed
39
        $this->plugin_v = '1.0';
Tech No Freaky's avatar
Tech No Freaky committed
40
		add_shortcode( 'wc_quick_donation', array($this,'shortcode_handler' ));
Tech No Freaky's avatar
Tech No Freaky committed
41 42
        
        add_action( 'post_row_actions', array($this,'protect_donation_product'),99,2);
Tech No Freaky's avatar
Tech No Freaky committed
43 44 45
        add_action( 'get_the_generator_html',  array($this,'generate_meta_tags'), 15, 2 );
        add_action( 'get_the_generator_xhtml', array($this,'generate_meta_tags'), 15, 2 );        
		add_action( 'wp_loaded',array($this,'process_donation'));  
Tech No Freaky's avatar
Tech No Freaky committed
46 47 48 49 50 51
		add_action( 'wc_qd_show_projects_list',array($this,'get_projects_list'));	
    
		add_action( 'woocommerce_checkout_update_order_meta',  array($this,'save_order_id_db'));
        add_action( 'woocommerce_add_order_item_meta',  array($this,'add_order_meta'),99,3);
        
		
Tech No Freaky's avatar
Tech No Freaky committed
52
		add_action( 'woocommerce_admin_order_data_after_billing_address', array($this,'custom_order_details_page_info'), 10, 1 ); 
Tech No Freaky's avatar
Tech No Freaky committed
53
        add_action( 'woocommerce_available_payment_gateways',array($this,'remove_gateway'));
Tech No Freaky's avatar
Tech No Freaky committed
54
        
Tech No Freaky's avatar
Tech No Freaky committed
55
        add_filter('woocommerce_hidden_order_itemmeta',array($this,'hide_core_fields'));
Tech No Freaky's avatar
Tech No Freaky committed
56 57 58
        add_filter( 'woocommerce_get_price', array($this,'get_price'),10,2);
		add_filter( 'woocommerce_get_settings_pages',  array($this,'settings_page') );
		add_filter( 'woocommerce_email_classes',  array($this,'email_classes'));	 
Tech No Freaky's avatar
Tech No Freaky committed
59 60
	}
 
Tech No Freaky's avatar
Tech No Freaky committed
61 62 63 64 65 66 67 68 69 70
    /**
     * Adds Donation Meta Tag
     * @param   String $gen  Refer WP.ORG
     * @param   String $type Refer WP.ORG 
     * @returns String
     * @since 0.4
     */
    public function generate_meta_tags( $gen, $type ) {
        switch ( $type ) {
            case 'html':
Tech No Freaky's avatar
Tech No Freaky committed
71
                $gen .= "\n" . '<meta name="generator" content="WooCommerce Quick Donation '.$this->plugin_v.'">';
Tech No Freaky's avatar
Tech No Freaky committed
72 73
                break;
            case 'xhtml':
Tech No Freaky's avatar
Tech No Freaky committed
74
                $gen .= "\n" . '<meta name="generator" content="WooCommerce Quick Donation '.$this->plugin_v.'" />';
Tech No Freaky's avatar
Tech No Freaky committed
75 76 77 78 79
                break;
        }
        return $gen;
    }    
    
Tech No Freaky's avatar
Tech No Freaky committed
80 81 82 83 84 85 86 87 88 89 90 91
    /**
     * Hides Some Important Fields 
     * @since 1.0
     * @param   [[Type]] $fields [[Description]]
     * @returns [[Type]] [[Description]]
     */
    public function hide_core_fields($fields){
        $fields[] = '_is_donation';
        $fields[] = '_project_details';
        return $fields;
    }
                   
Tech No Freaky's avatar
Tech No Freaky committed
92
	/**
Tech No Freaky's avatar
Tech No Freaky committed
93
	 * Adds Settings Page
Tech No Freaky's avatar
Tech No Freaky committed
94
	 */
Tech No Freaky's avatar
Tech No Freaky committed
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
 	public function settings_page( $settings ) {
		$settings[] = include( wc_qd_p.'woocommerce-quick-donation-settings.php' );  
		return $settings;
	}
	 
	/**
	 * Adds Email Classes
	 */
	public function email_classes($email_classes){
		require_once( wc_qd_p.'woocommerce-quick-donation-email-processing.php' );
		require_once( wc_qd_p.'woocommerce-quick-donation-email-completed.php' );
		$email_classes['wc_quick_donation_processing_donation_email'] = new wc_quick_donation_processing_donation_email();
		$email_classes['wc_quick_donation_completed_donation_email'] = new wc_quick_donation_completed_donation_email();
		return $email_classes;		
	}	
Tech No Freaky's avatar
Tech No Freaky committed
110
	
Tech No Freaky's avatar
Tech No Freaky committed
111 112 113
	/**
	 * Adds Donation Order Meta. [Project Name]
	 * @param [[Type]] $order_id [[Description]]
Tech No Freaky's avatar
Tech No Freaky committed
114 115
	 * @since 0.2
     * @updated 1.0
Tech No Freaky's avatar
Tech No Freaky committed
116
	 */
Tech No Freaky's avatar
Tech No Freaky committed
117 118 119 120 121 122
	public function add_order_meta( $item_id, $values, $cart_item_key) { 
        if($this->donation_id == $values['product_id']){
            global $woocommerce;
            wc_add_order_item_meta( $item_id, "_project_details",$woocommerce->session->projects);	
            wc_add_order_item_meta( $item_id, "_is_donation",'yes');
        }
Tech No Freaky's avatar
Tech No Freaky committed
123
	} 
Tech No Freaky's avatar
Tech No Freaky committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
    
    /**
     * Saves Donation Order ID and adds order notes...
     * @param [[Type]] $order_id [[Description]]
     * @since 1.0
     * @adopedFrom add_order_meta
     */
    public function save_order_id_db($order_id){
        $order = new WC_Order($order_id);
        $items = $order->get_items();
        foreach($items as $item){
            $order_product_id = floatval($item['product_id']);
            if($this->donation_id == $order_product_id){
                $this->update_order_id($order_id);
                $format = sprintf(get_option('wc_quick_donation_order_notes_title'), $woocommerce->session->projects);
                $order->add_order_note($format);
                update_post_meta($order_id,'_is_donation',true);
            }
        }
        unset($order);
        return $order_id;
    }
Tech No Freaky's avatar
Tech No Freaky committed
146
 
Tech No Freaky's avatar
Tech No Freaky committed
147

Tech No Freaky's avatar
Tech No Freaky committed
148
    /**
Tech No Freaky's avatar
Tech No Freaky committed
149
     * Updates Order ID to [wc_quick_donation_ids] when donation is ordered
Tech No Freaky's avatar
Tech No Freaky committed
150 151 152 153
     * @param [int] $order_id [Donation Order ID]
     * @since 1.0
     */
    private function update_order_id($order_id){
Tech No Freaky's avatar
Tech No Freaky committed
154
        $ordersID = get_option('wc_quick_donation_ids');
Tech No Freaky's avatar
Tech No Freaky committed
155 156 157 158 159 160 161
        $save_order_id = array();
        if(empty($ordersID)){
            $save_order_id[] = $order_id;
        } else {
            $save_order_id = json_decode($ordersID,true);
            $save_order_id[] = $order_id;
        }
Tech No Freaky's avatar
Tech No Freaky committed
162
        update_option('wc_quick_donation_ids',json_encode($save_order_id));
Tech No Freaky's avatar
Tech No Freaky committed
163 164
        
    }
Tech No Freaky's avatar
Tech No Freaky committed
165
	
Tech No Freaky's avatar
Tech No Freaky committed
166 167 168 169 170
	/**
	 * Custom Title In Order View Page
	 * @since 1.0
	 */
	public function custom_order_details_page_info($order){
Tech No Freaky's avatar
Tech No Freaky committed
171 172 173 174 175 176
        $is_donation = wc_get_order_item_meta($order->id, '_is_donation');
        if($is_donation === true){
            echo '<p><strong>'.get_option('wc_quick_donation_project_section_title').' :</strong>'.wc_get_order_item_meta($order->id, '_project_details') . '</p>';
        }
        
		
Tech No Freaky's avatar
Tech No Freaky committed
177 178 179
	} 	
	
	
Tech No Freaky's avatar
Tech No Freaky committed
180 181
	 
    
Tech No Freaky's avatar
Tech No Freaky committed
182
	/**
Tech No Freaky's avatar
Tech No Freaky committed
183 184
	 * Get All Enabled And Avaiable Payment Gateway To List In Settings Page
	 * @returns array [Aviable Gateways]
Tech No Freaky's avatar
Tech No Freaky committed
185
	 */
Tech No Freaky's avatar
Tech No Freaky committed
186 187 188 189 190 191 192 193 194
	public function get_payments_gateway(){
		$payment = WC()->payment_gateways->payment_gateways();
		$gateways = array();
		foreach($payment as $gateway){
			if ( $gateway->enabled == 'yes' ){
				$gateways[$gateway->id] = $gateway->title;
			}
		}
		return $gateways;
Tech No Freaky's avatar
Tech No Freaky committed
195 196 197 198 199 200 201 202
	}
	
	
	/**
	 * Check's For Donation Product Exist In Cart
	 * @returns Boolean True|False
	 */
	public function donation_exsits(){
Tech No Freaky's avatar
Tech No Freaky committed
203
		global $woocommerce; 
Tech No Freaky's avatar
Tech No Freaky committed
204 205 206 207 208 209 210 211 212 213 214 215
		if( sizeof($woocommerce->cart->get_cart()) > 0){
			foreach($woocommerce->cart->get_cart() as $cart_item_key => $values){
				$_product = $values['data'];
				if($_product->id == $this->donation_id){
					return true;	
				}				
			}
		}
		return false;
	}	
	
	
Tech No Freaky's avatar
Tech No Freaky committed
216 217 218 219 220 221 222 223 224 225 226 227
	
	/**
	 * Check's For Donation Product Exist In Cart
	 * @returns Boolean True|False
	 */
	public function only_donation_exsits(){
		global $woocommerce;
        if( sizeof($woocommerce->cart->get_cart()) == 1 && $this->donation_exsits()){
			return true;	
		}
		return false;
	}		
Tech No Freaky's avatar
Tech No Freaky committed
228 229 230 231 232 233 234 235 236 237 238 239 240
	/**
	 * Gets Donation Current Price
	 * @param  $price 
	 * @param  $product 
	 * @returns 0 | price
	 */
	public function get_price($price, $product){
		global $woocommerce;
		if($product->id == $this->donation_id){ 
			return isset($woocommerce->session->jc_donation) ? floatval($woocommerce->session->jc_donation) : 0; 
		}
		return $price;
	}	
Tech No Freaky's avatar
Tech No Freaky committed
241
 
Tech No Freaky's avatar
Tech No Freaky committed
242 243 244 245 246 247 248
	
	/**
	 * Process The Given Donation
	 */
	public function process_donation(){
		global $woocommerce;
		
Tech No Freaky's avatar
Tech No Freaky committed
249 250 251
		
		if(isset($_POST['donation_add'])){
			$error = 0;
Tech No Freaky's avatar
Tech No Freaky committed
252
			$found = false;
Tech No Freaky's avatar
Tech No Freaky committed
253
			$donation = isset($_POST['donation_ammount']) ? $_POST['donation_ammount'] : false;
Tech No Freaky's avatar
Tech No Freaky committed
254 255
			$projects = isset($_POST['projects']) && !empty($_POST['projects']) ? $_POST['projects'] : false;
			$_SESSION['wc_qd_projects'] = $projects;  
Tech No Freaky's avatar
Tech No Freaky committed
256 257 258
            $min = get_option('wc_quick_donation_min_required_donation');
            $max = get_option('wc_quick_donation_max_required_donation');

Tech No Freaky's avatar
Tech No Freaky committed
259 260

			if(isset($_POST['projects']) && $_POST['projects'] == '' ){
Tech No Freaky's avatar
Tech No Freaky committed
261
				wc_add_notice(get_option('wc_quick_donation_msg_project_invalid'), 'error' );
Tech No Freaky's avatar
Tech No Freaky committed
262 263 264
				$error += 1;
			}	
			
Tech No Freaky's avatar
Tech No Freaky committed
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
            if(! empty($donation)){
                $donate_price = floatval($donation); 
                if($donate_price != 0 || $donate_price != null){
                    if($donate_price < $min){
                        $message = str_replace(array('{donation_amount}','{min_amount}'),array($donation,$min),get_option('wc_quick_donation_msg_amount_min_required'));
                        wc_add_notice($message, 'error' );
                        $error += 1;
                    }
                    
                    if($donate_price > $max){
                         $message = str_replace(array('{donation_amount}','{max_amount}'),array($donation,$max),get_option('wc_quick_donation_msg_amount_max_allowed'));
                        wc_add_notice($message, 'error' );
                        $error += 1;
                    }
                    
                } else {
                    $message = str_replace('{donation_amount}',$donation,get_option('wc_quick_donation_msg_amount_invalid'));
                    wc_add_notice($message, 'error' );
                    $error += 1;
                }
                
            } else {
                wc_add_notice(get_option('wc_quick_donation_msg_amount_empty'), 'error' );
                $error += 1;
            } 
Tech No Freaky's avatar
Tech No Freaky committed
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
			if($error ==0 ) {
                if($donation >= 0){
                    $woocommerce->session->jc_donation = $donation;
                    $woocommerce->session->projects = $projects; 
                    if( sizeof($woocommerce->cart->get_cart()) > 0){
                        foreach($woocommerce->cart->get_cart() as $cart_item_key=>$values){
                            $_product = $values['data'];
                            if($_product->id == $this->donation_id)
                                $found = true;
                        }

                        if(!$found)
                            $this->add_donation_cart();
                    }else{
                        $this->add_donation_cart();
                    }
                }			
            }
Tech No Freaky's avatar
Tech No Freaky committed
308
		}
Tech No Freaky's avatar
Tech No Freaky committed
309 310
		
 
Tech No Freaky's avatar
Tech No Freaky committed
311 312
	}	
	
Tech No Freaky's avatar
Tech No Freaky committed
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
	/**
	 * Adds Donation Product To Cart
	 */
	private function add_donation_cart(){
		global $woocommerce; 
		$this->remove_cart_items();
		$woocommerce->cart->add_to_cart($this->donation_id);
        $this->redirectCART();
		
	}

	/**
	 * Redirect To Checkout Page After Donation is Added
	 */
	public function redirectCART(){
		global $woocommerce; 
        $redirect_op = get_option('wc_quick_donation_redirect');
        if($redirect_op == 'cart'){
            wp_safe_redirect(WC()->cart->get_cart_url() );exit; 
        } else if($redirect_op == 'checkout'){
            wp_safe_redirect(WC()->cart->get_checkout_url() );exit; 
        }
		 
	}
	
	
	/**
	 * Allowes only selected payment gateway for donation product.
	 * @since 0.2
	 * @access public
	 */
	public function remove_gateway($gateway){ 
		if($this->donation_exsits() &&  $this->only_donation_exsits()){
			$payments = get_option('wc_quick_donation_payment_gateway'); 
			
			if(!empty($payments)){
				foreach($gateway as $val){
					if(! in_array($val->id,$payments)){
						unset($gateway[$val->id]);
					}  
				}
			}
			return $gateway;	
		} 
		return $gateway;	
	}
	
	/**
	 * Removes Cart ITEM if donation is added
	 * @returns Boolean [[Description]]
	 */
Tech No Freaky's avatar
Tech No Freaky committed
364 365 366 367 368 369 370 371 372 373 374
	private function remove_cart_items(){
		$cart_remove = get_option('wc_quick_donation_cart_remove');
		if(isset($cart_remove) && $cart_remove == 'true'){
			global $woocommerce;
			$woocommerce->cart->empty_cart();
			return true;
		}
		return true;
	}


Tech No Freaky's avatar
Tech No Freaky committed
375 376 377 378
	/**
	 * Gets Donation Form.
	 */
	public function wc_qd_form(){
Tech No Freaky's avatar
Tech No Freaky committed
379
		global $woocommerce; 
Tech No Freaky's avatar
Tech No Freaky committed
380
        
Tech No Freaky's avatar
Tech No Freaky committed
381 382 383 384 385 386 387 388 389 390 391 392 393 394
		$donate = isset($woocommerce->session->jc_donation) ? floatval($woocommerce->session->jc_donation) : 0;
		if(!$this->donation_exsits()){  
			unset($woocommerce->session->jc_donation); 
			unset($woocommerce->session->projects); 
		}

		// $donate = jc_round_donation($woocommerce->cart->total ); 
		if(!$this->donation_exsits()){
			$wc_get_template = function_exists('wc_get_template') ? 'wc_get_template' : 'woocommerce_get_template';
			$wc_get_template( 'donation_form.php', array(), '', wc_qd_p . 'template/' ); 
		}
	}	
	 
	
Tech No Freaky's avatar
Tech No Freaky committed
395 396 397
	/**
	 * Generates Select Box For Projects List
	 */
Tech No Freaky's avatar
Tech No Freaky committed
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
	public function get_projects_list(){
			$projects_db = get_option('wc_quick_donation_projects');
		
			if($projects_db){
				$project = explode(',',$projects_db);
				$project_list = '';
				$project_list .= '<option value="" > Select A Project </option>';
				
				foreach($project as $proj){
					$project_list .= '<option value="'.$proj.'" > '.$proj.'</option>';
				}
				
				echo '<select name="projects">'.$project_list.'</select>';
			}
	}
	
	
	/**
	 * wc_quick_donation shortcode Handler
	 */
	public function shortcode_handler(){
		echo $this->wc_qd_form();
	}
	
	
	/**
	 * Install The Plugin
	 */
Tech No Freaky's avatar
Tech No Freaky committed
426
	public static function install() {
Tech No Freaky's avatar
Tech No Freaky committed
427
		$exist = get_option('wc_quick_donation_product_id');
Tech No Freaky's avatar
Tech No Freaky committed
428

Tech No Freaky's avatar
Tech No Freaky committed
429
		if($exist){
Tech No Freaky's avatar
Tech No Freaky committed
430 431 432 433 434 435 436 437
            if ( get_post_status ( $exist ) ) {
                return true;
            } else {
                $post_id = create_donation();
                add_option('wc_quick_donation_product_id',$post_id); 
                add_site_option( 'wc_quick_donation_product_id', $post_id) ;
            }
			
Tech No Freaky's avatar
Tech No Freaky committed
438 439
		} else { 
            $post_id = create_donation();
Tech No Freaky's avatar
Tech No Freaky committed
440
			add_option('wc_quick_donation_product_id',$post_id); 
Tech No Freaky's avatar
Tech No Freaky committed
441
            add_option('wc_quick_donation_ids','');
Tech No Freaky's avatar
Tech No Freaky committed
442 443 444
		    add_site_option( 'wc_quick_donation_product_id', $post_id) ;
		}
	}
Tech No Freaky's avatar
Tech No Freaky committed
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
	
	/**
	* Protects Donation Product By 
	* @filter_user post_row_actions
	* @param  Array $actions Refer WP.org
	* @param  Array $post    Refer WP.org
	* @return Array Refer WP.org
	* @since 1.0
	*/
	public function protect_donation_product($actions,$post) {
		if('product' == $post->post_type) {  
			if($post->ID == $this->donation_id){
				unset($actions['inline hide-if-no-js']);
				unset($actions['trash']);
				unset($actions['duplicate']);
				$actions['trash'] = '<a href="javascript:alert(\'Remove Woocommerce Quick Donation Plugin To Remove This Product \');"> Trash </a>';
				
			}
		}
        return $actions;
	}
Tech No Freaky's avatar
Tech No Freaky committed
466 467
     
}
Tech No Freaky's avatar
Tech No Freaky committed
468

Tech No Freaky's avatar
Tech No Freaky committed
469 470 471 472 473

function create_donation(){
    $userID = 1;
    if(get_current_user_id()){
        $userID = get_current_user_id();
Tech No Freaky's avatar
Tech No Freaky committed
474
    }
Tech No Freaky's avatar
Tech No Freaky committed
475 476 477 478 479 480 481
    $post = array(
        'post_author' => $userID,
        'post_content' => 'Used For Donation',
        'post_status' => 'publish',
        'post_title' => 'Donation',
        'post_type' => 'product',
    );
Tech No Freaky's avatar
Tech No Freaky committed
482

Tech No Freaky's avatar
Tech No Freaky committed
483
    $post_id = wp_insert_post($post);  
Tech No Freaky's avatar
Tech No Freaky committed
484 485 486 487 488 489 490 491 492 493 494 495
    update_post_meta($post_id, '_stock_status', 'instock');
    update_post_meta($post_id, '_tax_status', 'none');
    update_post_meta($post_id, '_tax_class',  'zero-rate');
    update_post_meta($post_id, '_visibility', 'hidden');
    update_post_meta($post_id, '_stock', '');
    update_post_meta($post_id, '_virtual', 'yes');
    update_post_meta($post_id, '_featured', 'no');
    update_post_meta($post_id, '_manage_stock', "no" );
    update_post_meta($post_id, '_sold_individually', "yes" );
    update_post_meta($post_id, '_sku', 'checkout-donation');   			
    return $post_id;
}
Tech No Freaky's avatar
Tech No Freaky committed
496 497 498 499 500 501 502

/**
 * Check if WooCommerce is active 
 * if yes then call the class
 */
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
	register_activation_hook( __FILE__, array( 'wc_quick_donation', 'install' ) );
Tech No Freaky's avatar
Tech No Freaky committed
503 504
	$wc_quick_donation = new wc_quick_donation;
    require(wc_qd_p.'woocommerce-quick-donation-report.php');
Tech No Freaky's avatar
Tech No Freaky committed
505 506
} else {
	add_action( 'admin_notices', 'wc_quick_donation_notice' );
Tech No Freaky's avatar
Tech No Freaky committed
507 508
}

Tech No Freaky's avatar
Tech No Freaky committed
509 510 511
function wc_quick_donation_notice() {
	echo '<div class="error"><p><strong> <i> Woocommerce Quick Donation </i> </strong> Requires <a href="'.admin_url( 'plugin-install.php?tab=plugin-information&plugin=woocommerce').'"> <strong> <u>Woocommerce</u></strong>  </a> To Be Installed And Activated </p></div>';
}
Tech No Freaky's avatar
Tech No Freaky committed
512
?>