working on it ...

Filters

Explore Public Snippets

Sort by

Found 2,636 snippets matching: woocommerce

    public by elenka modified Jan 22, 2015  237461  4  7  0

    add WooCommerce settins tab

    <?php
    
    if ( !class_exists('Woo_Settings ') ):
    
    /**
     * 
     * @version 1.0
     * @access public
     */
    class Woo_Settings {
    
      public static function init() {
        add_filter( 'woocommerce_settings_tabs_array', __CLASS__ . '::add_settings_tab', 70);
        add_action( 'woocommerce_settings_tabs_settings_orders_page', __CLASS__ . '::settings_tab' );
      }
    
      /**
      * Add a new settings tab to the WooCommerce settings tabs array.
      */
      public static function add_settings_tab( $settings_tabs ) {
        $settings_tabs['settings_orders_page'] = __( 'Orders Page', 'linen' );
        return $settings_tabs;
      }
      /**
      * Uses the WooCommerce admin fields API to output settings via the @see woocommerce_admin_fields() function.
      *
      * @uses woocommerce_admin_fields()
      * @uses self::get_settings()
      */
      public static function settings_tab() {
        woocommerce_admin_fields( self::get_settings() );
      }
    
      /**
      * Get all the settings for this plugin for @see woocommerce_admin_fields() function.
      *
      * @return array Array of settings for @see woocommerce_admin_fields() function.
      */
      public static function get_settings() {
    
        $settings[] = array( 'title' => __( 'Orders Page', 'linen' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_order_customiser_orders_page' );
        $settings[] = array(
          'title'    => __( 'Table Type', 'linen' ),
          'id'       => 'wc_order_customiser_table_type',
          'default'  => 'static',
          'type'     => 'radio',
          'options'  => array(
            'static'  => __( 'Static', 'linen' ),
            'dynamic' => __( 'Dynamic', 'linen' ),
          ),
          'autoload' => true
        );
        $settings[] = array( 'type' => 'sectionend', 'id' => 'wc_order_customiser_orders_page' );
    
        $settings[] = array( 'title' => __( 'Position & Size', 'linen' ), 'type' => 'title', 'desc' => '', 'id' => 'wc_order_customiser_position_n_size' );
        $settings[] = array(
          'title'    => __( 'Table Type', 'linen' ),
          'id'       => 'wc_order_customiser_table_type',
          'default'  => 'static',
          'type'     => 'radio',
          'options'  => array(
            'static'  => __( 'Static', 'linen' ),
            'dynamic' => __( 'Dynamic', 'linen' ),
          ),
          'autoload' => true
        );
        $settings[] = array( 'type' => 'sectionend', 'id' => 'wc_order_customiser_position_n_size' );
    
        return apply_filters( 'wc_settings_tab_orders_page', $settings );
      }
    
      /**
      * Uses the WooCommerce options API to save settings via the @see woocommerce_update_options() function.
      *
      * @uses woocommerce_update_options()
      * @uses self::get_settings()
      */
      public static function update_settings() {
        woocommerce_update_options( self::get_settings() );
      }
    
    	
    }
    Woo_Settings::init();
    endif;
    ?>                        

    public by paulsimmons modified Mar 20, 2017  635  0  4  0

    WooCommerce Tickets Download Addon

    Now users can download the event tickets on your website by using WooCommerce tickets download addon by FMEAddons. This addon let you create event pages and display event videos, images, venue, time frame, and contact details on event pages. You can also display the event dates by month, week, and day on Google calendar to your users. Tickets d
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Apr 3, 2017  633  7  4  0

    WooCommerce Import Categories Addon by FMEAddons

    If you want to import the categories to your eCommerce website then WooCommerce import categories extension by FMEAddons is the perfect solution for you. With this addon, you cannot only import the categories but you can also import or export products, customers, and orders as well. Import categories addon lets you add the products as a new to
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Apr 4, 2017  490  0  4  0

    WooCommerce Tabs - FMEAddons

    WooCommerce tabs add-on is developed by FMEAddons that helps e-store owners to create separate tabs to display the information properly. If you have product related videos and reviews then you can create the video and review tab on your product page. Tabs addon helps you to make product pages presentable to your customers and they can see the i
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Mar 6, 2017  243  21  3  1

    WooCommerce Checkout Plugin by FMEAddons

    You can crate extra options on checkout form by using WooCommerce checkout plugin by FMEAddons. This addon lets you add the various fields which are text area, radio and check boxes, file/image select, multi-select, date & time, password, input and select box personalize the checkout form. With this addon, you can get extra information on checkout
    cpp
    <a href="https://www.fmeaddons.com/woocommerce-plugins-extensions/additional-checkout-fields.html">https://www.fmeaddons.com/woocommerce-plugins-extensions/additional-checkout-fields.html<a>                        

    public by paulsimmons modified Apr 12, 2017  890  7  4  0

    WooCommerce Bookings and Appointment Plugin

    WooCommerce Bookings and Appointment plugin by FMEAddons gives the ability to business owners to sell products and services that require bookings and timed appointments. These products and services involve tickets selling, bookings for concerts, appointments, rentals services, secure a seat online, space in training, book products and much more lik
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Mar 16, 2017  1047  0  5  0

    WooCommerce Ajax Product Filter by FMEAddons

    Ajax Product filter WooCommerce plugin by FMEAddons allows you to implement advanced search on your online store which will help your customers to find desired product (s) in a blink with the help of advance layered navigation filters. Adding ajax based product filtering on your online store will help you to eliminate delay in the searching process
    <? php                                     

    public by paulsimmons modified Apr 4, 2017  1013  0  4  0

    WooCommerce Variable Pricing Plugin by FMEAddons

    If you want to convert potential customers to successful business leads, then WooCommerce variable pricing extension is a powerful tool for achieving this goal. This addon provides you an easy interface to offer bulk discounts on various sections on your website. You can give a special offer to your customers such as buy three products and get one
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Mar 29, 2017  743  0  4  0

    WooCommerce Currency Converter Plugin

    If you want to target multiple regions with your web store you must use WooCommerce multi-currency plugin to provide the best user experience to your international clients. WooCommerce currency switcher plugin allows you to add multiple currencies which will allow your customers to view product pricing and checkout in their local currency or to whi
    // Enter here the actual content of the snippet.            

    public by azazqadir modified Apr 11, 2018  657  1  5  0

    Using WooCommerce Rest API for Custom Dashboard

    Using WooCommerce Rest API (https://www.cloudways.com/blog/custom-dashboard-using-woocommerce-php-rest-api/ ) to create a Custom Dashboard
    <div class="container">
    
                                      <h2 class="sub-header">Customers List</h2>
    
                                      <div class='table-responsive'>
    
                                          <table id='myTable' class='table table-striped table-bordered'>
    
                                              <thead>
    
                                                  <tr>
    
                                                      <th>Email</th>
    
                                                      <th>Name</th>
    
                                                      <th>Billing Address</th>
    
                                                      <th>Total Orders</th>
    
                                                      <th>Total spent</th>
    
                                                      <th>Avatar</th>
    
                                                      <th>Actions</th>
    
                                                  </tr>
    
                                              </thead>
    
                                              <tbody>
    
                                                  <?php
    
                      foreach($customers as $customer){
    
    
    
                      echo "<tr><td>" . $customer["email"]."</td>
    
                                <td>" . $customer["first_name"].$customer["last_name"]."</td>
    
                                <td>" . $customer["billing"]["address_1"]."</td>
    
                                <td>" . $customer["orders_count"]."</td>
    
                                <td>" . $customer["total_spent"]."</td>
    
                                <td><img height='50px' width='50px' src='".$customer["avatar_url"]."'></td>
    
                                 <td><a class='open-AddBookDialog btn btn-primary' data-target='#myModal' data-id=".$customer['id']." data-toggle='modal'>Update</a>
    
                                 <a class='open-deleteDialog btn btn-danger' data-target='#myModal1' data-id=".$customer['id']." data-toggle='modal'>Delete</a></td></tr>";
    
                      }
    
    
    
                      ?>
    
                                              </tbody>
    
                                          </table>
    
                                      </div>
    
      </div>												
    • Public Snippets
    • Channels Snippets