public static function mp2_product_settings($content, $course_id)
        {
            $course = new Course((int) $course_id);
            $paid_course = CoursePress_MarketPress_Integration::is_active() || cp_use_woo() ? $course->details->paid_course : false;
            $auto_sku = $course->details->auto_sku;
            $mp_settings = get_option('mp_settings');
            $gateways = 0;
            $settings_gateways = (array) $mp_settings['gateways'];
            if (isset($settings_gateways['allowed'])) {
                foreach ($settings_gateways['allowed'] as $gw => $active) {
                    $gateways += !empty($active) ? 1 : 0;
                }
            }
            $gateways = $gateways > 0 ? true : false;
            $hidden_class = !CoursePress_MarketPress_Integration::is_active() ? 'hidden' : '';
            $content = '
				<div class="cp-markertpress-is-active ' . $hidden_class . '">
			';
            if (isset($course_id) && $course_id !== 0) {
                $mp_product_details = get_post_custom($course_id);
            }
            $product_id = isset($mp_product_details['mp_product_id']) ? (int) $mp_product_details['mp_product_id'][0] : false;
            $product_id = empty($product_id) && isset($mp_product_details['marketpress_product']) ? (int) $mp_product_details['marketpress_product'][0] : $product_id;
            $mp_product_id = $product_id;
            $product_exists = 0 != $mp_product_id ? true : false;
            $paid_course = !isset($paid_course) ? 'off' : $paid_course;
            $paid_course = !$product_exists ? 'off' : $paid_course;
            $paid_course = 'off' === $paid_course && isset($mp_product_details['paid_course']) ? $mp_product_details['paid_course'][0] : $paid_course;
            if (isset($marketpress_product) && $marketpress_product !== '') {
                $marketpress_product_sku = $mp_product_details['mp_sku'][0];
            } else {
                $marketpress_product_sku = '';
            }
            $input_state = 'off' == $paid_course ? 'disabled="disabled"' : '';
            $value = !empty($mp_product_id) ? $mp_product_id : '';
            $content .= '
					<input type="hidden" name="meta_mp_product_id" id="mp_product_id" value="' . esc_attr($value) . '"/>
			';
            $hidden_class = $paid_course != 'on' ? 'hidden' : '';
            $content .= '
					<div class="course-paid-course-details ' . $hidden_class . '">
			';
            $content .= '
						<div class="course-sku">
							<p>
								<input type="checkbox" name="meta_auto_sku" ' . (isset($auto_sku) && $auto_sku == 'on' ? 'checked' : '') . ' ' . $input_state . '/>
								' . esc_html__('Automatically generate Stock Keeping Unit (SKU)', 'cp') . '
							</p>
							<input type="text" name="mp_sku" id="mp_sku" placeholder="CP-000001" value="' . esc_attr(isset($marketpress_product_sku[0]) ? $marketpress_product_sku[0] : '') . '" ' . $input_state . '/>
						</div>
			';
            $content .= '
						<div class="course-price">
							<span class="price-label ' . esc_attr($paid_course == 'on' ? 'required' : '') . '">' . esc_html__('Price', 'cp') . '</span>
							<input type="text" name="mp_price" id="mp_price" value="' . esc_attr(isset($mp_product_details['mp_price'][0]) ? esc_attr($mp_product_details['mp_price'][0]) : '') . '" ' . $input_state . ' />
						</div>
						<div class="clearfix"></div>
			';
            $mp_is_sale = isset($mp_product_details["mp_is_sale"][0]) ? $mp_product_details["mp_is_sale"][0] : 0;
            $content .= '
						<div class="course-sale-price">
							<p>
								<input type="checkbox" id="mp_is_sale" name="mp_is_sale" value="' . esc_attr($mp_is_sale) . '" ' . checked($mp_is_sale, '1', false) . ' ' . $input_state . ' />
								' . esc_html__('Enabled Sale Price', 'cp') . '
 							</p>
							<span class="price-label ' . esc_attr(isset($mp_product_details) && !empty($mp_product_details["mp_is_sale"]) && checked($mp_product_details["mp_is_sale"][0], '1', false) ? "required" : "") . '">' . esc_html__('Sale Price', 'cp') . '</span>
							<input type="text" name="mp_sale_price" id="mp_sale_price" value="' . (!empty($mp_product_details['mp_sale_price']) ? esc_attr($mp_product_details["mp_sale_price"][0]) : 0) . '" ' . $input_state . ' />
						</div>
						<div class="clearfix"></div>
			';
            if (current_user_can('manage_options')) {
                //Try to dequeue need-help script to avoid need-help popup
                wp_dequeue_script('mp-need-help');
                $gateway_url = admin_url('edit.php?post_type=' . self::$product_ctp . '&page=marketpress&tab=gateways&cp_admin_ref=cp_course_creation_page');
                if (self::get_base() === '3.0') {
                    $gateway_url = admin_url('admin.php?page=store-settings-payments&cp_admin_ref=cp_course_creation_page');
                }
                $content .= '
						<div class="course-enable-gateways ' . esc_attr($gateways ? 'gateway-active' : 'gateway-undefined') . '">
							<a href="' . esc_url_raw($gateway_url . '&TB_iframe=true&width=600&height=550') . '" class="button button-incomplete-gateways thickbox ' . esc_attr($gateways ? 'hide' : '') . '" style="' . esc_attr($gateways ? 'display:none' : '') . '">' . esc_html__('Setup Payment Gateways', 'cp') . '</a>
							<span class="payment-gateway-required ' . esc_attr(!$gateways && $paid_course == 'on' ? 'required' : '') . '"></span>
							<a href="' . esc_url_raw($gateway_url . '&TB_iframe=true&width=600&height=550') . '" class="button button-edit-gateways thickbox ' . esc_attr($gateways ? '' : 'hide') . '" style="' . esc_attr($gateways ? '' : 'display:none') . '">' . esc_html__('Edit Payment Gateways', 'cp') . '</a>
						</div>
				';
            } else {
                $content .= '<div class="course-enable-gateways gateway-active"></div>';
            }
            $content .= '
					</div>
				</div>
			';
            return $content;
        }
																<input type="checkbox" name="meta_paid_course" <?php 
                    echo isset($paid_course) && $paid_course == 'on' ? 'checked' : '';
                    ?>
 id="paid_course"></input>
																<span><?php 
                    _e('This is a Paid Course', 'cp');
                    ?>
</span>
															</div>

														<?php 
                }
                if (current_user_can('install_plugins') && current_user_can('activate_plugins')) {
                    ?>
															<div class="cp-markertpress-not-active <?php 
                    echo CoursePress_MarketPress_Integration::is_active() ? 'hidden' : '';
                    ?>
">
																<div id="marketpressprompt-box">
																	<label>
																		<?php 
                    _e('Sell your courses online with MarketPress.', 'cp');
                    ?>
																	</label>

																	<?php 
                    if (!CoursePress_Capabilities::is_pro()) {
                        echo sprintf(__('To start selling your course, you will need to activate the MarketPress Lite plugin: <br /> %s<br /><br />' . 'If you require other payment gateways, you will need to upgrade to %s.', 'cp'), '<a target="_blank" href="' . admin_url('admin.php?page=' . $this->screen_base . '_settings' . '&tab=cp-marketpress') . '">' . __('Begin Activating MarketPress Lite', 'cp') . '</a>', '<a target="_blank" href="https://premium.wpmudev.org/project/e-commerce/">' . __('MarketPress', 'cp') . '</a>');
                    } else {
                        echo sprintf(__('The full version of MarketPress has been bundled with %s.<br />' . 'To start selling your course, you will need to activate MarketPress: <br /> %s<br /><br />', 'cp'), 'CoursePress Pro', '<a target="_blank" href="' . admin_url('admin.php?page=' . $this->screen_base . '_settings' . '&tab=cp-marketpress') . '">' . __('Begin Activating MarketPress', 'cp') . '</a>');
                    }