Example #1
0
function implecode_custom_csv_settings_content()
{
    ?>
	<?php 
    $submenu = isset($_GET['submenu']) ? $_GET['submenu'] : '';
    ?>
	<?php 
    if ($submenu == 'csv') {
        ?>
		<div class="setting-content submenu csv-tab">
			<script>
				jQuery('.settings-submenu a').removeClass('current');
				jQuery('.settings-submenu a#csv-settings').addClass('current');
			</script>
			<h2><?php 
        _e('Product Import', 'al-ecommerce-product-catalog');
        ?>
</h2><?php 
        simple_upload_csv_products_file();
        ?>
		</div>
		<div class="helpers"><div class="wrapper"><?php 
        main_helper();
        doc_helper(__('import', 'al-ecommerce-product-catalog'), 'product-import');
        ?>
		</div></div><?php 
    }
}
function implecode_custom_csv_settings_content()
{
    ?>
	<?php 
    $submenu = isset($_GET['submenu']) ? $_GET['submenu'] : '';
    ?>
	<?php 
    if ($submenu == 'csv') {
        ?>
		<div class="setting-content submenu csv-tab">
			<script>
		        jQuery( '.settings-submenu a' ).removeClass( 'current' );
		        jQuery( '.settings-submenu a#csv-settings' ).addClass( 'current' );
			</script>
			<h2><?php 
        _e('Simple CSV', 'al-ecommerce-product-catalog');
        ?>
</h2>
			<h3><?php 
        _e('Simple Product Export', 'al-ecommerce-product-catalog');
        ?>
</h3>
			<?php 
        $export = isset($_GET['export_csv']) ? $_GET['export_csv'] : '';
        if ($export == 1) {
            $url = simple_export_to_csv();
            echo '<a style="display: block; margin-top: 20px;" href="' . $url . '">' . __("Download CSV", 'al-ecommerce-product-catalog') . '</a>';
        } else {
            ?>
				<a style="display: block; margin-top: 20px;" href="<?php 
            echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=product-settings&submenu=csv&export_csv=1');
            ?>
"><button class="button" ><?php 
            _e("Export All Products to CSV file", 'al-product-csv');
            ?>
</button></a>
				<h3><?php 
            _e('Simple Product Import', 'al-ecommerce-product-catalog');
            ?>
</h3><?php 
            simple_upload_csv_products_file();
            ?>
			<?php 
        }
        ?>
		</div>
		<div class="helpers"><div class="wrapper"><?php 
        main_helper();
        doc_helper(__('import', 'al-ecommerce-product-catalog'), 'product-import');
        ?>
			</div></div><?php 
    }
}
Example #3
0
function custom_design_content()
{
    ?>
	<div class="design-product-settings settings-wrapper">
		<div class="settings-submenu">
			<h3>
				<a id="archive-design" class="element current" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=design-settings&submenu=archive-design');
    ?>
"><?php 
    _e('Product Listing', 'ecommerce-product-catalog');
    ?>
</a>
				<a id="single-design" class="element" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=design-settings&submenu=single-design');
    ?>
"><?php 
    _e('Product Page', 'ecommerce-product-catalog');
    ?>
</a>
				<a id="design-schemes" class="element" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=design-settings&submenu=design-schemes');
    ?>
"><?php 
    _e('Design Schemes', 'ecommerce-product-catalog');
    ?>
</a>
				<?php 
    do_action('custom-design-submenu');
    ?>
			</h3>
		</div>
		<div class="setting-content submenu"><?php 
    do_action('custom-design-settings');
    ?>
		</div>
		<div class="helpers"><div class="wrapper"><?php 
    main_helper();
    $submenu = $_GET['submenu'];
    if ($submenu == 'single-design') {
        doc_helper(__('gallery', 'ecommerce-product-catalog'), 'product-gallery');
    }
    ?>
			</div></div>
	</div>
	<?php 
}
function general_settings_content()
{
    $submenu = isset($_GET['submenu']) ? $_GET['submenu'] : '';
    ?>
	<div class="overall-product-settings settings-wrapper" style="clear:both;">
		<div class="settings-submenu">
			<h3>
				<a id="general-settings" class="element current"
				   href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=product-settings&submenu=general-settings');
    ?>
"><?php 
    _e('General Settings', 'al-ecommerce-product-catalog');
    ?>
</a>
				   <?php 
    do_action('general_submenu');
    ?>
			</h3>
		</div>

		<?php 
    if ($submenu == 'general-settings' or $submenu == '') {
        ?>
			<div class="setting-content submenu">
				<script>
		            jQuery( '.settings-submenu a' ).removeClass( 'current' );
		            jQuery( '.settings-submenu a#general-settings' ).addClass( 'current' );
				</script>
				<h2><?php 
        _e('General Settings', 'al-ecommerce-product-catalog');
        ?>
</h2>

				<form method="post" action="options.php">
					<?php 
        settings_fields('product_settings');
        $product_currency = get_product_currency_code();
        $product_currency_settings = get_currency_settings();
        $enable_product_listing = get_option('enable_product_listing', 1);
        //$product_listing_url		 = product_listing_url();
        $product_archive = get_product_listing_id();
        $archive_multiple_settings = get_multiple_settings();
        /*
        					  $page_get					 = get_page_by_path( $product_listing_url );
        
        					  if ( $product_archive != '' ) {
        					  $new_product_listing_url = get_page_uri( $product_archive );
        					  if ( $new_product_listing_url != '' ) {
        					  update_option( 'product_listing_url', $new_product_listing_url );
        					  } else {
        					  update_option( 'product_listing_url', __( 'products', 'al-ecommerce-product-catalog' ) );
        					  }
        					  } else if ( !empty( $page_get->ID ) ) {
        					  update_option( 'product_archive', $page_get->ID );
        					  $product_archive = $page_get->ID;
        					  } */
        $disabled = '';
        if (!is_advanced_mode_forced()) {
            ?>
						<h3><?php 
            _e('Theme Integration', 'al-ecommerce-product-catalog');
            ?>
</h3><?php 
            if (get_integration_type() == 'simple') {
                $disabled = 'disabled';
                implecode_warning('<p>' . __('The simple mode allows to use eCommerce Product Catalog most features. You can build the product listing pages and category pages by using a [show_products] shortcode. Simple mode uses your theme page layout so it can show unwanted elements on product page. If it does please switch to Advanced Mode and see if it works out of the box.', 'al-ecommerce-product-catalog') . '</p><p>' . __('Switching to Advanced Mode also gives additional features: automatic product listing, category pages, product search and category widget. Building a product catalog in Advanced Mode will be less time consuming as you don’t need to use a shortcode for everything.', 'al-ecommerce-product-catalog') . '</p>');
            }
            ?>
						<table>
							<?php 
            implecode_settings_radio(__('Choose theme integration type', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[integration_type]', $archive_multiple_settings['integration_type'], array('simple' => __('Simple Integration<br>', 'al-ecommerce-product-catalog'), 'advanced' => __('Advanced Integration', 'al-ecommerce-product-catalog')));
            ?>
						</table>
					<?php 
        }
        ?>
					<h3><?php 
        _e('Product Catalog', 'al-ecommerce-product-catalog');
        ?>
</h3>
					<table><?php 
        implecode_settings_text(__('Catalog Singular Name', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[catalog_singular]', $archive_multiple_settings['catalog_singular'], null, 1, null, __('Admin panel customisation setting. Change it to what you sell.', 'al-ecommerce-product-catalog'));
        implecode_settings_text(__('Catalog Plural Name', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[catalog_plural]', $archive_multiple_settings['catalog_plural'], null, 1, null, __('Admin panel customisation setting. Change it to what you sell.', 'al-ecommerce-product-catalog'));
        ?>
					</table>

					<h3><?php 
        _e('Product listing page', 'al-ecommerce-product-catalog');
        ?>
</h3><?php 
        if ($disabled == 'simple') {
            implecode_warning(sprintf(__('Product listing page is disabled with simple theme integration. See <a href="%s">Theme Integration Guide</a> to enable product listing page with pagination or use [show_products] shortcode on the page selected below.', 'al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/product-catalog/theme-integration-guide/#cam=simple-mode&key=product-listing'));
        }
        ?>
					<table>
						<tr>
							<td style="width: 180px">
								<?php 
        _e('Enable Product Listing Page', 'al-ecommerce-product-catalog');
        ?>
:
							</td>
							<td>
								<input <?php 
        echo $disabled;
        ?>
									title="<?php 
        _e('Disable and use [show_products] shortcode to display the products.', 'al-ecommerce-product-catalog');
        ?>
"
									type="checkbox" name="enable_product_listing"
									value="1"<?php 
        checked(1, $enable_product_listing);
        ?>
 />
							</td>
						</tr>
						<tr>
							<td>
								<?php 
        _e('Choose Product Listing Page', 'al-ecommerce-product-catalog');
        ?>
:
							</td>
							<td><?php 
        if ($enable_product_listing == 1) {
            $listing_url = product_listing_url();
            select_page('product_archive', __('Default', 'al-ecommerce-product-catalog'), $product_archive, true, $listing_url);
        } else {
            select_page('product_archive', __('Default', 'al-ecommerce-product-catalog'), $product_archive, true);
        }
        ?>
							</td>
						</tr> <?php 
        /*
        						  <tr>
        						  <td><?php _e('Product listing URL', 'al-ecommerce-product-catalog'); ?>:</td>
        						  <td class="archive-url-td"><a target="_blank" class="archive-url" href="<?php echo product_listing_url() ?>"><?php
        						  $listin_url = product_listing_url();
        						  $listin_urllen = strlen($listin_url);
        						  if ($listin_urllen > 40) {
        						  $listin_url = substr($listin_url, 0, 20).'...'.substr($listin_url, $listin_urllen - 20, $listin_urllen);
        						  }
        						  echo $listin_url;
        						  ?></a></td>
        						  </tr> */
        ?>
						<tr>
							<td><?php 
        _e('Product listing shows at most', 'al-ecommerce-product-catalog');
        ?>
 </td>
							<td><input <?php 
        echo $disabled;
        ?>
									title="<?php 
        _e('You can also use shortcode with products_limit attribute to set this.', 'al-ecommerce-product-catalog');
        ?>
"
									size="30" class="number-box" type="number" step="1" min="0"
									name="archive_multiple_settings[archive_products_limit]" id="archive_products_limit"
									value="<?php 
        echo $archive_multiple_settings['archive_products_limit'];
        ?>
"/> <?php 
        _e('products', 'al-ecommerce-product-catalog');
        ?>
								.
							</td>
						</tr><?php 
        implecode_settings_radio(__('Product listing shows', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[product_listing_cats]', $archive_multiple_settings['product_listing_cats'], array('off' => __('Products', 'al-ecommerce-product-catalog') . '<br>', 'on' => __('Products & Main Categories', 'al-ecommerce-product-catalog') . '<br>', 'cats_only' => __('Main Categories', 'al-ecommerce-product-catalog')));
        $sort_options = get_product_sort_options();
        implecode_settings_radio(__('Product order', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[product_order]', $archive_multiple_settings['product_order'], $sort_options, true, __('This is also the default setting for sorting drop-down.', 'al-ecommerce-product-catalog'));
        do_action('product_listing_page_settings');
        ?>
					</table><?php 
        //implecode_info(__('You can also use shortcode to show your products whenever you want on the website. Just paste on any page: [show_products] and you will display all products in place of the shortcode. <br><br>To show products from just one category, use: [show_products category="2"] where 2 is category ID (you can display several categories by inserting comma separated IDs). <br><br>To display products by IDs, use: [show_products product="5"], where 5 is product ID.', 'al-ecommerce-product-catalog'));
        ?>
					<h3><?php 
        _e('Categories Settings', 'al-ecommerce-product-catalog');
        ?>
</h3><?php 
        if ($disabled != '') {
            implecode_warning(sprintf(__('Category pages are disabled with simple theme integration. See <a href="%s">Theme Integration Guide</a> to enable category pages or use [show_products category="1"] (where "1" is category ID) on any page to show products from certain category.', 'al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/product-catalog/theme-integration-guide/#cam=simple-mode&key=categories-settings'));
        }
        ?>
					<table>
						<?php 
        if (is_ic_permalink_product_catalog()) {
            ?>
							<tr>
								<td><?php 
            _e('Categories Parent URL', 'al-ecommerce-product-catalog');
            ?>
:</td>
								<?php 
            $site_url = site_url();
            $urllen = strlen($site_url);
            if ($urllen > 25) {
                $site_url = substr($site_url, 0, 11) . '...' . substr($site_url, $urllen - 11, $urllen);
            }
            ?>
								<td class="longer"><?php 
            echo $site_url;
            ?>
/<input <?php 
            echo $disabled;
            ?>
 type="text"
																										  name="archive_multiple_settings[category_archive_url]"
																										  title="<?php 
            _e('Cannot be the same as product listing page slug.', 'al-ecommerce-product-catalog');
            ?>
"
																										  id="category_archive_url"
																										  value="<?php 
            echo sanitize_title($archive_multiple_settings['category_archive_url']);
            ?>
"/>/<?php 
            _e('category-name', 'al-ecommerce-product-catalog');
            ?>
									/
								</td>
							</tr><?php 
        }
        implecode_settings_radio(__('Category Page shows', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[category_top_cats]', $archive_multiple_settings['category_top_cats'], array('off' => __('Products', 'al-ecommerce-product-catalog') . '<br>', 'on' => __('Products & Subcategories', 'al-ecommerce-product-catalog') . '<br>', 'only_subcategories' => __('Subcategories', 'al-ecommerce-product-catalog')));
        implecode_settings_radio(__('Categories Display', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[cat_template]', $archive_multiple_settings['cat_template'], array('template' => __('Template<br>', 'al-ecommerce-product-catalog'), 'link' => __('URLs', 'al-ecommerce-product-catalog')), true, array('template' => __('Display categories with the same listing theme as products.', 'al-ecommerce-product-catalog'), 'link' => __('Display categories as simple links.', 'al-ecommerce-product-catalog')));
        implecode_settings_checkbox(__('Disable Image on Category Page', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[cat_image_disabled]', $archive_multiple_settings['cat_image_disabled']);
        do_action('product_category_settings', $archive_multiple_settings);
        ?>
					</table>
					<h3><?php 
        _e('SEO Settings', 'al-ecommerce-product-catalog');
        ?>
</h3><?php 
        if ($disabled != '') {
            implecode_warning(sprintf(__('SEO settings are disabled with simple theme integration. See <a href="%s">Theme Integration Guide</a> to enable SEO settings.', 'al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/product-catalog/theme-integration-guide/#cam=simple-mode&key=seo-settings'));
        }
        ?>
					<table>
						<?php 
        implecode_settings_text(__('Archive SEO Title', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[seo_title]', $archive_multiple_settings['seo_title']);
        implecode_settings_checkbox(__('Enable SEO title separator', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[seo_title_sep]', $archive_multiple_settings['seo_title_sep']);
        ?>

					</table>
					<h3><?php 
        _e('Breadcrumbs Settings', 'al-ecommerce-product-catalog');
        ?>
</h3><?php 
        if ($disabled != '') {
            implecode_warning(sprintf(__('Breadcrumbs are disabled with simple theme integration. See <a href="%s">Theme Integration Guide</a> to enable product breadcrumbs.', 'al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/product-catalog/theme-integration-guide/#cam=simple-mode&key=breadcrumbs-settings'));
        }
        ?>
					<table>
						<tr>
							<td><?php 
        _e('Enable Product Breadcrumbs:', 'al-ecommerce-product-catalog');
        ?>
 </td>
							<td><input <?php 
        echo $disabled;
        ?>
 type="checkbox"
															   name="archive_multiple_settings[enable_product_breadcrumbs]"
															   value="1"<?php 
        checked(1, isset($archive_multiple_settings['enable_product_breadcrumbs']) ? $archive_multiple_settings['enable_product_breadcrumbs'] : '');
        ?>
 />
							</td>
						</tr>
						<tr>
							<td><?php 
        _e('Product listing breadcrumbs title:', 'al-ecommerce-product-catalog');
        ?>
 </td>
							<td><input <?php 
        echo $disabled;
        ?>
 type="text"
															   name="archive_multiple_settings[breadcrumbs_title]"
															   id="breadcrumbs_title"
															   value="<?php 
        echo $archive_multiple_settings['breadcrumbs_title'];
        ?>
"/>
							</td>
						</tr>

					</table>
					<h3><?php 
        _e('Payment and currency', 'al-ecommerce-product-catalog');
        ?>
</h3>
					<table id="payment_table">
						<thead>
							<?php 
        implecode_settings_radio(__('Price', 'al-ecommerce-product-catalog'), 'product_currency_settings[price_enable]', $product_currency_settings['price_enable'], array('on' => __('On<br>', 'al-ecommerce-product-catalog'), 'off' => __('Off', 'al-ecommerce-product-catalog')));
        ?>
						</thead>
						<tbody><?php 
        do_action('payment_settings_table_start');
        ?>
							<tr>
								<td><?php 
        _e('Your currency', 'al-ecommerce-product-catalog');
        ?>
:</td>
								<td><select id="product_currency" name="product_currency">
										<?php 
        $currencies = available_currencies();
        foreach ($currencies as $currency) {
            ?>
											<option name="product_currency[<?php 
            echo $currency;
            ?>
]"
													value="<?php 
            echo $currency;
            ?>
"<?php 
            selected($currency, $product_currency);
            ?>
><?php 
            echo $currency;
            ?>
</option>
												<?php 
        }
        ?>
									</select></td>
								<td rowspan="4">
									<div
										class="al-box info"><?php 
        _e('If you choose custom currency symbol, it will override "Your Currency" setting. This is very handy if you want to use not supported currency or a preferred symbol for your currency.', 'al-ecommerce-product-catalog');
        ?>
</div>
								</td>
							</tr>
							<tr>
								<td><?php 
        _e('Custom Currency Symbol', 'al-ecommerce-product-catalog');
        ?>
:</td>
								<td><input type="text" name="product_currency_settings[custom_symbol]"
										   class="small_text_box" id="product_currency_settings"
										   value="<?php 
        echo $product_currency_settings['custom_symbol'];
        ?>
"/></td>
							</tr>
							<?php 
        implecode_settings_radio(__('Currency position', 'al-ecommerce-product-catalog'), 'product_currency_settings[price_format]', $product_currency_settings['price_format'], array('before' => __('Before Price<br>', 'al-ecommerce-product-catalog'), 'after' => __('After Price', 'al-ecommerce-product-catalog')));
        implecode_settings_radio(__('Space between currency & price', 'al-ecommerce-product-catalog'), 'product_currency_settings[price_space]', $product_currency_settings['price_space'], array('on' => __('On<br>', 'al-ecommerce-product-catalog'), 'off' => __('Off', 'al-ecommerce-product-catalog')));
        implecode_settings_text(__('Thousands Separator', 'al-ecommerce-product-catalog'), 'product_currency_settings[th_sep]', $product_currency_settings['th_sep'], null, 1, 'small_text_box');
        implecode_settings_text(__('Decimal Separator', 'al-ecommerce-product-catalog'), 'product_currency_settings[dec_sep]', $product_currency_settings['dec_sep'], null, 1, 'small_text_box');
        ?>
						</tbody>
					</table>
					<script>jQuery( document ).ready( function () {
		                    jQuery( "input[name=\"product_currency_settings[price_enable]\"]" ).change( function () {
		                        if ( jQuery( this ).val() == 'off' && jQuery( this ).is( ':checked' ) ) {
		                            jQuery( "#payment_table tbody" ).hide( "slow" );
		                        }
		                        else {
		                            jQuery( "#payment_table tbody" ).show( "slow" );
		                        }
		                    } );
		                    jQuery( "input[name=\"product_currency_settings[price_enable]\"]" ).trigger( "change" );
		                } );</script>
					<h3><?php 
        _e('Additional Settings', 'al-ecommerce-product-catalog');
        ?>
</h3>
					<table><?php 
        implecode_settings_checkbox(__('Disable SKU', 'al-ecommerce-product-catalog'), 'archive_multiple_settings[disable_sku]', $archive_multiple_settings['disable_sku']);
        ?>
					</table>
					<?php 
        do_action('general-settings');
        ?>
					<p class="submit">
						<input type="submit" class="button-primary"
							   value="<?php 
        _e('Save changes', 'al-ecommerce-product-catalog');
        ?>
"/>
					</p>
				</form>
			</div>
			<div class="helpers">
				<div class="wrapper"><?php 
        main_helper();
        doc_helper(__('shortcode', 'al-ecommerce-product-catalog'), 'product-shortcode');
        //did_know_helper('support', __('You can get instant support by email','al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/plugins/premium-support/')
        ?>
				</div>
			</div>
			<?php 
    }
    do_action('product-settings');
    permalink_options_update();
    ?>
	</div>

	<?php 
}
function custom_names_content()
{
    ?>
	<div class="names-product-settings settings-wrapper"> <?php 
    $tab = $_GET['tab'];
    $submenu = $_GET['submenu'];
    ?>
		<div class="settings-submenu">
			<h3>
				<a id="single-names" class="element current" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=names-settings&submenu=single-names');
    ?>
"><?php 
    _e('Single Product', 'al-ecommerce-product-catalog');
    ?>
</a>
				<a id="archive-names" class="element" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=names-settings&submenu=archive-names');
    ?>
"><?php 
    _e('Product Listings', 'al-ecommerce-product-catalog');
    ?>
</a>
			</h3>
		</div><?php 
    if ($submenu == 'single-names') {
        ?>
			<div id="single_names" class="setting-content submenu">
				<script>
					jQuery( '.settings-submenu a' ).removeClass( 'current' );
					jQuery( '.settings-submenu a#single-names' ).addClass( 'current' );
				</script>
				<form method="post" action="options.php">
					<?php 
        settings_fields('product_names_single');
        $default_single_names = default_single_names();
        $single_names = get_option('single_names', $default_single_names);
        $single_names['product_sku'] = isset($single_names['product_sku']) ? $single_names['product_sku'] : 'SKU:';
        ?>
					<h2><?php 
        _e('Front-end Labels', 'al-ecommerce-product-catalog');
        ?>
</h2>
					<h3><?php 
        _e('Single Product Labels', 'al-ecommerce-product-catalog');
        ?>
</h3>
					<table class="wp-list-table widefat product-settings-table" style="clear:right; text-align: left;">
						<thead><th><strong><?php 
        _e('Front-end Element', 'al-ecommerce-product-catalog');
        ?>
</strong></th><th><strong><?php 
        _e('Front-end Text', 'al-ecommerce-product-catalog');
        ?>
</strong></th></thead>
						<tbody>
							<tr><td><?php 
        _e('Price Label', 'al-ecommerce-product-catalog');
        ?>
</td><td><input type="text" name="single_names[product_price]" value="<?php 
        echo $single_names['product_price'];
        ?>
" /></td></tr>
							<tr><td><?php 
        _e('SKU Label', 'al-ecommerce-product-catalog');
        ?>
</td><td><input type="text" name="single_names[product_sku]" value="<?php 
        echo $single_names['product_sku'];
        ?>
" /></td></tr>
							<tr><td><?php 
        _e('Shipping Label', 'al-ecommerce-product-catalog');
        ?>
</td><td><input type="text" name="single_names[product_shipping]" value="<?php 
        echo $single_names['product_shipping'];
        ?>
" /></td></tr>
							<tr><td><?php 
        _e('Features Label', 'al-ecommerce-product-catalog');
        ?>
</td><td><input type="text" name="single_names[product_features]" value="<?php 
        echo $single_names['product_features'];
        ?>
" /></td></tr>
							<tr><td><?php 
        _e('Another Categories', 'al-ecommerce-product-catalog');
        ?>
</td><td><input type="text" name="single_names[other_categories]" value="<?php 
        echo $single_names['other_categories'];
        ?>
" /></td></tr>
							<tr><td><?php 
        _e('Return to Products', 'al-ecommerce-product-catalog');
        ?>
</td><td><input type="text" name="single_names[return_to_archive]" value="<?php 
        echo $single_names['return_to_archive'];
        ?>
" /></td></tr>
		<?php 
        do_action('single_names_table', $single_names);
        ?>
						</tbody>
					</table>
					<p class="submit">
						<input type="submit" class="button-primary" value="<?php 
        _e('Save changes', 'al-ecommerce-product-catalog');
        ?>
" />
					</p>
				</form>
			</div>
			<div class="helpers"><div class="wrapper"><?php 
        main_helper();
        ?>
				</div></div><?php 
    } else {
        if ($submenu == 'archive-names') {
            ?>
			<div id="archive_names" class="setting-content submenu">
				<script>
					jQuery( '.settings-submenu a' ).removeClass( 'current' );
					jQuery( '.settings-submenu a#archive-names' ).addClass( 'current' );
				</script>
				<form method="post" action="options.php"><?php 
            settings_fields('product_names_archive');
            $archive_names = get_archive_names();
            ?>
					<h2><?php 
            _e('Front-end Labels', 'al-ecommerce-product-catalog');
            ?>
</h2><?php 
            $disabled = '';
            if (get_integration_type() == 'simple') {
                $disabled = 'disabled';
                implecode_warning(sprintf(__('Product listing pages are disabled with simple theme integration. See <a href="%s">Theme Integration Guide</a> to enable product listing pages.', 'al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/product-catalog/theme-integration-guide/#cam=simple-mode&key=front-labels'));
            }
            ?>
					<h3><?php 
            _e('Product Listing Labels', 'al-ecommerce-product-catalog');
            ?>
</h3>
					<table class="wp-list-table widefat product-settings-table" style="clear:right; text-align: left; width: 100%;">
						<style>.names-product-settings .setting-content th {text-align: left;}</style>
						<thead><th><strong><?php 
            _e('Front-end Element', 'al-ecommerce-product-catalog');
            ?>
</strong></th><th style="width:69%"><strong><?php 
            _e('Front-end Text', 'al-ecommerce-product-catalog');
            ?>
</strong></th></thead>
						<tbody>
							<?php 
            implecode_settings_text(__('Product Archive Title', 'al-ecommerce-product-catalog'), 'archive_names[all_products]', $archive_names['all_products'], null, 1, 'wide', null, $disabled);
            implecode_settings_text(__('Categories Header', 'al-ecommerce-product-catalog'), 'archive_names[all_main_categories]', $archive_names['all_main_categories'], null, 1, 'wide', null, $disabled);
            implecode_settings_text(__('Subcategories Header', 'al-ecommerce-product-catalog'), 'archive_names[all_subcategories]', $archive_names['all_subcategories'], null, 1, 'wide', null, $disabled);
            implecode_settings_text(__('Category Prefix', 'al-ecommerce-product-catalog'), 'archive_names[all_prefix]', $archive_names['all_prefix'], null, 1, 'wide', null, $disabled);
            implecode_settings_text(__('Category Products Header', 'al-ecommerce-product-catalog'), 'archive_names[category_products]', $archive_names['category_products'], null, 1, 'wide', null, $disabled);
            ?>
						</tbody>
					</table>
					<p class="submit">
						<input type="submit" <?php 
            echo $disabled;
            ?>
 class="button-primary" value="<?php 
            _e('Save changes', 'al-ecommerce-product-catalog');
            ?>
" />
					</p>
				</form>
			</div>
			<div class="helpers"><div class="wrapper"><?php 
            main_helper();
            ?>
				</div></div><?php 
        }
    }
    do_action('names-settings');
    ?>
	</div><?php 
}
Example #6
0
function shipping_settings_content()
{
    $submenu = $_GET['submenu'];
    ?>
	<div class="shipping-product-settings settings-wrapper" style="clear:both;">
		<div class="settings-submenu">
			<h3>
				<a id="shipping-settings" class="element current" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=shipping-settings&submenu=shipping');
    ?>
"><?php 
    _e('Shipping Settings', 'ecommerce-product-catalog');
    ?>
</a>
				<?php 
    do_action('shipping_submenu');
    ?>
			</h3>
		</div><?php 
    if ($submenu == 'shipping') {
        ?>
			<div class="setting-content submenu">
				<script>
					jQuery( '.settings-submenu a' ).removeClass( 'current' );
					jQuery( '.settings-submenu a#shipping-settings' ).addClass( 'current' );
				</script>
				<h2><?php 
        _e('Shipping Settings', 'ecommerce-product-catalog');
        ?>
</h2>
				<form method="post" action="options.php">
					<?php 
        settings_fields('product_shipping');
        $shipping_count = get_shipping_options_number();
        ?>
					<h3><?php 
        _e('Product shipping options', 'ecommerce-product-catalog');
        ?>
</h3>
					<table>
						<tr>
							<td colspan="2"><?php 
        _e('Number of shipping options', 'ecommerce-product-catalog');
        ?>
 <input size="30" type="number" step="1" min="0" name="product_shipping_options_number" id="admin-number-field" value="<?php 
        echo $shipping_count;
        ?>
" /><input type="submit" class="button" value="<?php 
        _e('Update', 'ecommerce-product-catalog');
        ?>
" /></td>
						</tr>
					</table>
					<?php 
        if ($shipping_count > 0) {
            ?>
						<div class="al-box info"><p><?php 
            _e("If you fill out the fields below, system will automatically pre-fill the fields on product pages so you doesn't have to fill them every time you add product.</p><p>When every product in your catalogue has different shipping options you can leave all or just a part of these fields empty.", 'ecommerce-product-catalog');
            ?>
</p><p><?php 
            _e('You can change these default values on every product page.', 'ecommerce-product-catalog');
            ?>
</p></div>

						<table class="wp-list-table widefat product-settings-table dragable">
							<thead><tr><th></th><th class="title"><b><?php 
            _e('Shipping default name', 'ecommerce-product-catalog');
            ?>
</b></th><th></th><th class="title"><b><?php 
            _e('Shipping default cost', 'ecommerce-product-catalog');
            ?>
</b></th><th class="dragger"></th></tr></thead><tbody>
								<?php 
            $shipping_cost = get_option('product_shipping_cost', DEF_VALUE);
            $shipping_label = get_option('product_shipping_label');
            for ($i = 1; $i <= $shipping_count; $i++) {
                $shipping_label[$i] = isset($shipping_label[$i]) ? $shipping_label[$i] : '';
                $shipping_cost[$i] = isset($shipping_cost[$i]) ? $shipping_cost[$i] : '';
                // Echo out the field
                echo '<tr><td class="lp-column">' . $i . '.</td><td class="product-shipping-label-column"><input class="product-shipping-label" type="text" name="product_shipping_label[' . $i . ']" value="' . esc_html($shipping_label[$i]) . '" /></td><td class="lp-column">:</td><td><input id="admin-number-field" class="product-shipping-cost" type="number" min="0" name="product_shipping_cost[' . $i . ']" value="' . floatval($shipping_cost[$i]) . '" /> ' . product_currency() . '</td><td class="dragger"></td></tr>';
            }
            ?>
							</tbody></table>
			<?php 
            //do_action('product-attributes');
            ?>
						<p class="submit">
							<input type="submit" class="button-primary" value="<?php 
            _e('Save changes', 'ecommerce-product-catalog');
            ?>
" />
						</p>
		<?php 
        } else {
            ?>
						<tr><td colspan="2">
								<div class="al-box warning"><?php 
            _e('Shipping disabled. To enable set minimum 1 shipping option.', 'ecommerce-product-catalog');
            ?>
</div>
							</td></tr>
						</table>
		<?php 
        }
        ?>

				</form>
			</div>
			<div class="helpers"><div class="wrapper"><?php 
        main_helper();
        ?>
				</div></div>

	<?php 
    }
    do_action('product-shipping');
    ?>
	</div><?php 
}
Example #7
0
    function implecode_custom_support_settings_content()
    {
        ?>
	<?php 
        $submenu = isset($_GET['submenu']) ? $_GET['submenu'] : '';
        ?>
	<?php 
        if ($submenu == 'support') {
            ?>
		<div class="setting-content submenu support-tab">
			<script>
				jQuery('.settings-submenu a').removeClass('current');
				jQuery('.settings-submenu a#support-settings').addClass('current');
			</script>
			<h2><?php 
            _e('impleCode Support', 'al-ecommerce-product-catalog');
            ?>
</h2>
			<p><?php 
            _e('<b>eCommerce Product Catalog is free to use</b>. That\'s great! It\'s a pleasure to serve it to you. Let\'s keep it free forever!', 'al-ecommerce-product-catalog');
            ?>
</p><?php 
            /*
            			<p><?php _e('If you found eCommerce Product Catalog useful or it saved you some amount of time please consider to support its development by buying premium support or an extension. This is better than a donation, because you get even more value with it. All the income from premium support and extensions goes for eCommerce Product Catalog and its extensions development. Everybody wins.','al-ecommerce-product-catalog'); ?></p> */
            ?>
			<p><?php 
            _e('This awesome plugin is developed under impleCode brand which is a legally operating company. It means that <b>you can be assured that the high quality development will be continuous</b>.', 'al-ecommerce-product-catalog');
            ?>
</p>
			<div style="clear: both; height: 10px;"></div>
			<div class="extension premium-support">
				<a href="http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=support-link"><h3><span>eCommerce Product Catalog Premium</span></h3></a>
				<p><?php 
            _e('<b>One year</b> of high quality and speedy email', 'al-ecommerce-product-catalog');
            ?>
 <a target="_blank" href="http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=support-link">Premium Support</a> <?php 
            _e('from impleCode support team for just', 'al-ecommerce-product-catalog');
            ?>
 $19.99.</p>
				<form style="text-align: center; position: relative; top: 10px;" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
					<input type="hidden" name="cmd" value="_s-xclick">
					<input type="hidden" name="hosted_button_id" value="LCRGR95EST66S">
					<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
					<img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">
				</form>
			</div>
			<div class="extension premium-support">
			<a href="http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=extensions-link#extensions"><h3><span>eCommerce Product Catalog Extensions</span></h3></a>
			<p><?php 
            echo sprintf(__('<b>Extensions</b> provide additional useful features. They improve eCommerce Product Catalog in a field of <a target="_blank" href="%1$s">SEO</a>, <a target="_blank" href="%3$s">Productivity</a>, <a target="_blank" href="%2$s">Usability</a> and <a target="_blank" href="%4$s">Conversion</a>.', 'al-ecommerce-product-catalog'), esc_url('http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=extensions-link-seo#seo_usability_boosters'), esc_url('http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=extensions-link-usability#seo_usability_boosters'), esc_url('http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=extensions-link-productivity#productivity_boosters'), esc_url('http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=extensions-link-conversion#conversion_boosters'));
            ?>
</p>
			<p><a target="_blank" href="http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=extensions-link#extensions"><input style="cursor:pointer;" class="button-primary" type="button" value="Check out the extensions &raquo;"></a></p>
			</div>
			<div style="clear: both; height: 10px;"></div>
			<h2><?php 
            _e('Premium Support Free Additions', 'al-ecommerce-product-catalog');
            ?>
</h2>
			<p><?php 
            _e('Apart of fast, confidential email support <b>every premium support member will receive some advanced features</b> for eCommerce Product Catalog as a free welcome gift.', 'al-ecommerce-product-catalog');
            ?>
</p>
			<h4><?php 
            _e('Premium Features:', 'al-ecommerce-product-catalog');
            ?>
</h4>
			<ol>
			<li><?php 
            _e('<b>Product tags</b> - which is considered as SEO booster if used properly', 'al-ecommerce-product-catalog');
            ?>
;</li>
			<li><?php 
            _e('<b>Product sidebar</b> on product page under the image', 'al-ecommerce-product-catalog');
            ?>
;</li>
			<li><?php 
            _e('<b>Enable/disable sidebar</b> on product listing pages', 'al-ecommerce-product-catalog');
            ?>
;</li>
			<li><?php 
            _e('<b>More styling</b> - set product sidebar and product description width', 'al-ecommerce-product-catalog');
            ?>
;</li>
			<li><?php 
            _e('<b>Category widget enhancement</b> - Show child categories only on parent category pages', 'al-ecommerce-product-catalog');
            ?>
.</li>
			</ol>
			<p><?php 
            _e('Please just go ahead and use the Buy Now button above to receive the premium support service and the free additions immediately. You will receive the premium extension on your PayPal email address immediately after the payment is confirmed.', 'al-ecommerce-product-catalog');
            ?>
</p>
			<p><?php 
            echo sprintf(__('If you need to get it on different email address please use the <a target="_blank" href="%s">impleCode website to order the premium support</a>. It will let you set different email address than the one for PayPal.', 'al-ecommerce-product-catalog'), esc_url('http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=support-link-1'));
            ?>
</p>
			<h2><?php 
            _e('Theme Integration', 'al-ecommerce-product-catalog');
            ?>
</h2>
			<p><?php 
            echo sprintf(__('As you may already know some themes may need Theme Integration to fully support eCommerce Product Catalog. I wrote this <a target="_blank" href="%1$s">theme integrations guide</a>, however to make it even easier you will get <a target="_blank" href="%2$s">Advanced Theme Integration</a> service for free if you choose <a target="_blank" href="%3$s">Premium Support</a> service.', 'al-ecommerce-product-catalog'), esc_url('http://implecode.com/wordpress/product-catalog/theme-integration-guide/#cam=catalog-support-tab&key=integration-link'), esc_url('http://implecode.com/wordpress/plugins/advanced-theme-integration/#cam=catalog-support-tab&key=integration-service-link'), esc_url('http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=support-link-2'));
            ?>
</p>
			<h2><?php 
            _e('eCommerce Product Catalog documentation', 'al-ecommerce-product-catalog');
            ?>
</h2>
			<p><?php 
            echo sprintf(__('<b>eCommerce Product Catalog</b> documentation is being developed <a target="_blank" href="%1$s">here</a>. For questions about eCommerce Product Catalog please use <a target="_blank" href="%2$s">support forum</a> or <a target="_blank" href="%3$s">Premium Support service</a>.', 'al-ecommerce-product-catalog'), esc_url('http://implecode.com/wordpress/product-catalog/#cam=catalog-support-tab&key=docs-link'), esc_url('http://wordpress.org/support/plugin/ecommerce-product-catalog'), esc_url('http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=support-link-3'));
            ?>
</p>
			<?php 
            /*
            			<h2><?php _e('Plugin Extensions', 'al-ecommerce-product-catalog') ?></h2>
            			<p><?php _e('For many users eCommerce Product Catalog standard features is more than enough. However for more specialized needs there are some extensions available. eCommerce Product Catalog extensions are divided into:', 'al-ecommerce-product-catalog') ?></p>
            			<table class="wp-list-table widefat">
            				<thead>
            					<th>
            						<b>SEO & USABILITY EXTENSIONS</b>
            					</th>
            					<th>
            						<b>PRODUCTIVITY EXTENSIONS</b>
            					</th>
            					<th>
            						<b>CONVERSION EXTENSIONS</b>
            					</th>
            				<thead>
            				<tbody>
            					<tr>
            						<td>
            							<ul class="support-ul">
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/custom-product-order/#cam=catalog-support-tab&key=custom-product-order-link">Custom Product Order</a> - <?php _e('show products in custom order, show featured products always on top', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/upload-pdf/#cam=catalog-support-tab&key=upload-pdf-link">Upload PDF</a> - <?php _e('a downloadable PDF attached to the product', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/product-search-pro/#cam=catalog-support-tab&key=product-search-pro-link">Product Search PRO</a> - <?php _e('better product search, completely rewritten search engine', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/smarter-product-urls/#cam=catalog-support-tab&key=smarter-product-urls-link">Smarter Product URLs</a> - <?php _e('URL structure improved for SEO and Usability purpose', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/product-gallery-advanced/#cam=catalog-support-tab&key=gallery-advanced-link">Product Gallery Advanced</a> - <?php _e('add more images and show them in lightbox', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/smart-multiple-catalogs/#cam=catalog-support-tab&key=smart-multiple-catalogs-link">Smart Multiple Catalogs</a> - <?php _e('create completely separate product catalogs, with separate categories and URL structure, even with separate management in WP Admin', 'al-ecommerce-product-catalog') ?></li>
            							</ul>
            						</td>
            						<td>
            							<ul class="support-ul">
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/drop-attributes/#cam=catalog-support-tab&key=drop-down-attributes-link">Drop-down Attributes</a> - <?php _e('limit possible values for certain attributes', 'al-ecommerce-product-catalog') ?></li>
            							</ul>
            						</td>
            						<td>
            							<ul class="support-ul">
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/quote-form/#cam=catalog-support-tab&key=quote-form-link">Quote Form</a> - <?php _e('allow users to ask for a quote for individual products', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/paypal-gateway/#cam=catalog-support-tab&key=paypal-gateway-link">PayPal Gateway</a> - <?php _e('allow fast PayPal payments through order form', 'al-ecommerce-product-catalog') ?></li>
            								<li><a target="_blank" href="http://implecode.com/wordpress/plugins/order-form/#cam=catalog-support-tab&key=order-form-link">Order Form</a> - <?php _e('allow users to order individual products (not a shopping cart), good when users buy only one product at a time', 'al-ecommerce-product-catalog') ?></li>
            							</ul>
            						</td>
            					</tr>
            				</tbody>
            			</table>*/
            ?>
			<p style="border: 1px solid; padding: 10px 10px 26px 10px;">
				<a style="float: left; margin-right: 10px;" target="_blank" href="http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=donation-support-link"><img height="60px" src="<?php 
            echo AL_PLUGIN_BASE_PATH . 'img/do-not-donate.png';
            ?>
" /></a><?php 
            echo sprintf(__('<b>Please do not donate</b> (we finance the eCommerce Product Catalog development from <a target="_blank" href="%1$s">premium support</a> and <a target="_blank" href="%2$s">extensions</a>)', 'al-ecommerce-product-catalog'), esc_url('http://implecode.com/wordpress/plugins/premium-support/#cam=catalog-support-tab&key=donation-support-link'), esc_url('http://implecode.com/wordpress/plugins/?cam=catalog-support-tab&key=donation-extensions-link#extensions'));
            ?>
.
			</p>
		</div> 
		<div class="helpers"><div class="wrapper"><?php 
            main_helper();
            did_know_helper('support', __('You can get instant premium support from plugin developers', 'al-ecommerce-product-catalog'), 'http://implecode.com/wordpress/plugins/premium-support/');
            review_helper();
            ?>
		</div></div><?php 
        }
    }
function attributes_settings_content()
{
    $submenu = $_GET['submenu'];
    ?>
	<div class="attributes-product-settings settings-wrapper" style="clear:both;">
		<div class="settings-submenu">
			<h3>
				<a id="attributes-settings" class="element current" href="<?php 
    echo admin_url('edit.php?post_type=al_product&page=product-settings.php&tab=attributes-settings&submenu=attributes');
    ?>
"><?php 
    _e('Attributes Settings', 'al-ecommerce-product-catalog');
    ?>
</a>
	<?php 
    do_action('attributes_submenu');
    ?>
			</h3>
		</div>
	<?php 
    if ($submenu == 'attributes') {
        ?>
			<div class="setting-content submenu">
				<script>
					jQuery( '.settings-submenu a' ).removeClass( 'current' );
					jQuery( '.settings-submenu a#attributes-settings' ).addClass( 'current' );
				</script>
				<h2><?php 
        _e('Attributes Settings', 'al-ecommerce-product-catalog');
        ?>
</h2>
				<form method="post" action="options.php">
		<?php 
        settings_fields('product_attributes');
        ?>
					<h3><?php 
        _e('Product attributes options', 'al-ecommerce-product-catalog');
        ?>
</h3>
					<table>
						<tr>
							<td colspan="2"><?php 
        _e('Number of product attributes', 'al-ecommerce-product-catalog');
        ?>
 <input size="30" type="number" step="1" min="0" name="product_attributes_number" id="admin-number-field" value="<?php 
        echo get_option('product_attributes_number', DEF_ATTRIBUTES_OPTIONS_NUMBER);
        ?>
" /><input type="submit" class="button" value="<?php 
        _e('Update', 'al-ecommerce-product-catalog');
        ?>
" />
							</td>
						</tr>
					</table>
					<?php 
        $attributes_count = get_option('product_attributes_number', DEF_ATTRIBUTES_OPTIONS_NUMBER);
        if ($attributes_count > 0) {
            ?>
						<div class="al-box info">
							<p><?php 
            _e("If you fill out the fields below, system will automatically pre-fill the fields on product pages so you doesn't have to fill them every time you add product.</p><p>When every product in your catalogue is different you can leave all or a part of these field empty.", 'al-ecommerce-product-catalog');
            ?>
</p><p><?php 
            _e('You can change these default values on every product page.', 'al-ecommerce-product-catalog');
            ?>
</p>
						</div>
						<table  class="wp-list-table widefat product-settings-table dragable">
							<thead>
								<tr>
									<th class="title"></th><th class="title"><b><?php 
            _e('Attribute default name', 'al-ecommerce-product-catalog');
            ?>
</b></th>
									<th></th>
									<th class="title"><b><?php 
            _e('Attribute default value', 'al-ecommerce-product-catalog');
            ?>
</b></th>
									<th class="title"><b><?php 
            _e('Attribute default unit', 'al-ecommerce-product-catalog');
            ?>
</b></th>
			<?php 
            do_action('product_attributes_settings_table_th');
            ?>
									<th class="dragger"></th>
								</tr>
							</thead>
							<tbody><?php 
            $attribute = get_option('product_attribute');
            $attribute_label = get_option('product_attribute_label');
            $attribute_unit = get_option('product_attribute_unit');
            for ($i = 1; $i <= get_option('product_attributes_number', '3'); $i++) {
                $attribute_label[$i] = isset($attribute_label[$i]) ? $attribute_label[$i] : '';
                $attribute[$i] = isset($attribute[$i]) ? $attribute[$i] : '';
                $attribute_unit[$i] = isset($attribute_unit[$i]) ? $attribute_unit[$i] : '';
                ?>
									<tr>
										<td class="lp-column lp'.$i.'"><?php 
                echo $i;
                ?>
.</td>
										<td class="product-attribute-label-column"><input class="product-attribute-label" type="text" name="product_attribute_label[<?php 
                echo $i;
                ?>
]" value="<?php 
                echo $attribute_label[$i];
                ?>
" /></td><td class="lp-column">:</td>
										<td><input id="admin-number-field" class="product-attribute" type="text" name="product_attribute[<?php 
                echo $i;
                ?>
]" value="<?php 
                echo $attribute[$i];
                ?>
" /></td>
										<td><input id="admin-number-field" class="product-attribute-unit" type="text" name="product_attribute_unit[<?php 
                echo $i;
                ?>
]" value="<?php 
                echo $attribute_unit[$i];
                ?>
" /></td>
									<?php 
                do_action('product_attributes_settings_table_td', $i);
                ?>
										<td class="dragger"></td>
									</tr> <?php 
            }
            ?>
							</tbody>
						</table>
			<?php 
            do_action('attributes-settings');
            ?>
						<p class="submit">
							<input type="submit" class="button-primary" value="<?php 
            _e('Save changes', 'al-ecommerce-product-catalog');
            ?>
" />
						</p><?php 
        } else {
            ?>
						<table>
							<tr>
								<td colspan="2">
									<div class="al-box warning"><?php 
            _e('Attributes disabled. To enable set minimum 1 attribute.', 'al-ecommerce-product-catalog');
            ?>
</div>
								</td>
							</tr>
						</table><?php 
        }
        ?>
				</form>
			</div>
			<div class="helpers"><div class="wrapper"><?php 
        main_helper();
        doc_helper(__('attributes', 'al-ecommerce-product-catalog'), 'product-attributes');
        ?>
				</div></div>
	<?php 
    }
    do_action('product-attributes');
    ?>
	</div><?php 
}