admin_options() public method

Output the shipping settings screen.
public admin_options ( )
    public function admin_options()
    {
        // Check curentcy.
        if (get_woocommerce_currency() != "DKK") {
            echo '<div class="error">
				<p>' . sprintf(__('Send24 requires that the <a href="%s">currency</a> is set to Danish Krone (DKK).', 'woocommerce-shipping-usps'), admin_url('admin.php?page=wc-settings&tab=general')) . '</p>
			</div>';
        }
        // Save/Update key.
        if (empty($this->send24_settings)) {
            add_option('send24_settings', $this->settings);
        } else {
            update_option('send24_settings', $this->settings);
        }
        // Check keys and zip user.
        if ($_POST) {
            $this->check_key_and_zip($_POST['woocommerce_send24_shipping_c_key'], $_POST['woocommerce_send24_shipping_c_secret'], $_POST['woocommerce_send24_shipping_zip']);
        } else {
            $this->check_key_and_zip($this->send24_settings['c_key'], $this->send24_settings['c_secret'], $this->send24_settings['zip']);
        }
        // Show settings
        parent::admin_options();
        // Check and show service.
        if ($_POST) {
            if (!empty($_POST['woocommerce_send24_shipping_enabled_services'])) {
                echo $this->generate_services_html($_POST['woocommerce_send24_shipping_enabled_services']);
            } else {
                echo $this->generate_services_html('no');
            }
        } else {
            echo $this->generate_services_html($this->send24_settings['enabled_services']);
        }
    }
 /**
  * add notifications section on top of settings.
  */
 public function admin_options()
 {
     global $current_section;
     if ($current_section == 'flagship_wc_shipping_method') {
         $this->ctx->getComponent('\\FS\\Components\\Notifier')->view();
     }
     parent::admin_options();
 }
 /**
  * Admin Options
  *
  * Setup the gateway settings screen.
  */
 public function admin_options()
 {
     parent::admin_options();
     $rates = get_option('wc_autoship_price_shipping_rates');
     if (!$rates) {
         $rates = array();
     }
     include dirname(dirname(__FILE__)) . '/templates/rates-table.php';
 }
 /**
  * add notifications section on top of settings.
  */
 public function admin_options()
 {
     // request param
     $rp = $this->ctx->getComponent('\\FS\\Components\\Web\\RequestParam');
     if (!$this->isLegacy && $rp->query->get('instance_id') == $this->instance_id) {
         $this->ctx->getComponent('\\FS\\Components\\Notifier')->view();
     }
     parent::admin_options();
 }
 /**
  * admin_options function.
  *
  * @access public
  * @return void
  */
 public function admin_options()
 {
     // Check users environment supports this method
     $this->environment_check();
     // Show settings
     parent::admin_options();
 }
    public function admin_options()
    {
        // Check users environment supports this method
        $this->environment_check();
        ?>
		<div class="wf-banner updated below-h2">
			<img class="scale-with-grid" src="http://www.wooforce.com/wp-content/uploads/2015/07/WooForce-Logo-Admin-Banner-Basic.png" alt="Wordpress / WooCommerce USPS, Canada Post Shipping | WooForce">
  			<p class="main"><strong>FedEx Premium version streamlines your complete shipping process and saves time</strong></p>
			<p>&nbsp;-&nbsp;Print shipping label with postage.<br>
			&nbsp;-&nbsp;Auto Shipment Tracking: It happens automatically while generating the label.<br>
			&nbsp;-&nbsp;Box packing.<br>
			&nbsp;-&nbsp;Enable/disable, edit the names of, and add handling costs to shipping services.<br>
			&nbsp;-&nbsp;Excellent Support for setting it up!</p>
			<p><a href="http://www.wooforce.com/product/fedex-woocommerce-shipping-with-print-label-plugin/" target="_blank" class="button button-primary">Upgrade to Premium Version</a> <a href="http://fedex.wooforce.com/wp-admin/admin.php?page=wc-settings&tab=shipping&section=wf_fedex_woocommerce_shipping_method" target="_blank" class="button">Live Demo</a></p>
		</div>
		<style>
		.wf-banner img {
			float: right;
			margin-left: 1em;
			padding: 15px 0
		}
		</style>
		<?php 
        // Show settings
        parent::admin_options();
    }
Exemplo n.º 7
0
    /**
     * admin_options function.
     *
     * @access public
     * @return void
     */
    public function admin_options()
    {
        // Check users environment supports this method
        $this->environment_check();
        ?>
		<div class="wf-banner updated below-h2">
  			<p class="main">
			<ul>
				<li style='color:red;'><strong>Your Business is precious! Go Premium!</li></strong>
				<li><strong>WooForce UPS Premium version for WooCommerce streamlines your complete shipping process and saves time.</strong></li>
				<li><strong>- Timely compatibility updates and bug fixes.</strong ></li>
				<li><strong>- Premium Support:</strong> Faster and time bound response for support requests.</li>
				<li><strong>- Option to enable Daily Rates, which gives same rates as UPS calculator.</strong></li>
				<li><strong>- More Features:</strong> Label Printing with Postage, Automatic Shipment Tracking, Box Packing, Weight based Packing and Many More..</li>
			</ul>
			</p>
			<p><a href="http://www.wooforce.com/product/ups-woocommerce-shipping-with-print-label-plugin/" target="_blank" class="button button-primary">Upgrade to Premium Version</a> <a href="http://ups.wooforce.com/wp-admin/admin.php?page=wc-settings&tab=shipping&section=wf_shipping_ups" target="_blank" class="button">Live Demo</a></p>
		</div>
		<style>
		.wf-banner img {
			float: right;
			margin-left: 1em;
			padding: 15px 0
		}
		</style>
		<?php 
        // Show settings
        parent::admin_options();
    }