</td>
		</tr>
		<?php 
if (function_exists('ini_get')) {
    ?>
			<tr>
				<td data-export-label="PHP Post Max Size"><?php 
    _e('PHP Post Max Size', 'woocommerce');
    ?>
:</td>
				<td class="help"><?php 
    echo wc_help_tip(__('The largest filesize that can be contained in one post.', 'woocommerce'));
    ?>
</td>
				<td><?php 
    echo size_format(wc_let_to_num(ini_get('post_max_size')));
    ?>
</td>
			</tr>
			<tr>
				<td data-export-label="PHP Time Limit"><?php 
    _e('PHP Time Limit', 'woocommerce');
    ?>
:</td>
				<td class="help"><?php 
    echo wc_help_tip(__('The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)', 'woocommerce'));
    ?>
</td>
				<td><?php 
    echo ini_get('max_execution_time');
    ?>
 function vtprd_check_memory_limit()
 {
     //from woocommerce/includes/admin/views/html-admin-page-status-report.php
     //******************************
     //v1.1.0.5  added function exists check ==>> pre woo 2.1 can go boom!
     //******************************
     if (function_exists('wc_let_to_num')) {
         $memory = wc_let_to_num(WP_MEMORY_LIMIT);
         if ($memory < 67108864) {
             echo '<strong>WP Memory Limit: ' . sprintf(__('%s - We recommend setting memory to at least 64MB. See: <a href="%s">Increasing memory allocated to PHP</a>', 'woocommerce'), size_format($memory), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP') . '</strong>';
             //echo '<mark class="error">WP Memory Limit: ' . sprintf( __( '%s - We recommend setting memory to at least 64MB. See: <a href="%s">Increasing memory allocated to PHP</a>', 'woocommerce' ), size_format( $memory ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . '</mark>';
         }
     }
     return;
 }
Example #3
0
<h3 id="system">System Configuration</h3>

<?php 
require_once WooCommerce_PDF_Invoices::$plugin_path . "lib/dompdf/dompdf_config.inc.php";
$memory_limit = function_exists('wc_let_to_num') ? wc_let_to_num(WP_MEMORY_LIMIT) : woocommerce_let_to_num(WP_MEMORY_LIMIT);
$server_configs = array("PHP Version" => array("required" => "5.0", "value" => phpversion(), "result" => version_compare(phpversion(), "5.0")), "DOMDocument extension" => array("required" => true, "value" => phpversion("DOM"), "result" => class_exists("DOMDocument")), "PCRE" => array("required" => true, "value" => phpversion("pcre"), "result" => function_exists("preg_match") && @preg_match("/./u", "a"), "failure" => "PCRE is required with Unicode support (the \"u\" modifier)"), "Zlib" => array("required" => true, "value" => phpversion("zlib"), "result" => function_exists("gzcompress"), "fallback" => "Recommended to compress PDF documents"), "MBString extension" => array("required" => true, "value" => phpversion("mbstring"), "result" => function_exists("mb_send_mail"), "fallback" => "Recommended, will use fallback functions"), "GD" => array("required" => true, "value" => phpversion("gd"), "result" => function_exists("imagecreate"), "fallback" => "Required if you have images in your documents"), "opcache" => array("required" => "For better performances", "value" => null, "result" => false, "fallback" => "Recommended for better performances"), "GMagick or IMagick" => array("required" => "Better with transparent PNG images", "value" => null, "result" => extension_loaded("gmagick") || extension_loaded("imagick"), "fallback" => "Recommended for better performances"), "glob()" => array("required" => "Required to detect custom templates and to clear the temp folder periodically", "value" => null, "result" => function_exists("glob"), "fallback" => "Check php disable_functions"), "WP Memory Limit" => array("required" => 'Recommended: 64MB (128MB for optimal performance)<br/>See: <a href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP">Increasing memory allocated to PHP</a>', "value" => WP_MEMORY_LIMIT, "result" => $memory_limit > 67108864));
if (($xc = extension_loaded("xcache")) || ($apc = extension_loaded("apc")) || ($zop = extension_loaded("Zend OPcache")) || ($op = extension_loaded("opcache"))) {
    $server_configs["opcache"]["result"] = true;
    $server_configs["opcache"]["value"] = $xc ? "XCache " . phpversion("xcache") : ($apc ? "APC " . phpversion("apc") : ($zop ? "Zend OPCache " . phpversion("Zend OPcache") : "PHP OPCache " . phpversion("opcache")));
}
if (($gm = extension_loaded("gmagick")) || ($im = extension_loaded("imagick"))) {
    $server_configs["GMagick or IMagick"]["value"] = $im ? "IMagick " . phpversion("imagick") : "GMagick " . phpversion("gmagick");
}
?>

<table cellspacing="1px" cellpadding="4px" style="background-color: white; padding: 5px; border: 1px solid #ccc;">
	<tr>
		<th align="left">&nbsp;</th>
		<th align="left">Required</th>
		<th align="left">Present</th>
	</tr>

	<?php 
foreach ($server_configs as $label => $server_config) {
    if ($server_config["result"]) {
        $background = "#9e4";
        $color = "black";
    } elseif (isset($server_config["fallback"])) {
        $background = "#FCC612";
        $color = "black";
    } else {
/**
 * @deprecated
 */
function woocommerce_let_to_num($size)
{
    return wc_let_to_num($size);
}
 /**
  * Get array of environment information. Includes thing like software
  * versions, and various server settings.
  *
  * @return array
  */
 public function get_environment_info()
 {
     global $wpdb;
     // Figure out cURL version, if installed.
     $curl_version = '';
     if (function_exists('curl_version')) {
         $curl_version = curl_version();
         $curl_version = $curl_version['version'] . ', ' . $curl_version['ssl_version'];
     }
     // WP memory limit
     $wp_memory_limit = wc_let_to_num(WP_MEMORY_LIMIT);
     if (function_exists('memory_get_usage')) {
         $wp_memory_limit = max($wp_memory_limit, wc_let_to_num(@ini_get('memory_limit')));
     }
     // Test POST requests
     $post_response = wp_safe_remote_post('https://www.paypal.com/cgi-bin/webscr', array('timeout' => 60, 'user-agent' => 'WooCommerce/' . WC()->version, 'httpversion' => '1.1', 'body' => array('cmd' => '_notify-validate')));
     $post_response_successful = false;
     if (!is_wp_error($post_response) && $post_response['response']['code'] >= 200 && $post_response['response']['code'] < 300) {
         $post_response_successful = true;
     }
     // Test GET requests
     $get_response = wp_safe_remote_get('https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . (is_multisite() ? '1' : '0'));
     $get_response_successful = false;
     if (!is_wp_error($post_response) && $post_response['response']['code'] >= 200 && $post_response['response']['code'] < 300) {
         $get_response_successful = true;
     }
     // Return all environment info. Described by JSON Schema.
     return array('home_url' => get_option('home'), 'site_url' => get_option('siteurl'), 'version' => WC()->version, 'log_directory' => WC_LOG_DIR, 'log_directory_writable' => @fopen(WC_LOG_DIR . 'test-log.log', 'a') ? true : false, 'wp_version' => get_bloginfo('version'), 'wp_multisite' => is_multisite(), 'wp_memory_limit' => $wp_memory_limit, 'wp_debug_mode' => defined('WP_DEBUG') && WP_DEBUG, 'wp_cron' => !(defined('DISABLE_WP_CRON') && DISABLE_WP_CRON), 'language' => get_locale(), 'server_info' => $_SERVER['SERVER_SOFTWARE'], 'php_version' => phpversion(), 'php_post_max_size' => wc_let_to_num(ini_get('post_max_size')), 'php_max_execution_time' => ini_get('max_execution_time'), 'php_max_input_vars' => ini_get('max_input_vars'), 'curl_version' => $curl_version, 'suhosin_installed' => extension_loaded('suhosin'), 'max_upload_size' => wp_max_upload_size(), 'mysql_version' => !empty($wpdb->is_mysql) ? $wpdb->db_version() : '', 'default_timezone' => date_default_timezone_get(), 'fsockopen_or_curl_enabled' => function_exists('fsockopen') || function_exists('curl_init'), 'soapclient_enabled' => class_exists('SoapClient'), 'domdocument_enabled' => class_exists('DOMDocument'), 'gzip_enabled' => is_callable('gzopen'), 'mbstring_enabled' => extension_loaded('mbstring'), 'remote_post_successful' => $post_response_successful, 'remote_post_response' => is_wp_error($post_response) ? $post_response->get_error_message() : $post_response['response']['code'], 'remote_get_successful' => $get_response_successful, 'remote_get_response' => is_wp_error($get_response) ? $get_response->get_error_message() : $get_response['response']['code']);
 }
Example #6
0
 /**
  * Test wc_let_to_num().
  *
  * @since 2.2
  */
 public function test_wc_let_to_num()
 {
     $sizes = array('10K' => 10240, '10M' => 10485760, '10G' => 10737418240.0, '10T' => 10995116277760.0, '10P' => 1.125899906842624E+16);
     foreach ($sizes as $notation => $size) {
         $this->assertEquals($size, wc_let_to_num($notation));
     }
 }
 /**
  * Get server related info
  * @return array
  */
 private static function get_server_info()
 {
     $server_data = array();
     if (isset($_SERVER['SERVER_SOFTWARE']) && !empty($_SERVER['SERVER_SOFTWARE'])) {
         $server_data['software'] = $_SERVER['SERVER_SOFTWARE'];
     }
     if (function_exists('phpversion')) {
         $server_data['php_version'] = phpversion();
     }
     if (function_exists('ini_get')) {
         $server_data['php_post_max_size'] = size_format(wc_let_to_num(ini_get('post_max_size')));
         $server_data['php_time_limt'] = ini_get('max_execution_time');
         $server_data['php_max_input_vars'] = ini_get('max_input_vars');
         $server_data['php_suhosin'] = extension_loaded('suhosin') ? 'Yes' : 'No';
     }
     global $wpdb;
     $server_data['mysql_version'] = $wpdb->db_version();
     $server_data['php_max_upload_size'] = size_format(wp_max_upload_size());
     $server_data['php_default_timezone'] = date_default_timezone_get();
     $server_data['php_soap'] = class_exists('SoapClient') ? 'Yes' : 'No';
     $server_data['php_fsockopen'] = function_exists('fsockopen') ? 'Yes' : 'No';
     $server_data['php_curl'] = function_exists('curl_init') ? 'Yes' : 'No';
     return $server_data;
 }
Example #8
0
    public function vtprd_deal()
    {
        global $vtprd_rule_template_framework, $vtprd_deal_structure_framework, $vtprd_deal_screen_framework, $vtprd_rule_display_framework, $vtprd_rule, $vtprd_info, $vtprd_setup_options;
        $selected = 'selected="selected"';
        $checked = 'checked="checked"';
        $disabled = 'disabled="disabled"';
        $vtprdNonce = wp_create_nonce("vtprd-rule-nonce");
        //nonce verified in vt-pricing-deals.php
        if (sizeof($vtprd_rule->rule_error_message) > 0) {
            //these error messages are from the last upd action attempt, coming from vtprd-rules-update.php
            $this->vtprd_error_messages();
        }
        $currency_symbol = vtprd_get_currency_symbol();
        //**********************************************************************
        //IE CSS OVERRIDES, done here to ensure they're last in line...
        //**********************************************************************
        echo '<!--[if IE]>';
        echo '<link rel="stylesheet" type="text/css"  media="all" href="' . VTPRD_URL . '/admin/css/vtprd-admin-style-ie.css" />';
        echo '<![endif]-->';
        // end override
        //This Div only shows if there is a JS error in the customer implementation of the plugin, as the JS hides this div, if the JS is active
        //vtprd_show_help_if_js_is_broken();
        ?>
        
        <script type="text/javascript">
        jQuery(document).ready(function($) {
        
        //Spinner gif wasn't working... 
         $('.spinner').append('<img src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/indicator.gif" />');
       
          });   
        </script>
     
       <?php 
        /*
        <div class="hide-by-jquery">
         <span class="">< ?php _e('If you can see this, there is a JavaScript Error on the Page. Hover over this &rarr;', 'vtprd'); ? > </span>
             < ?php vtprd_show_help_tooltip($context = 'onlyShowsIfJSerror', $location = 'title'); ? >
        </div>
        */
        ?>

    <?php 
        //BANNER AND BUTTON AREA
        ?>
                         

    
    <img id="pricing-deals-img-preload" alt="" src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/upgrade-bkgrnd-banner.jpg" />
 		<div id="upgrade-title-area">
      <a  href=" <?php 
        echo VTPRD_PURCHASE_PRO_VERSION_BY_PARENT;
        ?>
 "  title="Purchase Pro">
      <img id="pricing-deals-img" alt="help" height="40px" width="40px" src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/sale-circle.png" />
      </a>      
      <h2>
        <?php 
        _e('Pricing Deals', 'vtprd');
        ?>
        <?php 
        if (defined('VTPRD_PRO_DIRNAME')) {
            _e(' Pro', 'vtprd');
        }
        ?>
    
        
        </h2>  
      
      <?php 
        if (!defined('VTPRD_PRO_DIRNAME')) {
            ?>
 
          <span class="group-power-msg">
            <strong><em><?php 
            _e('Create rules for Any Group you can think of, and More!', 'vtprd');
            ?>
</em></strong>
            <?php 
            /* 
                          - Product Category
                          - Pricing Deal Custom Category
                          - Logged-in Status
                          - Product
                          - Variations!
            */
            ?>
 
          </span> 
          <span class="buy-button-area">
            <a href="<?php 
            echo VTPRD_PURCHASE_PRO_VERSION_BY_PARENT;
            ?>
" class="help tooltip tooltipWide buy-button">
                <span class="buy-button-label"><?php 
            _e('Get Pricing Deals Pro', 'vtprd');
            ?>
</span>
                <b> <?php 
            vtprd_show_help_tooltip_text('upgradeToPro');
            ?>
 </b>
            </a>
          </span> 
      <?php 
        }
        ?>
          
    </div>  

            
      <?php 
        //RULE EXECUTION TYPE
        ?>
 
      <div class="display-virtual_box  top-box">                           
        
        <?php 
        //************************
        ?>
        <?php 
        //HIDDEN FIELDS BEGIN
        ?>
        <?php 
        //************************
        ?>
        <?php 
        //RULE EXECUTION blue-dropdownS - only one actually displays at a time, depending on
        ?>
        <input type="hidden" id="vtprd_nonce" name="vtprd_nonce" value="<?php 
        echo $vtprdNonce;
        ?>
" />
        <?php 
        //Hidden switch to communicate with the JS that the data is 1st time screenful
        ?>
        <input type="hidden" id="firstTimeBackFromServer" name="firstTimeBackFromServer" value="yes" />        
        <input type="hidden" id="upperSelectsFirstTime" name="upperSelectsFirstTime" value="yes" />
        <input type="hidden" id="upperSelectsDoneSw" name="upperSelectsDoneSw" value="" />
        <input type="hidden" id="catalogCheckoutMsg" name="catalogCheckoutMsg" value="<?php 
        echo __('Message unused for Catalog Discount', 'vtprd');
        ?>
" />
        <input type="hidden" id="vtprd-moreInfo" name="vtprd-docTitle" value="<?php 
        _e('More Info', 'vtprd');
        ?>
" /> <?php 
        //v1.0.5 added 2nd button
        ?>
        <input type="hidden" id="vtprd-docTitle" name="vtprd-docTitle" value="<?php 
        _e('- Help! -', 'vtprd');
        ?>
" />         
        <?php 
        /*
         Assign a numeric value to the switch
           showing HOW MANY selects have data
             on 1st return from server...
        */
        $data_sw = '0';
        //test the Various group filter selects and set a value...
        switch (true) {
            case $vtprd_rule->get_group_filter_select > ' ' && $vtprd_rule->get_group_filter_select != 'choose':
                $data_sw = '5';
                break;
            case $vtprd_rule->buy_group_filter_select > ' ' && $vtprd_rule->buy_group_filter_select != 'choose':
                $data_sw = '4';
                break;
            case $vtprd_rule->minimum_purchase_select > ' ' && $vtprd_rule->minimum_purchase_select != 'choose':
                $data_sw = '3';
                break;
            case $vtprd_rule->pricing_type_select > ' ' && $vtprd_rule->pricing_type_select != 'choose':
                $data_sw = '2';
                break;
            case $vtprd_rule->cart_or_catalog_select > ' ' && $vtprd_rule->cart_or_catalog_select != 'choose':
                $data_sw = '1';
                break;
        }
        /*  upperSelectsHaveDataFirstTime has values from 0 => 5
            value = 0  no previous data saved 
            value = 1  last run got to:  cart_or_catalog_select
            value = 2  last run got to:  pricing_type_select
            value = 3  last run got to:  minimum_purchase_select
            value = 4  last run got to:  buy_group_filter_select
            value = 5  last run got to:  get_group_filter_select
            */
        ?>
        <input type="hidden" id="upperSelectsHaveDataFirstTime" name="upperSelectsHaveDataFirstTime" value="<?php 
        echo $data_sw;
        ?>
" />
        
        <input type="hidden" id="templateChanged" name="templateChanged" value="no" /> 
        
        <?php 
        //Statuses used for switching of the upper dropdowns
        ?>
        <input type="hidden" id="select_status_sw"  name="select_status_sw"  value="no" />
        <input type="hidden" id="chg_detected_sw"  name="chg_detected_sw"    value="no" />   <?php 
        //v1.0.7.6
        ?>
        
        <?php 
        //pass these two messages up to JS, translated here if necessary
        ?>
        <input type="hidden" id="fullMsg" name="fullMsg" value="<?php 
        echo $vtprd_info['default_full_msg'];
        ?>
" />    
        <input type="hidden" id="shortMsg" name="shortMsg" value="<?php 
        echo $vtprd_info['default_short_msg'];
        ?>
" /> 
  
        <input id="pluginVersion" type="hidden" value="<?php 
        if (defined('VTPRD_PRO_DIRNAME')) {
            echo "proVersion";
        } else {
            echo "freeVersion";
        }
        ?>
" name="pluginVersion" />  
        <input id="rule_template_framework" type="hidden" value="<?php 
        echo $vtprd_rule->rule_template;
        ?>
" name="rule_template_framework" />
              
           
        <?php 
        //************************
        ?>
        <?php 
        //HIDDEN FIELDS END
        ?>
        <?php 
        //************************
        ?>

        <div class="template-area clear-left">  
          
          <div class="clear-left" id="blue-area-title-line"> 
              <img id="blue-area-title-icon" src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/tab-icons.png" width="1" height="1" />
              <span class="section-headings column-width2" id="blue-area-title">  <?php 
        _e('Blueprint', 'vtprd');
        ?>
</span>             
          </div>
          
          <div class="clear-left" id="first-blue-line">                          
                                                                             
              <span class="left-column  left-column-nothing-on-top">                              
                 <?php 
        //mwn20140414 added id
        ?>
                 <label id="cart-or-catalog-select-label" class="hasWizardHelpRight"  for="<?php 
        echo $vtprd_rule_display_framework['cart_or_catalog_select']['label']['for'];
        ?>
"><?php 
        echo $vtprd_rule_display_framework['cart_or_catalog_select']['label']['title'];
        ?>
</label>  
                 <?php 
        vtprd_show_object_hover_help('cart_or_catalog_select', 'wizard');
        ?>
 
              </span>
              <span class="blue-dropdown  right-column" id="cart-or-catalog-select-area">
                 <select id="<?php 
        echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['name'];
        ?>
" tabindex="<?php 
        echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['tabindex'];
        ?>
" >          
                   <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cart_or_catalog_select']['option']); $i++) {
            ?>
                             
                      <option id="<?php 
            echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['value'] == $vtprd_rule->cart_or_catalog_select) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['title'];
            ?>
 </option>
                   <?php 
        }
        ?>
 
                 </select> 
                  <span class="shortIntro  shortIntro2"  id="buy_group_filter_comment">
                    <em><?php 
        _e('Where is the discount', 'vtprd');
        ?>
</em>
                    <br>
                    <em><?php 
        _e('taken first?', 'vtprd');
        ?>
</em>
                    &nbsp;
                    <img class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" />
                    <?php 
        vtprd_show_object_hover_help('cart_or_catalog_select', 'small');
        ?>
                  </span>                                        
              </span>
       
          </div> <?php 
        //end blue-line
        ?>
  
            
          <div class="blue-line  clear-left">                                  
               <span class="left-column  left-column-less-padding-top3">                              
                 <?php 
        //mwn20140414 added id
        ?>
                 <label id="pricing-type-select-label" class="hasWizardHelpRight"   for="<?php 
        echo $vtprd_rule_display_framework['pricing_type_select']['label']['for'];
        ?>
"><?php 
        echo $vtprd_rule_display_framework['pricing_type_select']['label']['title'];
        ?>
</label>
                 <?php 
        vtprd_show_object_hover_help('pricing_type_select', 'wizard');
        ?>
 
               </span>
               <span class="blue-dropdown  right-column" id="pricing-type-select-area">   
                 <select id="<?php 
        echo $vtprd_rule_display_framework['pricing_type_select']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['pricing_type_select']['select']['class'];
        ?>
  " name="<?php 
        echo $vtprd_rule_display_framework['pricing_type_select']['select']['name'];
        ?>
" tabindex="<?php 
        echo $vtprd_rule_display_framework['pricing_type_select']['select']['tabindex'];
        ?>
" >          
                   <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['pricing_type_select']['option']); $i++) {
            ?>
                             
                      <option id="<?php 
            echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['pricing_type_select']['option'][$i]['value'] == $vtprd_rule->pricing_type_select) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['title'];
            ?>
 </option>
                   <?php 
        }
        ?>
 
                 </select>  
                  <span class="shortIntro  shortIntro2"  id="buy_group_filter_comment">
                      <span class="">
                          <em><?php 
        _e("What kind of Deal is it?", 'vtprd');
        ?>
</em>
                          &nbsp;
                          <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" />  
                          <?php 
        vtprd_show_object_hover_help('pricing_type_select', 'small');
        ?>
                      </span>                   
                      <br>
                      <a class="commentURL" target="_blank" href="http://www.varktech.com/documentation/pricing-deals/examples"><?php 
        _e('Deal Examples', 'vtprd');
        ?>
</a>                
                  </span>                                                          
               </span> 
          </div> <?php 
        //end blue-line
        ?>
              
          <div class="blue-line  clear-left">  
               <span class="left-column  left-column-less-padding-top3">                                            
                 <?php 
        //mwn20140414 added id
        ?>
                 <label id="minimum-purchase-select-label" class="hasWizardHelpRight" for="<?php 
        echo $vtprd_rule_display_framework['minimum_purchase_select']['label']['for'];
        ?>
"><?php 
        echo $vtprd_rule_display_framework['minimum_purchase_select']['label']['title'];
        ?>
</label>
                 <?php 
        vtprd_show_object_hover_help('minimum_purchase_select', 'wizard');
        ?>
 
               </span>
               <span class="blue-dropdown  blue-dropdown-minimum  right-column" id="minimum-purchase-select-area">  
                 <select id="<?php 
        echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['class'];
        ?>
  " name="<?php 
        echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['name'];
        ?>
" tabindex="<?php 
        echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['tabindex'];
        ?>
" >          
                   <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['minimum_purchase_select']['option']); $i++) {
            ?>
                             
                      <option id="<?php 
            echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['value'] == $vtprd_rule->minimum_purchase_select) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['title'];
            ?>
 </option>
                   <?php 
        }
        ?>
 
                 </select>
                  <span class="shortIntro  shortIntro2"  id="buy_group_filter_comment">
                    <em>
                    <?php 
        _e('Buy this,', 'vtprd');
        ?>
                    <br>
                    <?php 
        _e('Discount this?', 'vtprd');
        ?>
                    </em>
                    &nbsp;
                    <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" />                
                    <?php 
        vtprd_show_object_hover_help('minimum_purchase_select', 'small');
        ?>
                  </span>                                          
              </span>         
          </div> <?php 
        //end blue-line
        ?>
  
              
          <div class="blue-line  blue-line-less-top  clear-left">
              <span class="left-column">                                                      
                <label class="scheduling-label hasWizardHelpRight" id="scheduling-label-item"><?php 
        _e('Deal Schedule', 'vtprd');
        ?>
</label>   
                <?php 
        vtprd_show_object_hover_help('scheduling', 'wizard');
        ?>
              </span>
              <span class="blue-dropdown  scheduling-group  right-column" id="scheduling-area">   
                <span class="date-line" id='date-line-0'>                               
                <?php 
        //   <label class="scheduling-label">Scheduling</label>
        ?>
                                              
                    <span class="date-line-area">  
                      <?php 
        $this->vtprd_rule_scheduling();
        ?>
 
                    </span> 
                    <span class="on-off-switch">                              
                    <?php 
        //     <label for="rule-state-select">On/Off Switch</label>
        ?>
 
                       <select id="<?php 
        echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['name'];
        ?>
" tabindex="<?php 
        echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['tabindex'];
        ?>
" >          
                         <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['rule_on_off_sw_select']['option']); $i++) {
            ?>
                             
                            <option id="<?php 
            echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['value'] == $vtprd_rule->rule_on_off_sw_select) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['title'];
            ?>
 </option>
                         <?php 
        }
        ?>
 
                       </select>                        
                    </span>                                
                </span> 
                   

                  <span class="shortIntro"  id="buy_group_filter_comment">
                    <em>
                    <?php 
        _e('Active When?', 'vtprd');
        ?>
                    <br>
                    <?php 
        _e('On or Off?', 'vtprd');
        ?>
                    </em>
                    &nbsp;
                    <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                    <?php 
        vtprd_show_object_hover_help('scheduling', 'small');
        ?>
                  </span>                                                      
              </span>      
          </div> <?php 
        //end blue-line
        ?>
                
          <div class="blue-line  clear-left">
              <span class="left-column">                                                      
                &nbsp;
              </span>
              <span class="right-column">       

                  <span class="blue-dropdown  rule-type" id="rule-type-select-area"> 
                      <label class="rule-type-label  hasWizardHelpRight"><?php 
        _e('Show Me', 'vtprd');
        ?>
</label> 
                      <?php 
        vtprd_show_object_hover_help('rule-type-select', 'wizard');
        ?>
                      <span id="rule-type-info" class="clear-left">                    
                        <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['rule-type-select']); $i++) {
            ?>
                               
                            <input id="<?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['id'];
            ?>
" class="<?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['class'];
            ?>
" type="<?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['type'];
            ?>
" name="<?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['name'];
            ?>
" value="<?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['value'];
            ?>
" <?php 
            if ($vtprd_rule_display_framework['rule-type-select'][$i]['value'] == $vtprd_rule->rule_type_select) {
                echo $checked;
            }
            ?>
    /><span id="<?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['id'] . '-label';
            ?>
"> <?php 
            echo $vtprd_rule_display_framework['rule-type-select'][$i]['label'];
            ?>
</span> 
                        <?php 
        }
        ?>
                    
                      </span>
                                        
                  </span>
                   <span class="blue-dropdown wizard-type" id="wizard-select-area"> 
                      <label class="wizard-type-label"><?php 
        _e('Hover Help', 'vtprd');
        ?>
</label> 
                      
                         <select id="<?php 
        echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['class'];
        ?>
  hasHoverHelp2" name="<?php 
        echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['name'];
        ?>
" tabindex="<?php 
        echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['tabindex'];
        ?>
" >          
                           <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['wizard_on_off_sw_select']['option']); $i++) {
            ?>
                             
                              <option id="<?php 
            echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['value'] == $vtprd_rule->wizard_on_off_sw_select) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['title'];
            ?>
 </option>
                           <?php 
        }
        ?>
 
                         </select> 
                         <?php 
        vtprd_show_object_hover_help('hover-help', 'small');
        ?>
                   </span>                              
                     
              </span>
          </div> <?php 
        //end blue-line
        ?>
                
          <?php 
        //v1.0.9.0 begin
        $memory = wc_let_to_num(WP_MEMORY_LIMIT);
        if ($memory < 67108864) {
            //test for 64mb
            ?>
          <div class="blue-line  clear-left"> 
              <span class="left-column">                                                      
                &nbsp;
              </span>
              <span class="right-column"> 
    			     <?php 
            echo 'WP Memory Limit: ' . sprintf(__('%s - We recommend setting memory to at least 64MB. See: <a href="%s">Increasing memory allocated to PHP</a>', 'woocommerce'), size_format($memory), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP');
            ?>
 
              </span>                 
          </div> <?php 
            //end blue-line
            ?>
          <?php 
        }
        //v1.0.9.0 end
        ?>
          
          
      </div> <?php 
        //end template-area
        ?>
                       

     </div> <?php 
        //end top-box
        ?>
                
     
  <div class="display-virtual_box hideMe" id="lower-screen-wrapper" >

  
      <?php 
        //****************
        //DEAL INFO GROUP
        //****************
        ?>
 
 
     <div class="display-virtual_box  clear-left" id="rule_deal_info_group">  
                       
      <?php 
        // for($k=0; $k < sizeof($vtprd_rule->rule_deal_info[$k]); $k++) {
        ?>
 
      <?php 
        for ($k = 0; $k < sizeof($vtprd_rule->rule_deal_info); $k++) {
            ?>
         
      <div class="display-virtual_box rule_deal_info" id="rule_deal_info_line<?php 
            echo '_' . $k;
            ?>
">   
        <div class="display-virtual_box" id="buy_info<?php 
            echo '_' . $k;
            ?>
">  
         
           <input id="hiddenDealInfoLine<?php 
            echo '_' . $k;
            ?>
" type="hidden" value="lineActive" name="dealInfoLine<?php 
            echo '_' . $k;
            ?>
" />

           <?php 
            //*****************************************************
            //set the switch used on the screen for JS data check
            //*****************************************************
            ?>
           <?php 
            //end switch **************************************
            ?>
 

         <div class="screen-box buy_group_title_box">
            <span class="buy_group_title-area">
              <img class="buy_amt_title_icon" src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/tab-icons.png" width="1" height="1" />              
              
              <?php 
            //EITHER / OR TITLE BASED ON DISCOUNT PRICING TYPE
            ?>
              <span class="section-headings first-level-title showBuyAsDiscount" id="buy_group_title_asDiscount">
                <?php 
            _e('Buy Group ', 'vtprd');
            ?>
<span class="label-no-cap this-is-the-discount">&nbsp;&nbsp;<?php 
            _e('(Discounted Group)', 'vtprd');
            ?>
</span>
              </span>
              <span class="section-headings first-level-title showBuyAsBuy" id="buy_group_title_asBuy">
                <?php 
            _e('Buy Group', 'vtprd');
            ?>
              </span>          
            </span>
            <span class="column-heading-titles">              
                <span class="column-heading-titles-type"><?php 
            // _e('Type', 'vtprd');
            ?>
</span>   <span class="column-heading-titles-count"><?php 
            // _e('Count', 'vtprd');
            ?>
</span>
            </span>   
         </div><!-- //buy_group_title_box --> 
 

         <div class="screen-box buy_group_box" id="buy_group_box<?php 
            echo '_' . $k;
            ?>
" >
            <span class="left-column">
                <span class="title  hasWizardHelpRight" id="buy_group_title">
                  <a id="buy_group_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php 
            _e('Group Product Filter', 'vtprd');
            ?>
</span><span class="showBuyAsDiscount"><?php 
            _e('Group Product Filter', 'vtprd');
            ?>
</span> </a>                    
                  <span class="required-asterisk">* </span>                    
                </span>
                <?php 
            vtprd_show_object_hover_help('inPop', 'wizard');
            ?>
 
                 
            </span>
            
            <span class="dropdown  buy_group  right-column" id="buy_group_dropdown">              
               <select id="<?php 
            echo $vtprd_rule_display_framework['inPop']['select']['id'];
            ?>
" class="<?php 
            echo $vtprd_rule_display_framework['inPop']['select']['class'];
            ?>
 " name="<?php 
            echo $vtprd_rule_display_framework['inPop']['select']['name'];
            ?>
" tabindex="<?php 
            //echo $vtprd_rule_display_framework['inPop']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_rule_display_framework['inPop']['option']); $i++) {
                //pick up the free/pro version of the title => in this case, title and title3
                $title = $vtprd_rule_display_framework['inPop']['option'][$i]['title'];
                if (defined('VTPRD_PRO_DIRNAME') && $vtprd_rule_display_framework['inPop']['option'][$i]['title3'] > ' ') {
                    $title = $vtprd_rule_display_framework['inPop']['option'][$i]['title3'];
                }
                ?>
                             
                    <option id="<?php 
                echo $vtprd_rule_display_framework['inPop']['option'][$i]['id'];
                ?>
"  class="<?php 
                echo $vtprd_rule_display_framework['inPop']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_rule_display_framework['inPop']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_rule_display_framework['inPop']['option'][$i]['value'] == $vtprd_rule->inPop) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $title;
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select> 
               
                           
               <span class="buy_group_line_remainder_class" id="buy_group_line_remainder">   
                  <?php 
            $this->vtprd_buy_group_cntl();
            ?>
 
               </span>                
               
               <?php 
            /* v1.1 "Product must be in the Filter Group" messaging removed!  */
            ?>
                                          
                                        
            </span>                                                                          

         </div><!-- //buy_group_box -->
        
                     
         <div class="screen-box buy_amt_box_class<?php 
            echo '_' . $k;
            ?>
" id="buy_amt_box<?php 
            echo '_' . $k;
            ?>
" >
            
            <span class="left-column">
                <span class="title hasWizardHelpRight" id="buy_amt_title<?php 
            echo '_' . $k;
            ?>
 ">
                  <a id="buy_amt_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php 
            _e('Group Amount', 'vtprd');
            ?>
</span><span class="showBuyAsDiscount"><?php 
            _e('Group Amount', 'vtprd');
            ?>
</span>
                  </a>
                  <span class="required-asterisk">*</span>                      
                </span> 
                <?php 
            vtprd_show_object_hover_help('buy_amt_type', 'wizard');
            ?>
                                             
            </span>                
 
            <span class="dropdown  buy_amt  right-column" id="buy_amt_dropdown<?php 
            echo '_' . $k;
            ?>
">              
               <select id="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_type']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_type']['select']['class'];
            ?>
  " name="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_type']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_type']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_amt_type']['option']); $i++) {
                $this->vtprd_change_title_currency_symbol('buy_amt_type', $i, $currency_symbol);
                ?>
                             
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_amt_type']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
                   
                </select>  
                
                            
                 <span class="buy_amt_line_remainder  buy_amt_line_remainder_class<?php 
            echo '_' . $k;
            ?>
" id="buy_amt_line_remainder<?php 
            echo '_' . $k;
            ?>
">   
                     <span class="amt-field buy_amt_count" id="buy_amt_count_area<?php 
            echo '_' . $k;
            ?>
">
                       <input id="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['buy_amt_count'];
            ?>
" />
                     </span>

                 </span> 
           
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('Buy how many / how much', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('to get access to the Deal?', 'vtprd');
            ?>
                  </em> 
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                 <?php 
            vtprd_show_object_hover_help('buy_amt_type', 'small');
            ?>
               </span>                               
                                            
            </span>
            
         </div><!-- //buy_amt_box -->


                  
         <div class="screen-box  buy_amt_box_appliesto_class<?php 
            echo '_' . $k;
            ?>
  buy_amt_line_remainder  clear-left" id="buy_amt_box_appliesto<?php 
            echo '_' . $k;
            ?>
" > 
            <span class="show-in-adanced-mode-only">
                <span class="left-column  left-column-less-padding-top3">  
                    <span class="title  hasWizardHelpRight" id="buy_amt_type_title<?php 
            echo '_' . $k;
            ?>
" >            
                      <a id="buy_amt_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors second-level-title" href="javascript:void(0);"><?php 
            _e('Group Amount', 'vtprd');
            echo '<br>';
            _e('Applies to', 'vtprd');
            ?>
</a>
                    </span> 
                    <?php 
            vtprd_show_object_hover_help('buy_amt_applies_to', 'wizard');
            ?>
           
                </span> 
                

                <span class="dropdown  right-column">                           
                     <select id="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['tabindex'];
            ?>
" >          
                       <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_amt_applies_to']['option']); $i++) {
                ?>
                             
                          <option id="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_amt_applies_to']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['title'];
                ?>
 </option>
                       <?php 
            }
            ?>
 
                     </select>
                    
                               
                   <span class="shortIntro" >
                      <em>
                      <?php 
            _e('How is the Buy', 'vtprd');
            ?>
                      </em><br>
                      <em>
                      <?php 
            _e('Group Amount counted?', 'vtprd');
            ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                     <?php 
            vtprd_show_object_hover_help('buy_amt_applies_to', 'small');
            ?>
                   </span>                               
                                  
                </span>
                                         
           </span>
        </div><!-- //buy_amt_box_appliesto -->


                    
         <div class="screen-box buy_amt_mod_box  buy_amt_mod_box_class<?php 
            echo '_' . $k;
            ?>
" id="buy_amt_mod_box<?php 
            echo '_' . $k;
            ?>
" > 
            <span class="left-column">
                <span class="title  third-level-title  hasWizardHelpRight" id="buy_amt_mod_title<?php 
            echo '_' . $k;
            ?>
" >
                  <a id="buy_amt_mod_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors third-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php 
            _e('Min / Max', 'vtprd');
            ?>
</span><span class="showBuyAsDiscount"><?php 
            _e('Min / Max', 'vtprd');
            ?>
</span></a> 
                </span>
                <?php 
            vtprd_show_object_hover_help('buy_amt_mod', 'wizard');
            ?>
            </span>
            <span class="dropdown  buy_amt_mod  right-column" id="buy_amt_mod_dropdown<?php 
            echo '_' . $k;
            ?>
">              
               <select id="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_amt_mod']['option']); $i++) {
                $this->vtprd_change_title_currency_symbol('buy_amt_mod', $i, $currency_symbol);
                ?>
                             
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_amt_mod']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select>
               
               
               <span class="amt-field  buy_amt_mod_count_area  buy_amt_mod_count_area_class<?php 
            echo '_' . $k;
            ?>
" id="buy_amt_mod_count_area<?php 
            echo '_' . $k;
            ?>
">
                 <input id="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['buy_amt_mod_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['buy_amt_mod_count'];
            ?>
" />
               </span>   
            
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('Put an upper or lower ', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('limit on the Buy Group', 'vtprd');
            ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                 <?php 
            vtprd_show_object_hover_help('buy_amt_mod', 'small');
            ?>
               </span>                               
             
            </span>
                          
         </div><!-- //buy_amt_mod_box -->


                    
          <div class="screen-box buy_repeat_box  buy_repeat_box_class<?php 
            echo '_' . $k;
            ?>
" id="buy_repeat_box<?php 
            echo '_' . $k;
            ?>
" >     <?php 
            //Rule repeat shifted to end of action area, although processed first
            ?>
 
            <span class="left-column">
                <span class="title  third-level-title  hasWizardHelpRight" id="buy_repeat_title<?php 
            echo '_' . $k;
            ?>
 ">
                   <a id="buy_repeat_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors third-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php 
            echo __('Rule Usage Count', 'vtprd');
            ?>
</span><span class="showBuyAsDiscount"><?php 
            echo __('Rule Usage Count', 'vtprd');
            ?>
</span></a>
                   <span class="required-asterisk">* </span>
                </span>
                <?php 
            vtprd_show_object_hover_help('buy_repeat_condition', 'wizard');
            ?>
            </span>
            
            <span class="dropdown buy_repeat right-column" id="buy_repeat_dropdown<?php 
            echo '_' . $k;
            ?>
">              
               <select id="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_repeat_condition']['option']); $i++) {
                ?>
                             
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_repeat_condition']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select>
               
                             
               <span class="amt-field  buy_repeat_count_area  buy_repeat_count_area_class<?php 
            echo '_' . $k;
            ?>
" id="buy_repeat_count_area<?php 
            echo '_' . $k;
            ?>
">              
                 <input id="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['buy_repeat_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['buy_repeat_count'];
            ?>
" />                
               </span>
                        
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('How many times can the Rule ', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('be used per Cart?', 'vtprd');
            ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                  <?php 
            vtprd_show_object_hover_help('buy_repeat_condition', 'small');
            ?>
               </span>                               
                       
            </span>
                     
         </div><!-- //buy_repeat_box --> 
          
        </div><!-- //buy_info -->
           
        <?php 
            //ACtion INFO
            ?>
        
        
        <div class="display-virtual_box action_info" id="action_info<?php 
            echo '_' . $k;
            ?>
"> 
          <span class="box-border-line" id="line-above-action-info">&nbsp;</span>
         <div class="screen-box get_group_title_box">
            <span class="get_group_title-area">
              <img class="get_amt_title_icon" src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/tab-icons.png" width="1" height="1" />              
              <span class="section-headings first-level-title showGetAsDiscount" id="get_group_title_active">
                <?php 
            _e('Get Group ', 'vtprd');
            ?>
<span class="label-no-cap">&nbsp;&nbsp;<?php 
            _e('(Discounted Group)', 'vtprd');
            ?>
</span>
              </span>
              <span class="section-headings first-level-title showGetAsGet" id="get_group_title_inactive">
                <?php 
            _e('Get Group ', 'vtprd');
            ?>
<span class="label-no-cap">&nbsp;&nbsp;<?php 
            _e('(Inactive)', 'vtprd');
            ?>
</span>
              </span>
              
            </span>
         </div><!-- //get_group_title_box --> 



         <div class="screen-box action_group_box" id="action_group_box<?php 
            echo '_' . $k;
            ?>
" >
            <span class="left-column">
                <span class="title  hasWizardHelpRight" id="action_group_title">
                  <a id="action_group_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php 
            _e('Group Product Filter', 'vtprd');
            ?>
</span><span class="showGetAsDiscount"><?php 
            _e('Group Product Filter', 'vtprd');
            ?>
</span></a>
                  <span class="required-asterisk">*</span>
                </span> 
                <?php 
            vtprd_show_object_hover_help('actionPop', 'wizard');
            ?>
      
            </span>
             
            <span class="dropdown action_group right-column" id="action_group_dropdown_0">              
               <select id="<?php 
            echo $vtprd_rule_display_framework['actionPop']['select']['id'];
            ?>
" class="<?php 
            echo $vtprd_rule_display_framework['actionPop']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_rule_display_framework['actionPop']['select']['name'];
            ?>
" tabindex="<?php 
            //echo $vtprd_rule_display_framework['actionPop']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_rule_display_framework['actionPop']['option']); $i++) {
                //pick up the free/pro version of the title => in this case, title and title3
                $title = $vtprd_rule_display_framework['actionPop']['option'][$i]['title'];
                if (defined('VTPRD_PRO_DIRNAME') && $vtprd_rule_display_framework['actionPop']['option'][$i]['title3'] > ' ') {
                    $title = $vtprd_rule_display_framework['actionPop']['option'][$i]['title3'];
                }
                ?>
                             
                    <option id="<?php 
                echo $vtprd_rule_display_framework['actionPop']['option'][$i]['id'];
                ?>
"  class="<?php 
                echo $vtprd_rule_display_framework['actionPop']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_rule_display_framework['actionPop']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_rule_display_framework['actionPop']['option'][$i]['value'] == $vtprd_rule->actionPop) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $title;
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select> 
               
                           
               <span class="action_group_line_remainder_class" id="action_group_line_remainder">   
                <?php 
            $this->vtprd_action_group_cntl();
            ?>
 
               </span>
               
               <?php 
            /* v1.1 "Product must be in the Filter Group" messaging removed!  */
            ?>
                               
                    
            </span>

         </div><!-- //action_group_box -->

                   
         <div class="screen-box action_amt_box  action_amt_box_class<?php 
            echo '_' . $k;
            ?>
" id="action_amt_box<?php 
            echo '_' . $k;
            ?>
" > 
            <span class="left-column">  
                <span class="title  hasWizardHelpRight" id="action_amt_type_title<?php 
            echo '_' . $k;
            ?>
" >            
                  <a id="action_amt_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php 
            _e('Group Amount', 'vtprd');
            ?>
</span><span class="showGetAsDiscount"><?php 
            _e('Group Amount', 'vtprd');
            ?>
</span></a>
                  <span class="required-asterisk">*</span>
                </span>
                <?php 
            vtprd_show_object_hover_help('action_amt_type', 'wizard');
            ?>
                                
            </span> 
            <span class="dropdown action_amt right-column" id="action_amt_dropdown<?php 
            echo '_' . $k;
            ?>
">              
               <select id="<?php 
            echo $vtprd_deal_screen_framework['action_amt_type']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_amt_type']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_amt_type']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            echo $vtprd_deal_screen_framework['action_amt_type']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_amt_type']['option']); $i++) {
                $this->vtprd_change_title_currency_symbol('action_amt_type', $i, $currency_symbol);
                ?>
                            
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['action_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_amt_type']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select>              
               
              
               <span class="action_amt_line_remainder  action_amt_line_remainder_class<?php 
            echo '_' . $k;
            ?>
" id="action_amt_line_remainder<?php 
            echo '_' . $k;
            ?>
">
                   <span class="amt-field action_amt_count" id="action_amt_count_pair<?php 
            echo '_' . $k;
            ?>
">
                     <input id="<?php 
            echo $vtprd_deal_screen_framework['action_amt_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_amt_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['action_amt_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_amt_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['action_amt_count'];
            ?>
" />
                   </span>                                                    
               </span>  
           
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('Get how many / how much', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('to get access to the Deal?', 'vtprd');
            ?>
                  </em> 
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                 <?php 
            vtprd_show_object_hover_help('action_amt_type', 'small');
            ?>
               </span>                               
                                          
            </span>

        </div><!-- //action_amt_box -->

                  
         <div class="screen-box action_amt_box_appliesto_class<?php 
            echo '_' . $k;
            ?>
  action_amt_line_remainder clear-left  " id="action_amt_box_appliesto<?php 
            echo '_' . $k;
            ?>
" > 
            <span class="show-in-adanced-mode-only">
                <span class="left-column  left-column-less-padding-top3">  
                    <span class="title  hasWizardHelpRight" id="action_amt_type_title<?php 
            echo '_' . $k;
            ?>
" >            
                      <a id="action_amt_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php 
            _e('Group Amount', 'vtprd');
            echo '<br>';
            _e('Applies to', 'vtprd');
            ?>
</span><span class="showGetAsDiscount"><?php 
            _e('Group Amount', 'vtprd');
            echo '<br>';
            _e('Applies to', 'vtprd');
            ?>
</span></a>
                    </span>
                    <?php 
            vtprd_show_object_hover_help('action_amt_applies_to', 'wizard');
            ?>
            
                </span> 

                <span class="dropdown    right-column">                           
                     <select id="<?php 
            echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            //echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['tabindex'];
            ?>
" >          
                       <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_amt_applies_to']['option']); $i++) {
                ?>
                             
                          <option id="<?php 
                echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_amt_applies_to']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['title'];
                ?>
 </option>
                       <?php 
            }
            ?>
 
                     </select>
                     
                               
                   <span class="shortIntro" >
                      <em>
                      <?php 
            _e('How is the Get', 'vtprd');
            ?>
                      </em><br>
                      <em>
                      <?php 
            _e('Group Amount counted?', 'vtprd');
            ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                     <?php 
            vtprd_show_object_hover_help('action_amt_applies_to', 'small');
            ?>
                   </span>                               
    
                </span>

            </span>
        </div><!-- //action_amt_box_appliesto -->


 
                    
        <div class="screen-box action_amt_mod_box  action_amt_mod_box_class<?php 
            echo '_' . $k;
            ?>
" id="action_amt_mod_box<?php 
            echo '_' . $k;
            ?>
" >
            <span class="left-column">
                <span class="title  third-level-title  hasWizardHelpRight" id="action_amt_mod_title<?php 
            echo '_' . $k;
            ?>
" >
                   <a id="action_amt_mod_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors third-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php 
            _e('Min / Max', 'vtprd');
            ?>
</span><span class="showGetAsDiscount"><?php 
            _e('Min / Max', 'vtprd');
            ?>
</span></a>
                </span>
                <?php 
            vtprd_show_object_hover_help('action_amt_mod', 'wizard');
            ?>
            </span>
            
            <span class="dropdown  right-column" id="action_amt_mod_dropdown<?php 
            echo '_' . $k;
            ?>
">
               <select id="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            //echo $vtprd_deal_screen_framework['action_amt_mod']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_amt_mod']['option']); $i++) {
                $this->vtprd_change_title_currency_symbol('action_amt_mod', $i, $currency_symbol);
                ?>
                             
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_amt_mod']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select>
               
                            
               <span class="amt-field  action_amt_mod_count_area  action_amt_mod_count_area_class<?php 
            echo '_' . $k;
            ?>
" id="action_amt_mod_count_area<?php 
            echo '_' . $k;
            ?>
">
                 <input id="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_amt_mod_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['action_amt_mod_count'];
            ?>
" />
               </span>  
            
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('Put an upper or lower ', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('limit on the Get Group', 'vtprd');
            ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                  <?php 
            vtprd_show_object_hover_help('action_amt_mod', 'small');
            ?>
               </span>                                  
            </span>
         </div><!-- //action_amt_mod_box -->  


         
         <div class="screen-box action_repeat_condition_box  action_repeat_condition_box_class<?php 
            echo '_' . $k;
            ?>
" id="action_repeat_condition_box<?php 
            echo '_' . $k;
            ?>
" >      <?php 
            //Action repeat shifted to end of action area, although processed first
            ?>
 
            <span class="left-column">
                <span class="title  third-level-title  hasWizardHelpRight" id="action_repeat_condition_title<?php 
            echo '_' . $k;
            ?>
" >
                   <a id="action_repeat_condition_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors third-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php 
            _e('Group Repeat', 'vtprd');
            ?>
</span><span class="showGetAsDiscount"><?php 
            _e('Group Repeat', 'vtprd');
            ?>
</span></a>
                </span>
                <?php 
            vtprd_show_object_hover_help('action_repeat_condition', 'wizard');
            ?>
            </span>
            <span class="dropdown action_repeat_condition right-column"  id="action_repeat_condition_dropdown<?php 
            echo '_' . $k;
            ?>
">              
               
               <select id="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            //echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_repeat_condition']['option']); $i++) {
                ?>
                             
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_repeat_condition']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select> 
               
                            
               <span class="amt-field action_repeat_count_area  action_repeat_count_area_class<?php 
            echo '_' . $k;
            ?>
" id="action_repeat_count_area<?php 
            echo '_' . $k;
            ?>
">
                 <input id="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['action_repeat_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['action_repeat_count'];
            ?>
" />                 
               </span>
                        
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('How many times may the Get Group be', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('used (after Buy Group satisfied)?', 'vtprd');
            ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                  <?php 
            vtprd_show_object_hover_help('action_repeat_condition', 'small');
            ?>
               </span>                                                   
           </span>
         </div><!-- //action_repeat_condition_box -->  
         
      </div><!-- //action_info -->  
        
       
        <span class="box-border-line">&nbsp;</span>
        
        <div class="display-virtual_box" id="discount_info">
                 
          <div class="screen-box discount_amt_box  discount_amt_box_class<?php 
            echo '_' . $k;
            ?>
" id="discount_amt_box<?php 
            echo '_' . $k;
            ?>
" >  
            <span class="title" id="discount_amt_title<?php 
            echo '_' . $k;
            ?>
" >
              <img class="discount_amt_title_icon" src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/tab-icons.png" width="1" height="1" />                            
              <a id="discount_amt_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="section-headings first-level-title" href="javascript:void(0);"><?php 
            _e('Discount ', 'vtprd');
            echo $currency_symbol;
            ?>
</a>
            </span>
            
            <span class="clear-both left-column">
                <span class="title  discount_action_type  hasWizardHelpRight" id="discount_action_type_title<?php 
            echo '_' . $k;
            ?>
" >            
                  <a id="discount_action_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors second-level-title" href="javascript:void(0);"><?php 
            _e('Discount Amount', 'vtprd');
            ?>
</a>
                  <span class="required-asterisk">*</span>
                </span>
                <?php 
            vtprd_show_object_hover_help('discount_amt_type', 'wizard');
            ?>
            </span>

            <span class="dropdown discount_amt_type right-column" id="discount_amt_type_dropdown<?php 
            echo '_' . $k;
            ?>
">              
              
               <select id="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_type']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_type']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_type']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            //echo $vtprd_deal_screen_framework['discount_amt_type']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_amt_type']['option']); $i++) {
                $this->vtprd_change_title_currency_symbol('discount_amt_type', $i, $currency_symbol);
                ?>
                                                
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['discount_amt_type']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select>
               
                
               <span class="discount_amt_count_area  discount_amt_count_area_class<?php 
            echo '_' . $k;
            ?>
  amt-field" id="discount_amt_count_area<?php 
            echo '_' . $k;
            ?>
">    
                 <span class="discount_amt_count_label" id="discount_amt_count_label<?php 
            echo '_' . $k;
            ?>
"> 
                    <span class="forThePriceOf-amt-literal-inserted  discount_amt_count_literal  discount_amt_count_literal<?php 
            echo '_' . $k;
            ?>
 " id="discount_amt_count_literal_forThePriceOf_buyAmt<?php 
            echo '_' . $k;
            ?>
"><?php 
            $this->vtprd_load_forThePriceOf_literal($k);
            ?>
 </span>
                    <span class="discount_amt_count_literal  discount_amt_count_literal_forThePriceOf  discount_amt_count_literal<?php 
            echo '_' . $k;
            ?>
 " id="discount_amt_count_literal_forThePriceOf<?php 
            echo '_' . $k;
            ?>
"><?php 
            _e('units ', 'vtprd');
            echo '&nbsp;';
            _e(' For the Price of ', 'vtprd');
            ?>
 </span>
                    <span class="discount_amt_count_literal  discount_amt_count_literal_forThePriceOf_Currency  discount_amt_count_literal<?php 
            echo '_' . $k;
            ?>
 " id="discount_amt_count_literal_forThePriceOf_Currency<?php 
            echo '_' . $k;
            ?>
"><?php 
            echo $currency_symbol;
            ?>
</span>
                 </span>                 
                 <input id="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_count']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_count']['class'];
            ?>
" type="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_count']['type'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['discount_amt_count']['name'] . '_' . $k;
            ?>
" value="<?php 
            echo $vtprd_rule->rule_deal_info[$k]['discount_amt_count'];
            ?>
" />                 
                 <span class="discount_amt_count_literal_units_area  discount_amt_count_literal<?php 
            echo '_' . $k;
            ?>
  discount_amt_count_literal_units_area_class<?php 
            echo '_' . $k;
            ?>
" id="discount_amt_count_literal_units_area<?php 
            echo '_' . $k;
            ?>
">
                   <span class="discount_amt_count_literal" id="discount_amt_count_literal_units<?php 
            echo '_' . $k;
            ?>
"><?php 
            _e(' units', 'vtprd');
            ?>
 </span>
                   <?php 
            vtprd_show_help_tooltip($context = 'discount_amt_count_forThePriceOf');
            ?>
                 </span>                
               </span>
                <label id="<?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['label']['id'] . '_' . $k;
            ?>
"   class="<?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['label']['class'];
            ?>
"> 
                    
                    <input id="<?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['id'] . '_' . $k;
            ?>
" 
                          class="<?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['class'];
            ?>
  hasWizardHelpBelow"
                          type="checkbox" 
                          value="<?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['value'];
            ?>
" 
                           <?php 
            if ($vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['value'] == $vtprd_rule->rule_deal_info[$k]['discount_auto_add_free_product']) {
                echo $checked;
            }
            ?>
                          name="<?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['name'] . '_' . $k;
            ?>
" />
                    <?php 
            vtprd_show_object_hover_help('discount_free', 'wizard');
            ?>
 
                          
                    <?php 
            echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['label']['title'];
            ?>
  
                    <?php 
            vtprd_show_help_tooltip($context = 'discount_auto_add_free_product', $location = 'title');
            ?>
 
                </label>
                        
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
            _e('What kind of Discount is offered,', 'vtprd');
            ?>
                  </em><br>
                  <em>
                  <?php 
            _e('and in what amount?', 'vtprd');
            ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                  <?php 
            vtprd_show_object_hover_help('discount_amt_type', 'small');
            ?>
               </span>                                     
            </span>
     
          </div> <!-- //discount_amt_box -->
                  
          <div class="screen-box discount_applies_to_box  discount_applies_to_box_class<?php 
            echo '_' . $k;
            ?>
" id="discount_applies_to_box<?php 
            echo '_' . $k;
            ?>
" >
            <span class="left-column">
                <span class="title  hasWizardHelpRight" id="discount_applies_to_title<?php 
            echo '_' . $k;
            ?>
" >
                  <a id="discount_applies_to_title_anchor<?php 
            echo '_' . $k;
            ?>
" class="title-anchors second-level-title" href="javascript:void(0);"><?php 
            _e('Discount Applies To', 'vtprd');
            ?>
</a>
                </span>
                <?php 
            vtprd_show_object_hover_help('discount_applies_to', 'wizard');
            ?>
            </span>
            
            <span class="dropdown discount_applies_to right-column"  id="discount_applies_to_dropdown<?php 
            echo '_' . $k;
            ?>
">              
               
               <select id="<?php 
            echo $vtprd_deal_screen_framework['discount_applies_to']['select']['id'] . '_' . $k;
            ?>
" class="<?php 
            echo $vtprd_deal_screen_framework['discount_applies_to']['select']['class'];
            ?>
" name="<?php 
            echo $vtprd_deal_screen_framework['discount_applies_to']['select']['name'] . '_' . $k;
            ?>
" tabindex="<?php 
            //echo $vtprd_deal_screen_framework['discount_applies_to']['select']['tabindex'];
            ?>
" >          
                 <?php 
            for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_applies_to']['option']); $i++) {
                ?>
                             
                    <option id="<?php 
                echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['id'] . '_' . $k;
                ?>
"  class="<?php 
                echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['class'];
                ?>
"  value="<?php 
                echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['value'];
                ?>
"   <?php 
                if ($vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['discount_applies_to']) {
                    echo $selected;
                }
                ?>
 >  <?php 
                echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['title'];
                ?>
 </option>
                 <?php 
            }
            ?>
 
               </select>
               
                               
                   <span class="shortIntro" >
                      <em>
                      <?php 
            _e('How is the Discount ', 'vtprd');
            ?>
                      </em><br>
                      <em>
                      <?php 
            _e('Amount counted?', 'vtprd');
            ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
            echo VTPRD_URL;
            ?>
/admin/images/help.png" /> 
                     <?php 
            vtprd_show_object_hover_help('discount_applies_to', 'small');
            ?>
                   </span>                                                                               
              </span>
          </div><!-- //discount_applies_to_box -->

                  
        </div> <!-- //discount_info -->
  
        
        </div> <!-- //end DEAL INFO line in "for" loop --><?php 
            //end DEAL INFO line in "for" loop
            ?>
   
      <?php 
        }
        //end $k'for' LOOP
        ?>
      </div> <!-- //rule_deal_info_group --> <?php 
        //end rule_deal_info_group
        ?>
  
      
      <span class="box-border-line">&nbsp;</span>
      <div id="messages-outer-box">           
         <div class="screen-box  messages-box_class" id="messages-box">
           <span class="title" id="discount_msgs_title" >
              <img class="theme_msgs_title_icon" src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/tab-icons.png" width="1" height="1" />                                          
              <a id="discount_msgs_title_anchor" class="section-headings first-level-title" href="javascript:void(0);"><?php 
        _e('Discount Messages:', 'vtprd');
        ?>
</a>            
           </span>
           <span class="dropdown messages-box-area clear-left"  id="discount_msgs_dropdown">
             <span class="discount_product_short_msg_area  clear-left">

                 <span class="left-column">
                     <span class="title  hasHoverHelp  hasWizardHelpRight">                
                         <span class="title-anchors" id="discount_product_short_msg_label"><?php 
        _e('Checkout Message', 'vtprd');
        ?>
</span> 
                         <span class="required-asterisk">*</span>
                     </span>
                     <?php 
        vtprd_show_object_hover_help('discount_product_short_msg', 'wizard');
        ?>
                 </span>

                 <span class="right-column">
                     <span class="column-width50">
                         <textarea rows="1" cols="50" id="<?php 
        echo $vtprd_rule_display_framework['discount_product_short_msg']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['discount_product_short_msg']['class'];
        ?>
  right-column" type="<?php 
        echo $vtprd_rule_display_framework['discount_product_short_msg']['type'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['discount_product_short_msg']['name'];
        ?>
" ><?php 
        echo $vtprd_rule->discount_product_short_msg;
        ?>
</textarea>
                         
                     </span>              
                     <span class="shortIntro" >
                        <em>
                        <?php 
        _e('Checkout Message shows only ', 'vtprd');
        ?>
                        </em><br>
                        <em>
                        <?php 
        _e('for Cart Deals (not Catalog)', 'vtprd');
        ?>
                        </em>                   
                      &nbsp;
                        <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                        <?php 
        vtprd_show_object_hover_help('discount_product_short_msg', 'small');
        ?>
                     </span>                               

                  </span>                      
             </span>       
             
                    
             <span class="discount_product_full_msg_area clear-both">

                 <span class="left-column">
                     <span class="title  hasWizardHelpRight">                
                         <span class="title-anchors" id="discount_product_full_msg_label"> <?php 
        _e('Advertising Message', 'vtprd');
        ?>
 </span> 
                     </span>
                     <?php 
        vtprd_show_object_hover_help('discount_product_full_msg', 'wizard');
        ?>
                 </span>
                                    
                 <span class="right-column">                
                     <span class="column-width50">
                         <textarea rows="2" cols="35" id="<?php 
        echo $vtprd_rule_display_framework['discount_product_full_msg']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['discount_product_full_msg']['class'];
        ?>
  right-column" type="<?php 
        echo $vtprd_rule_display_framework['discount_product_full_msg']['type'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['discount_product_full_msg']['name'];
        ?>
" ><?php 
        echo $vtprd_rule->discount_product_full_msg;
        ?>
</textarea>                                                                                              
                         
                     </span>                               
                     <span class="shortIntro" >
                        <em>
                        <?php 
        _e('Can be shown in your Website using', 'vtprd');
        ?>
                        </em><br>
                        <em>
                        <?php 
        _e('Shortcodes', 'vtprd');
        ?>
                        </em>
                     &nbsp;
                    <a class="commentURL" target="_blank" href="http://www.varktech.com/documentation/pricing-deals/shortcodes"><?php 
        _e('Shortcode Examples', 'vtprd');
        ?>
</a>                                                     
                      &nbsp;
                        <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                       <?php 
        vtprd_show_object_hover_help('discount_product_full_msg', 'small');
        ?>
                     </span>  
                                            
                  </span> 
            
             </span>

           </span>
         </div>    
      </div>
       
      
      <span class="box-border-line">&nbsp;</span>
      
    
    <div id="advanced-data-area"> 

      <div class="screen-box" id="maximums_box">   
          <span class="title" id="cumulativePricing_title" >
            <img class="maximums_icon" src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/tab-icons.png" width="1" height="1" />                                                        
            <a id="cumulativePricing_title_anchor" class="section-headings first-level-title" href="javascript:void(0);">
                <?php 
        _e('Discount Limits:', 'vtprd');
        ?>
                <?php 
        if (!defined('VTPRD_PRO_DIRNAME')) {
            ?>
                    <span id="max-limits-subtitle"><?php 
            _e('(pro only)', 'vtprd');
            ?>
</span>
                <?php 
        }
        ?>
            </a>
          </span>
 
           
        
          <div class="screen-box  screen-box2 discount_lifetime_max_amt_type_box  clear-left" id="discount_lifetime_max_amt_type_box_0">  
             <?php 
        /* ***********************
           special handling for  discount_lifetime_max_amt_type, discount_lifetime_max_amt_type.  Even though they appear iteratively in deal info,
           they are only active on the '0' occurrence line.  further, they are displayed only AFTER all of the deal lines are displayed
           onscreen... This is actually a kluge, done to utilize the complete editing already available in the deal info loop for a  dropdown and an associated amt field.
           *********************** */
        //Both _label fields have trailing '_0', as edits are actually handled in the discount info loop
        ?>
          
            <span class="left-column  left-column-less-padding-top2">
                <span class="title  hasWizardHelpRight" id="discount_lifetime_max_title_0" >
                  <a id="discount_lifetime_max_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><?php 
        _e('Customer', 'vtprd');
        echo '<br>';
        _e('Rule Limit', 'vtprd');
        ?>
</a>
                </span>
                <?php 
        vtprd_show_object_hover_help('discount_lifetime_max_amt_type', 'wizard');
        ?>
 
            </span>
            
            <span class="dropdown  right-column" id="discount_lifetime_max_dropdown">
               
               <select id="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['id'] . '_0';
        ?>
" class="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['name'] . '_0';
        ?>
" tabindex="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['tabindex'] . '_0';
        ?>
" >          
                 <?php 
        for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option']); $i++) {
            $this->vtprd_change_title_currency_symbol('discount_lifetime_max_amt_type', $i, $currency_symbol);
            //pick up the free/pro version of the title => in this case, title and title3
            $title = $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['title'];
            if (defined('VTPRD_PRO_DIRNAME') && $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['title3'] > ' ') {
                $title = $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['title3'];
            }
            ?>
                             
                    <option id="<?php 
            echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['id'] . '_0';
            ?>
"  class="<?php 
            echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[0]['discount_lifetime_max_amt_type']) {
                echo $selected;
            }
            // use '0' deal_info_line...
            ?>
 >  <?php 
            echo $title;
            ?>
 </option>
                 <?php 
        }
        ?>
 
               </select>
               
                           
               <span class="amt-field" id="discount_lifetime_max_amt_count_area">
 
                 <input id="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['id'] . '_0';
        ?>
" class="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['class'];
        ?>
  limit-count" type="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['type'];
        ?>
" name="<?php 
        echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['name'] . '_0';
        ?>
" value="<?php 
        echo $vtprd_rule->rule_deal_info[0]['discount_lifetime_max_amt_count'];
        // use '0' deal_info_line...
        ?>
" />
               </span>
            
                        
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
        _e('Limit by Customer - by Count or', 'vtprd');
        ?>
                  </em><br>
                  <em>
                  <?php 
        _e('Discount value - Lifetime of rule', 'vtprd');
        ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                  <?php 
        vtprd_show_object_hover_help('discount_lifetime_max_amt_type', 'small');
        ?>
               </span>                               

            </span>
             <span class="text-field  clear-left" id="discount_lifetime_max_amt_msg">
               <span class="data-line-indent">&nbsp;</span>
               <span class="text-field-label" id="discount_lifetime_max_amt_msg_label"> <?php 
        _e('Short Message When Max Applied (opt) ', 'vtprd');
        ?>
 </span>
                <?php 
        vtprd_show_help_tooltip($context = 'discount_lifetime_max_amt_msg');
        ?>
               <textarea rows="1" cols="100" id="<?php 
        echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['class'];
        ?>
" type="<?php 
        echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['type'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['name'];
        ?>
" ><?php 
        echo $vtprd_rule->discount_lifetime_max_amt_msg;
        ?>
</textarea>
             </span>           
          </div> 
                   
                    
          
 
           
        <div class="screen-box  screen-box2  dropdown discount_rule_max_amt_type discount_rule_max_amt_type_box clear-left" id="discount_rule_max_amt_type_box_0">  
             <?php 
        /* ***********************
           special handling for  discount_rule_max_amt_type, discount_rule_max_amt_type.  Even though they appear iteratively in deal info,
           they are only active on the '0' occurrence line.  further, they are displayed only AFTER all of the deal lines are displayed
           onscreen... This is actually a kluge, done to utilize the complete editing already available in the deal info loop for a  dropdown and an associated amt field.
           *********************** */
        //Both _label fields have trailing '_0', as edits are actually handled in the discount info loop
        ?>
          
            <span class="left-column">
                <span class="title  hasWizardHelpRight" id="discount_rule_max_title_0" >
                  <a id="discount_rule_max_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><?php 
        _e('Cart Limit', 'vtprd');
        ?>
</a>
                </span>
                <?php 
        vtprd_show_object_hover_help('discount_rule_max_amt_type', 'wizard');
        ?>
                
            </span>   
                    
            <span class="dropdown right-column" id="discount_rule_max_dropdown">
                
                <select id="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['id'] . '_0';
        ?>
" class="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['name'] . '_0';
        ?>
" tabindex="<?php 
        //echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['tabindex'] .'_0' ;
        ?>
" >          
                 <?php 
        for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_rule_max_amt_type']['option']); $i++) {
            $this->vtprd_change_title_currency_symbol('discount_rule_max_amt_type', $i, $currency_symbol);
            ?>
                             
                    <option id="<?php 
            echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['id'] . '_0';
            ?>
"  class="<?php 
            echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[0]['discount_rule_max_amt_type']) {
                echo $selected;
            }
            // use '0' deal_info_line...
            ?>
 >  <?php 
            echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['title'];
            ?>
 </option>
                 <?php 
        }
        ?>
 
                </select> 
                
                
                <span class="amt-field  " id="discount_rule_max_amt_count_area">
                 <input id="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['id'] . '_0';
        ?>
" class="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['class'];
        ?>
  limit-count" type="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['type'];
        ?>
" name="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['name'] . '_0';
        ?>
" value="<?php 
        echo $vtprd_rule->rule_deal_info[0]['discount_rule_max_amt_count'];
        // use '0' deal_info_line...
        ?>
" />
                </span>
                        
               <span class="shortIntro  shortIntro2" >
                  <em>
                  <?php 
        _e('Limit by Cart - by Count or', 'vtprd');
        ?>
                  </em><br>
                  <em>
                  <?php 
        _e('Discount $$ value or % value', 'vtprd');
        ?>
                  </em>                   
                &nbsp;
                  <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                  <?php 
        vtprd_show_object_hover_help('discount_rule_max_amt_type', 'small');
        ?>
               </span>                                  
            </span>

           <?php 
        //while the 2 max_amt fields above are kluged onto the deal_screen_framework, the msg field is on the rule proper
        ?>
           <span class="text-field  clear-left" id="discount_rule_max_amt_msg">
             <span class="data-line-indent">&nbsp;</span>
             <span class="left-column">
                 <span class="text-field-label" id="discount_rule_max_amt_msg_label"> <?php 
        _e('Short Message When Max Applied (opt) ', 'vtprd');
        ?>
 </span>
                  <?php 
        vtprd_show_help_tooltip($context = 'discount_rule_max_amt_msg');
        ?>
             </span>
             <textarea rows="1" cols="100" id="<?php 
        echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['class'];
        ?>
 right-column" type="<?php 
        echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['type'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['name'];
        ?>
" ><?php 
        echo $vtprd_rule->discount_rule_max_amt_msg;
        ?>
</textarea>
           </span>           
        </div>     
  
            <div class="screen-box  screen-box2  dropdown discount_rule_cum_max_amt_type discount_rule_cum_max_amt_type_box clear-left" id="discount_rule_cum_max_amt_type_box_0">  
                 <?php 
        /* ***********************
           special handling for  discount_rule_cum_max_amt_type, discount_rule_cum_max_amt_type.  Even though they appear iteratively in deal info,
           they are only active on the '0' occurrence line.  further, they are displayed only AFTER all of the deal lines are displayed
           onscreen... This is actually a kluge, done to utilize the complete editing already available in the deal info loop for a  dropdown and an associated amt field.
           *********************** */
        //Both _label fields have trailing '_0', as edits are actually handled in the discount info loop
        ?>
          
                <span class="left-column">
                    <span class="title  hasWizardHelpRight" >
                      <span class="title-anchors" id="discount_rule_cum_max_title_0" ><?php 
        _e('Product Limit', 'vtprd');
        ?>
</span>
                    </span> 
                    <?php 
        vtprd_show_object_hover_help('discount_rule_cum_max_amt_type', 'wizard');
        ?>
      
                </span>
                
                <span class="dropdown right-column" id="discount_rule_cum_max_dropdown">                                                         
                   
                   <select id="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['id'] . '_0';
        ?>
" class="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['name'] . '_0';
        ?>
" tabindex="<?php 
        //echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['tabindex'] .'_0' ;
        ?>
" >          
                     <?php 
        for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option']); $i++) {
            $this->vtprd_change_title_currency_symbol('discount_rule_cum_max_amt_type', $i, $currency_symbol);
            ?>
                             
                        <option id="<?php 
            echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['id'] . '_0';
            ?>
"  class="<?php 
            echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[0]['discount_rule_cum_max_amt_type']) {
                echo $selected;
            }
            // use '0' deal_info_line...
            ?>
 >  <?php 
            echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['title'];
            ?>
 </option>
                     <?php 
        }
        ?>
 
                   </select>
                   
                    
                   <span class="amt-field" id="discount_rule_cum_max_amt_count_area">
              
                     <input id="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['id'] . '_0';
        ?>
" class="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['class'];
        ?>
  limit-count" type="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['type'];
        ?>
" name="<?php 
        echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['name'] . '_0';
        ?>
" value="<?php 
        echo $vtprd_rule->rule_deal_info[0]['discount_rule_cum_max_amt_count'];
        // use '0' deal_info_line...
        ?>
" />
                   </span>
                        
                   <span class="shortIntro  shortIntro2" >
                      <em>
                      <?php 
        _e('Limit by Product - by Count or', 'vtprd');
        ?>
                      </em><br>
                      <em>
                      <?php 
        _e('Discount $$ value or % value', 'vtprd');
        ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                      <?php 
        vtprd_show_object_hover_help('discount_rule_max_amt_type', 'small');
        ?>
                   </span>                                
                </span>
               <span class="text-field  clear-left" id="discount_rule_cum_max_amt_msg">
                 <span class="data-line-indent">&nbsp;</span>
                 <span class="text-field-label" id="discount_rule_cum_max_amt_msg_label"> <?php 
        _e('Short Message When Max Applied (opt) ', 'vtprd');
        ?>
 </span>
                  <?php 
        vtprd_show_help_tooltip($context = 'discount_rule_cum_max_amt_msg');
        ?>
                 <textarea rows="1" cols="100" id="<?php 
        echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['class'];
        ?>
" type="<?php 
        echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['type'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['name'];
        ?>
" ><?php 
        echo $vtprd_rule->discount_rule_cum_max_amt_msg;
        ?>
</textarea>
               </span>
            </div>                
          
      </div> <?php 
        //end maximums_box box
        ?>
                      
      
      <span class="box-border-line">&nbsp;</span>             

      <div class="screen-box" id="cumulativePricing_box">     
          <span class="title" id="cumulativePricing_title" >
            <img class="working_together_icon" src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/tab-icons.png" width="1" height="1" />                                                        
            <a id="cumulativePricing_title_anchor" class="section-headings first-level-title" href="javascript:void(0);"><?php 
        _e('Discount Works Together With:', 'vtprd');
        ?>
</a>
          </span>
          
          <div class="clear-left" id="cumulativePricing_dropdown">       
            <div class="screen-box dropdown cumulativeRulePricing_area clear-left" id="cumulativeRulePricing_areaID"> 
               
               <span class="left-column  left-column-less-padding-top">
                  <span class="title  hasWizardHelpRight" >
                    <span class="cumulativeRulePricing_lit" id="cumulativeRulePricing_label"><?php 
        _e('Other', 'vtprd');
        echo '&nbsp;<br>';
        _e('Rule Discounts', 'vtprd');
        ?>
</span>
                  </span> 
                  <?php 
        vtprd_show_object_hover_help('cumulativeRulePricing', 'wizard');
        ?>
    
               </span>
               
               <span class="right-column">
                   <span class="column-width50"> 
                     <select id="<?php 
        echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['name'];
        ?>
" tabindex="<?php 
        //echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['tabindex'];
        ?>
" >          
                       <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cumulativeRulePricing']['option']); $i++) {
            ?>
                             
                          <option id="<?php 
            echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['value'] == $vtprd_rule->cumulativeRulePricing) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['title'];
            ?>
 </option>
                       <?php 
        }
        ?>
 
                     </select>
                     
                     
                     <span class="" id="priority_num">   <?php 
        //only display if multiple rule discounts
        ?>
                       <span class="text-field" id="ruleApplicationPriority_num">
                         <span class="text-field-label" id="ruleApplicationPriority_num_label"> <?php 
        _e('Priority', 'vtprd');
        //_e('Rule Priority Sort Number:', 'vtprd');
        ?>
 </span>
                         <input id="<?php 
        echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['class'];
        ?>
" type="<?php 
        echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['type'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['name'];
        ?>
" value="<?php 
        echo $vtprd_rule->ruleApplicationPriority_num;
        ?>
" />
                       </span>
                     </span>
                   </span>           
                   <span class="shortIntro  shortIntro2" >
                      <em>
                      <?php 
        _e('Does this Rule apply its discount', 'vtprd');
        ?>
                      </em><br>
                      <em>
                      <?php 
        _e('in addition to other Rules?', 'vtprd');
        ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                      <?php 
        vtprd_show_object_hover_help('cumulativeRulePricing', 'small');
        ?>
                   </span>                                   
               </span> 
                            
            </div>
    
            <div class="screen-box dropdown cumulativeCouponPricing_area clear-left" id="cumulativeCouponPricing_0">              
               <span class="left-column  left-column-less-padding-top">
                  <span class="title  hasWizardHelpRight" >
                    <span class="cumulativeRulePricing_lit" id="cumulativeCouponPricing_label"><?php 
        _e('Other <br>Coupon Discounts', 'vtprd');
        //_e('Apply this Rule Discount ', 'vtprd'); echo '&nbsp;&nbsp;';  _e('in Addition to Coupon Discount : &nbsp;', 'vtprd');
        ?>
</span>
                  </span> 
                  <?php 
        vtprd_show_object_hover_help('cumulativeCouponPricing', 'wizard');
        ?>
  
               </span>
               <span class="right-column">
                   <span class="column-width50"> 
                     <select id="<?php 
        echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['name'];
        ?>
" tabindex="<?php 
        //echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['tabindex'];
        ?>
" >          
                       <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cumulativeCouponPricing']['option']); $i++) {
            ?>
                             
                          <option id="<?php 
            echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['value'] == $vtprd_rule->cumulativeCouponPricing) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['title'];
            ?>
 </option>
                       <?php 
        }
        ?>
 
                     </select>
                     
                   </span>           
                   <span class="shortIntro  shortIntro2" >
                      <em>
                      <?php 
        _e('Does this Rule apply its discount', 'vtprd');
        ?>
                      </em><br>
                      <em>
                      <?php 
        _e('in addition to other Coupons?', 'vtprd');
        ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                     <?php 
        vtprd_show_object_hover_help('cumulativeCouponPricing', 'small');
        ?>
                   </span>                               

               </span> 
            </div>
                 
            <div class="screen-box dropdown cumulativeSalePricing_area clear-left" id="cumulativeSalePricing_areaID">              
               <span class="left-column  left-column-less-padding-top">
                   <span class="title  hasWizardHelpRight" >
                     <span class="cumulativeRulePricing_lit" id="cumulativeSalePricing_label"><?php 
        _e('Product', 'vtprd');
        echo '&nbsp;<br>';
        _e('Sale Pricing', 'vtprd');
        ?>
</span>
                   </span> 
                   <?php 
        vtprd_show_object_hover_help('cumulativeSalePricing', 'wizard');
        ?>
                
               </span>
               <span class="right-column">
                   
                   <select id="<?php 
        echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['id'];
        ?>
" class="<?php 
        echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['class'];
        ?>
" name="<?php 
        echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['name'];
        ?>
" tabindex="<?php 
        //echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['tabindex'];
        ?>
" >          
                     <?php 
        for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cumulativeSalePricing']['option']); $i++) {
            ?>
                             
                        <option id="<?php 
            echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['id'];
            ?>
"  class="<?php 
            echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['class'];
            ?>
"  value="<?php 
            echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['value'];
            ?>
"   <?php 
            if ($vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['value'] == $vtprd_rule->cumulativeSalePricing) {
                echo $selected;
            }
            ?>
 >  <?php 
            echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['title'];
            ?>
 </option>
                     <?php 
        }
        ?>
 
                   </select> 
                   
                        
                   <span class="shortIntro  shortIntro2 shortIntro3" >
                      <em>
                      <?php 
        _e('Does this Rule discount apply at all,', 'vtprd');
        ?>
                      </em><br>
                      <em>
                      <?php 
        _e('over top or in place of Sale Price?', 'vtprd');
        ?>
                      </em>                   
                    &nbsp;
                      <img  class="hasHoverHelp2" width="11px" alt=""  src="<?php 
        echo VTPRD_URL;
        ?>
/admin/images/help.png" /> 
                      <?php 
        vtprd_show_object_hover_help('cumulativeSalePricing', 'small');
        ?>
                   </span>                                                 
               </span>
               <?php 
        if (VTPRD_PARENT_PLUGIN_NAME == 'WP E-Commerce') {
            vtprd_show_help_tooltip($context = 'cumulativeSalePricingLimitation');
        }
        ?>
 
            </div>
          </div>  <?php 
        //end cumulativeRulePricing_dropdown
        ?>
  
       </div> <?php 
        //end cumulativePricing box
        ?>
  

      </div> <?php 
        //end advanced-data-area
        ?>
            
      </div> <?php 
        //lower-screen-wrapper
        ?>
      
      <?php 
        //lots of selects change their values between standard and 'discounted' titles.
        //This is where we supply the HIDEME alternative titles
        $this->vtprd_print_alternative_title_selects();
        //echo '$vtprd_rule= <pre>'.print_r($vtprd_rule, true).'</pre>' ;
    }
Example #9
0
 public function vtprd_maybe_system_requirements()
 {
     //OVERRIDE System Requirements testing
     if (apply_filters('vtprd_turn_off_system_requirements', FALSE)) {
         return;
     }
     //**********************
     //* MEMORY 64MB REQUIRED
     //**********************
     //v1.1.6.3
     // Check if WooCommerce is active
     if (class_exists('WooCommerce')) {
         $memory = wc_let_to_num(WP_MEMORY_LIMIT);
         if (function_exists('memory_get_usage')) {
             $system_memory = wc_let_to_num(@ini_get('memory_limit'));
             $memory = max($memory, $system_memory);
         }
         //VTPRD_PRO_VERSION only exists if PRO version is installed and active
         if ($memory < 67108864 && defined('VTPRD_PRO_VERSION')) {
             //test for 64mb
             $message = '<h4>' . __('- ', 'vtprd') . VTPRD_PLUGIN_NAME . __(' - You need a minimum of &nbsp;&nbsp; -- 64mb of system memory -- &nbsp;&nbsp; for your site to run Woocommerce + Pricing Deals successfully. ', 'vtprd') . '</h4>';
             $message .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Your system memory is currently &nbsp;' . size_format($memory);
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- In wp-admin, please go to Woocommerce/System Status and look for WP Memory Limit.  ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- *** Suggest that you increase memory to a 256mb *** (the new defacto standard...)  ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '-  First, --contact your Host-- and request the memory change (this should be FREE from your Host).  ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '-  Then you need to update your wordpress wp_config.php file. See: <a href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP">Increasing memory allocated to PHP</a>   ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- *** -- BOTH of these actions must be done, in order for the memory change to be accomplished.  ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '<h3> The more plugins that are used, the more server memory is recommended.  These days, 256mb is best!</h3>';
             $admin_notices = '<div id="message" class="error fade notice is-dismissible" style="background-color: #FFEBE8 !important;"><p>' . $message . ' </p></div>';
             echo $admin_notices;
         }
     }
     //v1.1.6 begin
     global $vtprd_license_options;
     //v1.1.6 moved here
     //**********************
     //* php > 5.3.1  REQUIRED
     //**********************
     //VTPRD_PRO_VERSION only exists if PRO version is installed and active
     if (defined('VTPRD_PRO_VERSION')) {
         $php_version = phpversion();
         if (version_compare($php_version, '5.3.1', '<')) {
             $message = '<h4>' . __('- ', 'vtprd') . VTPRD_PRO_PLUGIN_NAME . __(' - PHP version must be &nbsp;==>&nbsp; 5.3.1 &nbsp;<==&nbsp; or greater, to run this PRO plugin successfully. ', 'vtprd') . '</h4>';
             $message .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Your PHP version is currently &nbsp;' . $php_version;
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- Contact your host to upgrade!!!.  ';
             $admin_notices = '<div id="message" class="error fade notice is-dismissible" style="background-color: #FFEBE8 !important;"><p>' . $message . ' </p></div>';
             echo $admin_notices;
         }
         /*
                 if (!$vtprd_license_options['older_wordpress_warning_done']) {
                    global $wp_version;
                    //if ( version_compare( $wp_version, '4.5', '<' ) ) { 
                    // if ( version_compare( $wp_version, VTPRD_WP_MINIMUM_VERSION_FOR_COMPARISON, '<' ) ) {     
                    if ( version_compare( $wp_version, VTPRD_WP_MINIMUM_VERSION_FOR_COMPARISON, '<' ) ) {	            	 
                       $message  =  '<h4> ' .VTPRD_PRO_PLUGIN_NAME . '</h4>';
                       $message .=  '<h4> - WORDPRESS VERSION WARNING - </h4>' ;
                       $message .=  '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'The recommended Wordpress Version to run this PRO plugin successfully = <strong>Version &nbsp;' .VTPRD_WP_MINIMUM_VERSION_FOR_COMPARISON . '</strong>';  
                       $message .=  '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Your WordPress Version is <strong> currently &nbsp;' .  $wp_version .'</strong>';            
                       $message .=  '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- If Possible, Please ' ; 
                       $message .=  '&nbsp;<strong> <a href="'.$vtprd_license_options['home_url'].'/wp-admin/update-core.php">Upgrade Wordpress Version</a> </strong>&nbsp;' ;
                       $admin_notices = '<div class="error fade notice is-dismissible" 
                       style="
                             line-height: 19px;
                             padding: 0px 15px 11px 15px;
                             font-size: 14px;
                             text-align: left;
                             margin: 25px 20px 15px 2px;
                             background-color: #fff;
                             border-left: 4px solid #ffba00;
                             -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
                             box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); " > <p>' . $message . ' </p></div>';       
                       echo $admin_notices; 
                    }
                   $vtprd_license_options['older_wordpress_warning_done'] = true;
                   update_option('vtprd_license_options', $vtprd_license_options);            
                 }
         */
     }
     //v1.1.6 end
     //v1.1.6.3
     // Check if WooCommerce is active
     if (class_exists('WooCommerce')) {
         //********************************
         //* WOOCOMMERCE 2.4+ now REQUIRED
         //********************************
         $current_version = WOOCOMMERCE_VERSION;
         if (version_compare(strval('2.4.0'), strval($current_version), '>') == 1) {
             //'==1' = 2nd value is lower
             $message = '<h4>' . __('- Current version of - ', 'vtprd') . VTPRD_PLUGIN_NAME . __(' - needs &nbsp;&nbsp; -- WooCommerce Version 2.4+ -- &nbsp;&nbsp; to run successfully. ', 'vtprd') . '</h4>';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Please upgrade to WooCommerce Version 2.4+  ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . ' - OR - ';
             $message .= '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Please contact Varktech for an earlier version of Pricing Deals, if you are still on 2.3+';
             $message .= '<br>&nbsp;<strong> <a href="https://www.varktech.com/support/">Varktech Support</a> </strong>&nbsp;';
             $admin_notices = '<div id="message" class="error fade notice is-dismissible" style="background-color: #FFEBE8 !important;"><p>' . $message . ' </p></div>';
             echo $admin_notices;
         }
     }
     /* v1.1.6.1     LOCALHOST TEST TEMPORARILY SUSPENDED 
     ********************************************************  
           //localhost test
           if (!$vtprd_license_options['localhost_warning_done']) { 
             $this_is_localhost = $this->vtprd_maybe_ip_is_localhost(); //v1.1.6.1
             if ($this_is_localhost) { //v1.1.6.1
     
                   //VTPRD_PRO_VERSION only exists if PRO version is installed and active
                 if (defined('VTPRD_PRO_VERSION')) {
                   $message .=  '<br><br><strong>' . 'The PRO Plugin:' . ' &nbsp;&nbsp;</strong><em>'  .VTPRD_PRO_PLUGIN_NAME . '</em>&nbsp;&nbsp;<strong>' . '  may not be fully functional in a Localhost environment' .'</strong>' ;               
                   $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('For testing, best to use a hosted test environment.', 'vtprd')  ;
                   $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('A valid test environment must be a subdomain of the production environment,', 'vtprd')  ;
                   $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __("and contain 'demo.' or 'beta.' or 'test.' or 'stage.' or 'staging.' in the name [eg test.prodwebsitename.com].", 'vtprd')  ;
                   $message .=  '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('If you really want to use Localhost, you must register using "prod" or "3-day".', 'vtprd')  ;
                   $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('**be sure** to deactivate the Localhost license before registering it on a host server."', 'vtprd')  ;
                   $message .=  '</strong>';      
                 } else {         
                   $message  =  '<h3>' . VTPRD_PLUGIN_NAME. __(' -  may not be fully functional in a Localhost environment' , 'vtprd') . '</h3>' ; 
                   $message .=  '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Suggest creating a server development environment for ongoing development and testing.' ; 
                 }
                 $admin_notices = '<div class="error fade notice is-dismissible" 
                 style="
                       line-height: 19px;
                       padding: 0px 15px 11px 15px;
                       font-size: 14px;
                       text-align: left;
                       margin: 25px 20px 15px 2px;
                       background-color: #fff;
                       border-left: 4px solid #ffba00;
                       -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
                       box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); " > <p>' . $message . ' </p></div>';       
                 echo $admin_notices; 
     
               
             } 
             //only ever show this once!    
             $vtprd_license_options['localhost_warning_done'] = true;
             update_option('vtprd_license_options', $vtprd_license_options);               
           }  
     */
     /*
         //********************************
         //* IF WPML is installed - ERROR!!!
         //********************************
         // function check from https://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/
         if ( function_exists('icl_object_id') ) { //WPML IS INSTALLED AND ACTIVE
           $message  =   __('- Pricing Deals - is not fully compatible with the &nbsp;  <strong>WPML</strong>  &nbsp; translation plugin. &nbsp; Pricing Deals is fully compatible with the &nbsp; <a href="https://wordpress.org/plugins/qtranslate-x/">QTranslate</a>  &nbsp; plugin ' , 'vtprd')  ;
     
           $admin_notices = '<div id="message" class="error fade notice is-dismissible" style="background-color: #FFEBE8 !important;"><p>' . $message . ' </p></div>';
           echo $admin_notices;
         }      
     */
     //********************************
     //* IF User Role Editor is installed - ERROR!!!
     //********************************
     /*v1.1.6  REMOVED!
       if (!$vtprd_license_options['user_role_editor_warning_done']) { //v1.1.6
         if (class_exists('URE_Assign_Role')) {
           $message  =   __('- ' , 'vtprd') .VTPRD_PLUGIN_NAME. __(' - is ** not compatible ** with the &nbsp;  <strong>User Role Editor</strong>  &nbsp; plugin. &nbsp; Pricing Deals is compatible with the &nbsp; <a href="https://wordpress.org/plugins/members/">Members</a>  &nbsp; plugin.' , 'vtprd')  ;
           
           $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- Recently, a change in the User Role Editor plugin has "poisoned" the roles created with that plugin ' ;
           $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- All of the Roles created with the User Role Editor must be ** replaced **' ;
           $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '- And the new Roles must be updated in any Users and Pricing Deals Rules where the "poisoned" roles had been employed.' ;
                   
           $admin_notices = '<div class="error fade notice is-dismissible" style="background-color: #FFEBE8 !important;"><p>' . $message . ' </p></div>';
           echo $admin_notices;
           
           $vtprd_license_options['user_role_editor_warning_done'] = true; //v1.1.6
           update_option('vtprd_license_options', $vtprd_license_options); //v1.1.6            
         }
        } 
        */
     /*  v1.1.6.1      IP TEST TEMPORARILY SUSPENDED
     ********************************************************
           //v1.1.6 begin  reworked
           global $vtprd_info;
           $localhost_found = get_option('vtprd_localhost_found');
           $ip_address_override = apply_filters('vtprd_override_with_supplied_ip_address',FALSE); //v1.1.6.1
           //VALIDATE IP ADDRESS for PRO PLUGIN REGISTRATION
             //VTPRD_PRO_VERSION only exists if PRO version is installed and active
           if ( (defined('VTPRD_PRO_VERSION')) &&
                (!$ip_address_override) && //don't show if ip address overridden!   //v1.1.6.1
                (!$localhost_found) &&
                (!$this->vtprd_maybe_ip_valid()) ) {
               $message .=  '<strong>' . 'The PRO Plugin:' . ' &nbsp;&nbsp;</strong><em>'  .VTPRD_PRO_PLUGIN_NAME . '</em>&nbsp;&nbsp;<strong>'  ;              
               $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . ' cannot get a valid website IP address'  ;
               $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . ' for your website &nbsp;&nbsp;' .$vtprd_license_options['url'] .'</strong>'  ;
     
               $message .=  '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>' . __('- This issue DOES NOT prevent registration -', 'vtprd') ;
               $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('- This issue DOES NOT affect the Pro plugin function - ' , 'vtprd')  ;
               $message .=  '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>' . __(' * But This issue will cause problems down the road *', 'vtprd')  .'</em></strong>' ;
               
               $message .=  '<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('Please contact &nbsp;&nbsp; 
                     <strong><a target="_blank" href="https://www.varktech.com/support/">Varktech Support</a></strong>
                     &nbsp;&nbsp; for assistance with your IP Address.', 'vtprd')  ;
               $message .=  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . __('Please be sure to include this message.', 'vtprd')  ;
               
                               
               $admin_notices = '<div class="error fade notice is-dismissible" 
               style="
                     line-height: 19px;
                     padding: 0px 15px 11px 15px;
                     font-size: 14px;
                     text-align: left;
                     margin: 25px 20px 15px 2px;
                     background-color: #fff;
                     border-left: 4px solid #ffba00;
                     -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
                     box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); " > <p>' . $message . ' </p></div>';       
               echo $admin_notices;            
           } 
           //v1.1.6 end 
     */
     //display any system-level licensing issues
     $this->vtprd_maybe_pro_license_error();
     return;
 }